tools: fakeroot: rework relocatable patch to avoid LD_LIBRARY_PATH usage
authorJo-Philipp Wich <jo@mein.io>
Mon, 9 Nov 2020 20:46:01 +0000 (21:46 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 10 Nov 2020 07:31:10 +0000 (08:31 +0100)
commitd4521fb132266fd6c94796e19d3d1e925847338d
tree05422d9bd17a7e7598b2be14f6c0a1605dbaef19
parentfe302d472a9ace858ccbf0ba2833c9f3469d02f0
tools: fakeroot: rework relocatable patch to avoid LD_LIBRARY_PATH usage

Due to the use of LD_LIBRARY_PATH, the programs running in the fakeroot
environment may end up loading bundled SDK libraries using the system
ld.so.

Rework the relocatability patch to avoid meddling with LD_LIBRARY_PATH
and construct the paths to faked and libfakeroot.so directly.

Fixes: f93cb5c2c8 ("fakeroot: make fakeroot script relocatable")
Reviewed-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
tools/fakeroot/patches/000-relocatable.patch