summaryrefslogtreecommitdiff
path: root/system/fakeroot/busybox-getopt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/fakeroot/busybox-getopt.patch')
-rw-r--r--system/fakeroot/busybox-getopt.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/fakeroot/busybox-getopt.patch b/system/fakeroot/busybox-getopt.patch
new file mode 100644
index 000000000..e8172e8f1
--- /dev/null
+++ b/system/fakeroot/busybox-getopt.patch
@@ -0,0 +1,14 @@
+--- ./scripts/fakeroot.in.orig
++++ ./scripts/fakeroot.in
+@@ -43,9 +43,9 @@
+
+ libfound=no
+
+-GETOPTEST=`getopt --version`
++GETOPTEST=`getopt --version 2>&1 | head -n2`
+ case $GETOPTEST in
+-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 ?