aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/e2fsprogs/patches/000-relocatable.patch
blob: 017aca1b05121506e740494345755e4897338d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- a/lib/et/compile_et.sh.in
+++ b/lib/et/compile_et.sh.in
@@ -2,9 +2,15 @@
 #
 #
 
-datarootdir=@datarootdir@
-AWK=@AWK@
-DIR=@datadir@/et
+if test "x$STAGING_DIR" = x ; then
+	datarootdir=@datarootdir@
+	AWK=@AWK@
+	DIR=@datadir@/et
+else
+	datarootdir="$STAGING_DIR/../hostpkg/share"
+	AWK=awk
+	DIR="$datarootdir/et"
+fi
 
 if test "$1" = "--build-tree" ; then
     shift;
--- a/lib/ss/mk_cmds.sh.in
+++ b/lib/ss/mk_cmds.sh.in
@@ -1,11 +1,17 @@
 #!/bin/sh
 #
 #
-
-datarootdir=@datarootdir@
-DIR=@datadir@/ss
-AWK=@AWK@
-SED=@SED@
+if test "x$STAGING_DIR" = x ; then
+	datarootdir=@datarootdir@
+	DIR=@datadir@/ss
+	AWK=@AWK@
+	SED=@SED@
+else
+	datarootdir="$STAGING_DIR/../hostpkg/share"
+	DIR="$datarootdir/ss"
+	AWK=awk
+	SED=sed
+fi
 
 for as_var in \
   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \