1
0

000-relocatable.patch 944 B

1234567891011121314151617181920212223242526272829
  1. --- a/scripts/fakeroot.in
  2. +++ b/scripts/fakeroot.in
  3. @@ -30,13 +30,20 @@ fatal ()
  4. }
  5. # strip /bin/fakeroot to find install prefix
  6. -FAKEROOT_PREFIX=@prefix@
  7. -FAKEROOT_BINDIR=@bindir@
  8. +if [ -n "$STAGING_DIR_HOST" ]; then
  9. + USEABSLIBPATH=1
  10. + FAKEROOT_LIB=${STAGING_DIR_HOST}/lib/lib@fakeroot_transformed@@DLSUFFIX@
  11. + FAKED=${STAGING_DIR_HOST}/bin/faked
  12. + PATHS=
  13. +else
  14. + FAKEROOT_PREFIX=@prefix@
  15. + FAKEROOT_BINDIR=@bindir@
  16. -USEABSLIBPATH=@LDPRELOADABS@
  17. -FAKEROOT_LIB=lib@fakeroot_transformed@@DLSUFFIX@
  18. -PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
  19. -FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
  20. + USEABSLIBPATH=@LDPRELOADABS@
  21. + FAKEROOT_LIB=lib@fakeroot_transformed@@DLSUFFIX@
  22. + PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
  23. + FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
  24. +fi
  25. FAKED_MODE="unknown-is-root"
  26. export FAKED_MODE