2020-09-10 12:52:31 +00:00
|
|
|
--- a/scripts/fakeroot.in
|
|
|
|
+++ b/scripts/fakeroot.in
|
2020-11-09 20:46:01 +00:00
|
|
|
@@ -30,13 +30,20 @@ fatal ()
|
2020-09-10 12:52:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# strip /bin/fakeroot to find install prefix
|
|
|
|
-FAKEROOT_PREFIX=@prefix@
|
|
|
|
-FAKEROOT_BINDIR=@bindir@
|
|
|
|
+if [ -n "$STAGING_DIR_HOST" ]; then
|
2020-11-09 20:46:01 +00:00
|
|
|
+ USEABSLIBPATH=1
|
|
|
|
+ LIB=${STAGING_DIR_HOST}/lib/lib@fakeroot_transformed@@DLSUFFIX@
|
|
|
|
+ FAKED=${STAGING_DIR_HOST}/bin/faked
|
|
|
|
+ PATHS=
|
2020-09-10 12:52:31 +00:00
|
|
|
+else
|
|
|
|
+ FAKEROOT_PREFIX=@prefix@
|
|
|
|
+ FAKEROOT_BINDIR=@bindir@
|
|
|
|
|
2020-11-09 20:46:01 +00:00
|
|
|
-USEABSLIBPATH=@LDPRELOADABS@
|
|
|
|
-LIB=lib@fakeroot_transformed@@DLSUFFIX@
|
2020-09-10 12:52:31 +00:00
|
|
|
-PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
|
2020-11-09 20:46:01 +00:00
|
|
|
-FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
|
|
|
|
+ USEABSLIBPATH=@LDPRELOADABS@
|
|
|
|
+ LIB=lib@fakeroot_transformed@@DLSUFFIX@
|
|
|
|
+ PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
|
|
|
|
+ FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
|
|
|
|
+fi
|
2020-09-10 12:52:31 +00:00
|
|
|
|
|
|
|
FAKED_MODE="unknown-is-root"
|
2020-11-09 20:46:01 +00:00
|
|
|
export FAKED_MODE
|