
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- fakeroot-1.2.13/scripts/fakeroot.in~fix-prefix
+++ fakeroot-1.2.13/scripts/fakeroot.in
@@ -15,8 +15,8 @@
 }
 
 # strip /bin/fakeroot to find install prefix
-PREFIX=@prefix@
-BINDIR=@bindir@
+BINDIR=`dirname $0`
+PREFIX=`dirname ${BINDIR}`
     
 LIB=lib@fakeroot_transformed@.so.0
 PATHS=@libdir@:${PREFIX}/lib64/libfakeroot:${PREFIX}/lib32/libfakeroot
