summaryrefslogtreecommitdiff
path: root/sys-apps/ethtool/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /sys-apps/ethtool/files
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'sys-apps/ethtool/files')
-rw-r--r--sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch b/sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch
new file mode 100644
index 000000000000..9cd9fd86fb70
--- /dev/null
+++ b/sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch
@@ -0,0 +1,29 @@
+Running this script with dash results in an endless loop spitting out this:
+
+ ./test-driver: 62: [: --test-name: unexpected operator
+ ./test-driver: 78: [[: not found
+
+This is caused by two bashisms which are being fixed by the below patch
+
+Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
+
+--- ethtool-5.8/test-driver
++++ ethtool-5.8/test-driver
+@@ -59,7 +59,7 @@
+ while test $# -gt 1; do
+ arg=${1%=*}
+ val=${1#*=}
+- if [ $arg == $val ]; then
++ if [ $arg = $val ]; then
+ val=$2
+ shift
+ fi
+@@ -75,7 +75,7 @@
+ --) break;;
+ -*) usage_error "invalid option: '$1'";;
+ esac
+- [[ $arg != $val ]] && shift
++ [ $arg != $val ] && shift
+ done
+
+ missing_opts=