diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2020-08-05 08:39:31 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2020-08-05 08:39:57 +0200 |
commit | 700f2ea5e9b992a67ac720f8e040201d4002468f (patch) | |
tree | f606add78b24f94a1ebc79cddb1e4350bd90c1c2 /sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch | |
parent | sys-fs/exfatprogs: Initial commit (diff) | |
download | gentoo-700f2ea5e9b992a67ac720f8e040201d4002468f.tar.gz gentoo-700f2ea5e9b992a67ac720f8e040201d4002468f.tar.bz2 gentoo-700f2ea5e9b992a67ac720f8e040201d4002468f.zip |
sys-apps/ethtool: Bump to version 5.8
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch')
-rw-r--r-- | sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch | 29 |
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= |