summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-01-27 01:44:34 +0100
committerJeroen Roovers <jer@gentoo.org>2020-01-27 01:44:50 +0100
commitb5e5f0a4194fe88aafa939045d92391eeeb87bff (patch)
tree65111a0bd027c4a62351c2986da59654639838aa
parentwww-apps/netbox: 2.7.2 bump (diff)
downloadgentoo-b5e5f0a4194fe88aafa939045d92391eeeb87bff.tar.gz
gentoo-b5e5f0a4194fe88aafa939045d92391eeeb87bff.tar.bz2
gentoo-b5e5f0a4194fe88aafa939045d92391eeeb87bff.zip
net-analyzer/hping: Fix CFLAGS=-fno-common
Package-Manager: Portage-2.3.85, Repoman-2.3.20 Closes: https://bugs.gentoo.org/show_bug.cgi?id=706566 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
-rw-r--r--net-analyzer/hping/files/hping-3_pre20141226-fno-common.patch11
-rw-r--r--net-analyzer/hping/hping-3_pre20141226.ebuild3
2 files changed, 13 insertions, 1 deletions
diff --git a/net-analyzer/hping/files/hping-3_pre20141226-fno-common.patch b/net-analyzer/hping/files/hping-3_pre20141226-fno-common.patch
new file mode 100644
index 000000000000..e21a6d513c59
--- /dev/null
+++ b/net-analyzer/hping/files/hping-3_pre20141226-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/hping2.h
++++ b/hping2.h
+@@ -357,8 +357,6 @@
+ int status;
+ };
+
+-volatile struct delaytable_element delaytable[TABLESIZE];
+-
+ /* protos */
+ void nop(void); /* nop */
+ int parse_options(int, char**); /* option parser */
diff --git a/net-analyzer/hping/hping-3_pre20141226.ebuild b/net-analyzer/hping/hping-3_pre20141226.ebuild
index 72c3c7249331..3c3a3f166ea6 100644
--- a/net-analyzer/hping/hping-3_pre20141226.ebuild
+++ b/net-analyzer/hping/hping-3_pre20141226.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -33,6 +33,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-3_pre20141226-pcap-bpf.patch
"${FILESDIR}"/${PN}-3_pre20141226-scan-overflow.patch
"${FILESDIR}"/${PN}-3_pre20141226-unused-but-set.patch
+ "${FILESDIR}"/${PN}-3_pre20141226-fno-common.patch
)
src_configure() {