summaryrefslogtreecommitdiff
path: root/packages/fakeroot/files/fix-prefix.patch
blob: 3c47bd7650553e8e62a7e4f0f3af9971b4fed004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: fakeroot-1.12.1/scripts/fakeroot.in
===================================================================
--- fakeroot-1.12.1.orig/scripts/fakeroot.in
+++ fakeroot-1.12.1/scripts/fakeroot.in
@@ -30,8 +30,8 @@
 }
 
 # strip /bin/fakeroot to find install prefix
-PREFIX=@prefix@
-BINDIR=@bindir@
+BINDIR=`dirname $0`
+PREFIX=`dirname ${BINDIR}`
 
 USEABSLIBPATH=@LDPRELOADABS@
 LIB=lib@fakeroot_transformed@@DLSUFFIX@