From: Felix Fietkau Date: Wed, 20 Jan 2016 23:21:03 +0000 (+0000) Subject: gettext-full: fix relocatable patch X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=4b8b367bba56b898f6b2f8dcb11d4429df8d15c7;p=openwrt-github%2F.git gettext-full: fix relocatable patch Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48420 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/libs/gettext-full/patches/000-relocatable.patch b/package/libs/gettext-full/patches/000-relocatable.patch index c475579b39..c14be72836 100644 --- a/package/libs/gettext-full/patches/000-relocatable.patch +++ b/package/libs/gettext-full/patches/000-relocatable.patch @@ -6,7 +6,7 @@ # - gettext_datadir directory where the data files are stored. -prefix="@prefix@" +if [ -n "$STAGING_DIR" ]; then -+ prefix="$STAGING_DIR/../host" ++ prefix="$STAGING_DIR/host" +else + prefix="@prefix@" +fi @@ -21,7 +21,7 @@ # - gettext_datadir directory where the data files are stored. -prefix="@prefix@" +if [ -n "$STAGING_DIR" ]; then -+ prefix="$STAGING_DIR/../host" ++ prefix="$STAGING_DIR/host" +else + prefix="@prefix@" +fi