aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/guile/guile-native-1.8.7/reloc.patch
blob: c061743ab728d0beb16ffd4757cf5b3d3b37cbcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- guile-1.8.7.orig/guile-tools.in
+++ guile-1.8.7/guile-tools.in
@@ -42,14 +42,15 @@ Default scripts dir: $default_scriptsdir
 EOF
 }

-prefix="@prefix@"
-datarootdir="@datarootdir@"
-pkgdatadir="@datadir@/@PACKAGE@"
+bindir=`dirname $0`
+bindir=`cd $bindir && pwd`
+prefix=`dirname $bindir`
+datarootdir=${prefix}/share
+pkgdatadir=${prefix}/share/guile
 guileversion="@GUILE_EFFECTIVE_VERSION@"
 default_scriptsdir=$pkgdatadir/$guileversion/scripts

 # pre-install invocation frob
-mydir=`dirname $0`
 if [ -d "$mydir/scripts" -a -f "$mydir/scripts/Makefile.am" ] ; then
     default_scriptsdir=`(cd $mydir/scripts ; pwd)`
 fi