Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/ethtool/, sys-apps/ethtool/files/
Date: Wed, 05 Aug 2020 06:40:37
Message-Id: 1596609597.700f2ea5e9b992a67ac720f8e040201d4002468f.polynomial-c@gentoo
1 commit: 700f2ea5e9b992a67ac720f8e040201d4002468f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 5 06:39:31 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 5 06:39:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=700f2ea5
7
8 sys-apps/ethtool: Bump to version 5.8
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/ethtool/Manifest | 1 +
14 sys-apps/ethtool/ethtool-5.8.ebuild | 22 ++++++++++++++++
15 .../ethtool/files/ethtool-5.8-avoid_bashisms.patch | 29 ++++++++++++++++++++++
16 3 files changed, 52 insertions(+)
17
18 diff --git a/sys-apps/ethtool/Manifest b/sys-apps/ethtool/Manifest
19 index 3166c8e3d1e..35d18260914 100644
20 --- a/sys-apps/ethtool/Manifest
21 +++ b/sys-apps/ethtool/Manifest
22 @@ -1,3 +1,4 @@
23 DIST ethtool-5.4.tar.xz 239288 BLAKE2B 8c8b2bee53fe3e71510684ca7c6f64153cb6f1c5ebe44cd4d1dc351885d2d9957eb206a96bda9efadb5faa0e15a3f0ba07923d7e29b27694e3e3f605151a940d SHA512 c7bfe7eae2ba207d710716274e9f5ae275c57d0bebc0a9acb95677125e64f1b42ef610032011fb59894aab46973988bad40fddbc5ccc238893e7da66f913255b
24 DIST ethtool-5.6.tar.xz 281084 BLAKE2B 1fecc52e9031a3d13cbe6b3c508ebd7fc6dc03b02d4126b3ddd9ef40eedbef151b66f52e80b6570d45ebba09437b587124d2c22817da7d4f3658bd1ff1d3c8a1 SHA512 9308f8e4a297d842a7a5a51419e408951e669da1f58cb1eed41f52be4cd2f32f811d1d19e9bee59d8297938a6d5a4abff2b9bbf789d0c49ed5074a78826d3199
25 DIST ethtool-5.7.tar.xz 283048 BLAKE2B 1f265ea452ec0d37b4bd4bb4e602a27d2d26144d750940b2c61638524626fffb59c3fbf054472e31ff755260d7cce8f6cdc31ef74a512a3656830b546b4bbe6d SHA512 195e24c48201412e0eaad7d7ca4e530c3a8cf50f3518cfe49d299fd091cf9198007c5d23be95109c735ceb2ccad37ac9f2e9cde0fb36ea426ab17b1dd064d4a9
26 +DIST ethtool-5.8.tar.xz 299416 BLAKE2B ea7433205eba831b6ba56e140c73cfe283cc5dc56ced963414a017b0d6b6fbde9d0195ff64ebdc060351e5e9844af8beb8f00f7e04d76b04f958b166cda7e589 SHA512 5eada909f82573ad93bc5476e6f8d50f68ce2c9948558877eb6ace8dc17aee895b2f27343592f5f23eaef0e0fc70b5f776f76e75d9614bab305a2819ca82370e
27
28 diff --git a/sys-apps/ethtool/ethtool-5.8.ebuild b/sys-apps/ethtool/ethtool-5.8.ebuild
29 new file mode 100644
30 index 00000000000..49fc0d567fc
31 --- /dev/null
32 +++ b/sys-apps/ethtool/ethtool-5.8.ebuild
33 @@ -0,0 +1,22 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces"
40 +HOMEPAGE="https://www.kernel.org/pub/software/network/ethtool/"
41 +SRC_URI="https://www.kernel.org/pub/software/network/ethtool/${P}.tar.xz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
46 +IUSE="+netlink"
47 +
48 +DEPEND="app-arch/xz-utils"
49 +RDEPEND="netlink? ( net-libs/libmnl )"
50 +
51 +PATCHES=( "${FILESDIR}/${PN}-5.8-avoid_bashisms.patch" )
52 +
53 +src_configure() {
54 + econf $(use_enable netlink)
55 +}
56
57 diff --git a/sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch b/sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch
58 new file mode 100644
59 index 00000000000..9cd9fd86fb7
60 --- /dev/null
61 +++ b/sys-apps/ethtool/files/ethtool-5.8-avoid_bashisms.patch
62 @@ -0,0 +1,29 @@
63 +Running this script with dash results in an endless loop spitting out this:
64 +
65 + ./test-driver: 62: [: --test-name: unexpected operator
66 + ./test-driver: 78: [[: not found
67 +
68 +This is caused by two bashisms which are being fixed by the below patch
69 +
70 +Signed-off-by: Lars Wendler <polynomial-c@g.o>
71 +
72 +--- ethtool-5.8/test-driver
73 ++++ ethtool-5.8/test-driver
74 +@@ -59,7 +59,7 @@
75 + while test $# -gt 1; do
76 + arg=${1%=*}
77 + val=${1#*=}
78 +- if [ $arg == $val ]; then
79 ++ if [ $arg = $val ]; then
80 + val=$2
81 + shift
82 + fi
83 +@@ -75,7 +75,7 @@
84 + --) break;;
85 + -*) usage_error "invalid option: '$1'";;
86 + esac
87 +- [[ $arg != $val ]] && shift
88 ++ [ $arg != $val ] && shift
89 + done
90 +
91 + missing_opts=