Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/fping/, net-analyzer/fping/files/
Date: Mon, 27 Jan 2020 00:39:34
Message-Id: 1580085565.0cccf240057e4581546bb59c6221d82d34660183.jer@gentoo
1 commit: 0cccf240057e4581546bb59c6221d82d34660183
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 27 00:39:11 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 27 00:39:25 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cccf240
7
8 net-analyzer/fping: Fix CFLAGS=-fno-common
9
10 Package-Manager: Portage-2.3.85, Repoman-2.3.20
11 Closes: https://bugs.gentoo.org/show_bug.cgi?id=706528
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 net-analyzer/fping/files/fping-4.2-fno-common.patch | 11 +++++++++++
15 net-analyzer/fping/fping-4.2.ebuild | 6 +++++-
16 2 files changed, 16 insertions(+), 1 deletion(-)
17
18 diff --git a/net-analyzer/fping/files/fping-4.2-fno-common.patch b/net-analyzer/fping/files/fping-4.2-fno-common.patch
19 new file mode 100644
20 index 00000000000..d18af66b063
21 --- /dev/null
22 +++ b/net-analyzer/fping/files/fping-4.2-fno-common.patch
23 @@ -0,0 +1,11 @@
24 +--- a/src/fping.h
25 ++++ b/src/fping.h
26 +@@ -11,7 +11,7 @@
27 + void crash_and_burn( char *message );
28 + void errno_crash_and_burn( char *message );
29 + int in_cksum( unsigned short *p, int n );
30 +-int random_data_flag;
31 ++extern int random_data_flag;
32 +
33 + /* socket.c */
34 + int open_ping_socket_ipv4();
35
36 diff --git a/net-analyzer/fping/fping-4.2.ebuild b/net-analyzer/fping/fping-4.2.ebuild
37 index b181b90c670..fff3fa9ccd7 100644
38 --- a/net-analyzer/fping/fping-4.2.ebuild
39 +++ b/net-analyzer/fping/fping-4.2.ebuild
40 @@ -1,4 +1,4 @@
41 -# Copyright 1999-2019 Gentoo Authors
42 +# Copyright 1999-2020 Gentoo Authors
43 # Distributed under the terms of the GNU General Public License v2
44
45 EAPI=7
46 @@ -12,6 +12,10 @@ SLOT="0"
47 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
48 IUSE="ipv6 suid"
49
50 +PATCHES=(
51 + "${FILESDIR}"/${PN}-4.2-fno-common.patch
52 +)
53 +
54 src_configure() {
55 econf $(use_enable ipv6)
56 }