diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-01-27 01:39:11 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-01-27 01:39:25 +0100 |
commit | 0cccf240057e4581546bb59c6221d82d34660183 (patch) | |
tree | 14c9ae1eced9811c0747c3d1b4738f275002ba5c /net-analyzer/fping | |
parent | sys-apps/dcfldd: Version 1.6 (diff) | |
download | gentoo-0cccf240057e4581546bb59c6221d82d34660183.tar.gz gentoo-0cccf240057e4581546bb59c6221d82d34660183.tar.bz2 gentoo-0cccf240057e4581546bb59c6221d82d34660183.zip |
net-analyzer/fping: Fix CFLAGS=-fno-common
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Closes: https://bugs.gentoo.org/show_bug.cgi?id=706528
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/fping')
-rw-r--r-- | net-analyzer/fping/files/fping-4.2-fno-common.patch | 11 | ||||
-rw-r--r-- | net-analyzer/fping/fping-4.2.ebuild | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/net-analyzer/fping/files/fping-4.2-fno-common.patch b/net-analyzer/fping/files/fping-4.2-fno-common.patch new file mode 100644 index 000000000000..d18af66b0637 --- /dev/null +++ b/net-analyzer/fping/files/fping-4.2-fno-common.patch @@ -0,0 +1,11 @@ +--- a/src/fping.h ++++ b/src/fping.h +@@ -11,7 +11,7 @@ + void crash_and_burn( char *message ); + void errno_crash_and_burn( char *message ); + int in_cksum( unsigned short *p, int n ); +-int random_data_flag; ++extern int random_data_flag; + + /* socket.c */ + int open_ping_socket_ipv4(); diff --git a/net-analyzer/fping/fping-4.2.ebuild b/net-analyzer/fping/fping-4.2.ebuild index b181b90c670f..fff3fa9ccd77 100644 --- a/net-analyzer/fping/fping-4.2.ebuild +++ b/net-analyzer/fping/fping-4.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,6 +12,10 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" IUSE="ipv6 suid" +PATCHES=( + "${FILESDIR}"/${PN}-4.2-fno-common.patch +) + src_configure() { econf $(use_enable ipv6) } |