aboutsummaryrefslogtreecommitdiffstats
path: root/tools/quilt/patches
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-20 17:11:37 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-20 17:11:37 +0000
commitcaa9e0e0f36b9c406375ae05d7a8fe9c850df51f (patch)
tree6bd8dcc2a038811d382aacb855c0118a6d84a285 /tools/quilt/patches
parent122069cabaca3992da6cb97afd91a291970c00b8 (diff)
downloadupstream-caa9e0e0f36b9c406375ae05d7a8fe9c850df51f.tar.gz
upstream-caa9e0e0f36b9c406375ae05d7a8fe9c850df51f.tar.bz2
upstream-caa9e0e0f36b9c406375ae05d7a8fe9c850df51f.zip
quilt: make relocatable, search resources relative to STAGING_DIR
SVN-Revision: 29829
Diffstat (limited to 'tools/quilt/patches')
-rw-r--r--tools/quilt/patches/000-relocatable.patch20
-rw-r--r--tools/quilt/patches/001-fix_compile.patch (renamed from tools/quilt/patches/000-fix_compile.patch)0
2 files changed, 20 insertions, 0 deletions
diff --git a/tools/quilt/patches/000-relocatable.patch b/tools/quilt/patches/000-relocatable.patch
new file mode 100644
index 0000000000..19ff5fd6ad
--- /dev/null
+++ b/tools/quilt/patches/000-relocatable.patch
@@ -0,0 +1,20 @@
+--- a/bin/quilt.in
++++ b/bin/quilt.in
+@@ -7,9 +7,15 @@
+ # See the COPYING and AUTHORS files for more details.
+
+ export TEXTDOMAIN=quilt
+-export TEXTDOMAINDIR=@LOCALEDIR@
+
+-: ${QUILT_DIR=@QUILT_DIR@} ${QUILT_LIB=@QUILT_LIB@}
++if test -n "$STAGING_DIR"; then
++ export TEXTDOMAINDIR="$STAGING_DIR/../host/share/locale"
++ : ${QUILT_DIR=$STAGING_DIR/../host/share/quilt} ${QUILT_LIB=$STAGING_DIR/../host/lib/quilt}
++else
++ export TEXTDOMAINDIR=@LOCALEDIR@
++ : ${QUILT_DIR=@QUILT_DIR@} ${QUILT_LIB=@QUILT_LIB@}
++fi
++
+ export QUILT_DIR QUILT_LIB
+
+ if [ -z "$QUILTRC" ]
diff --git a/tools/quilt/patches/000-fix_compile.patch b/tools/quilt/patches/001-fix_compile.patch
index 51a4f5e206..51a4f5e206 100644
--- a/tools/quilt/patches/000-fix_compile.patch
+++ b/tools/quilt/patches/001-fix_compile.patch