summaryrefslogtreecommitdiffstats
path: root/main/fakeroot/busybox-getopt.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-06 11:05:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-06 11:05:14 +0000
commit26dbf8bdcbc6ef342e84728f113b063c604a4893 (patch)
tree61a304d815275eb3c8733455d111b1c981f89202 /main/fakeroot/busybox-getopt.patch
parent1c2725684d584bd52eb45dd66421b1a339cfeb3a (diff)
downloadaports-26dbf8bdcbc6ef342e84728f113b063c604a4893.tar.bz2
aports-26dbf8bdcbc6ef342e84728f113b063c604a4893.tar.xz
main/fakeroot: fix getopt to handle args with spaces
ref #3500
Diffstat (limited to 'main/fakeroot/busybox-getopt.patch')
-rw-r--r--main/fakeroot/busybox-getopt.patch15
1 files changed, 8 insertions, 7 deletions
diff --git a/main/fakeroot/busybox-getopt.patch b/main/fakeroot/busybox-getopt.patch
index 94029bf24..e8172e8f1 100644
--- a/main/fakeroot/busybox-getopt.patch
+++ b/main/fakeroot/busybox-getopt.patch
@@ -1,13 +1,14 @@
-diff --git a/scripts/fakeroot.in b/scripts/fakeroot.in
-index 324a9dc..8d4235d 100755
---- a/scripts/fakeroot.in
-+++ b/scripts/fakeroot.in
-@@ -43,7 +43,7 @@ export FAKED_MODE
+--- ./scripts/fakeroot.in.orig
++++ ./scripts/fakeroot.in
+@@ -43,9 +43,9 @@
libfound=no
-GETOPTEST=`getopt --version`
-+GETOPTEST=`getopt --version 2>/dev/null`
++GETOPTEST=`getopt --version 2>&1 | head -n2`
case $GETOPTEST in
- getopt*) # GNU getopt
+-getopt*) # GNU getopt
++getopt*|*BusyBox*) # GNU getopt
FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"`
+ ;;
+ *) # POSIX getopt ?