forked from Openwrt/openwrt
f34f4a6665
use PKG_FIXUP:=autoreconf to generate configure 200-hide-dlsym-error.patch deleted due to fixed upstream in another way other patches refreshed to reflect latest changes Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
30 lines
944 B
Diff
30 lines
944 B
Diff
--- a/scripts/fakeroot.in
|
|
+++ b/scripts/fakeroot.in
|
|
@@ -30,13 +30,20 @@ fatal ()
|
|
}
|
|
|
|
# strip /bin/fakeroot to find install prefix
|
|
-FAKEROOT_PREFIX=@prefix@
|
|
-FAKEROOT_BINDIR=@bindir@
|
|
+if [ -n "$STAGING_DIR_HOST" ]; then
|
|
+ USEABSLIBPATH=1
|
|
+ FAKEROOT_LIB=${STAGING_DIR_HOST}/lib/lib@fakeroot_transformed@@DLSUFFIX@
|
|
+ FAKED=${STAGING_DIR_HOST}/bin/faked
|
|
+ PATHS=
|
|
+else
|
|
+ FAKEROOT_PREFIX=@prefix@
|
|
+ FAKEROOT_BINDIR=@bindir@
|
|
|
|
-USEABSLIBPATH=@LDPRELOADABS@
|
|
-FAKEROOT_LIB=lib@fakeroot_transformed@@DLSUFFIX@
|
|
-PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
|
|
-FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
|
|
+ USEABSLIBPATH=@LDPRELOADABS@
|
|
+ FAKEROOT_LIB=lib@fakeroot_transformed@@DLSUFFIX@
|
|
+ PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
|
|
+ FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
|
|
+fi
|
|
|
|
FAKED_MODE="unknown-is-root"
|
|
export FAKED_MODE
|