diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-02-03 20:28:04 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-02-03 20:28:33 +0100 |
commit | 78c775afa54f223bd01b2cb143ef36a32ec92aa8 (patch) | |
tree | aa9aa7a09cbddef252c1abf08d1bee93f0a8aa3a /net-analyzer | |
parent | dev-db/mariadb: Fix building with binutil-libs-2.34 (diff) | |
download | gentoo-78c775afa54f223bd01b2cb143ef36a32ec92aa8.tar.gz gentoo-78c775afa54f223bd01b2cb143ef36a32ec92aa8.tar.bz2 gentoo-78c775afa54f223bd01b2cb143ef36a32ec92aa8.zip |
net-analyzer/flow-tools: Fix CFLAGS=-fno-common
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Closes: https://bugs.gentoo.org/show_bug.cgi?id=708038
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch | 42 | ||||
-rw-r--r-- | net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild | 3 |
2 files changed, 44 insertions, 1 deletions
diff --git a/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch b/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch new file mode 100644 index 000000000000..14623fa93f36 --- /dev/null +++ b/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-fno-common.patch @@ -0,0 +1,42 @@ +--- ./src/acl2.h ++++ ./src/acl2.h +@@ -48,7 +48,7 @@ + #define ACL_TYPE_STD 1 + #define ACL_TYPE_EXT 2 + +-struct acl_list { ++typedef struct acl_list { + int num; /* number of entries */ + int num_std; /* number of standard acl entries */ + int num_ext; /* number of extended acl entries */ +@@ -59,6 +59,8 @@ + /* num_ext of these */ + }; + ++extern struct acl_list acl_list; ++ + struct acl_names { + int num; /* index into standard or extended list */ + char *name; /* name of this acl */ +--- a/src/aclyacc.y ++++ b/src/aclyacc.y +@@ -7,8 +7,6 @@ + unsigned char fmt_buf[32]; + unsigned char fmt_buf2[32]; + +-extern struct acl_list acl_list; +- + int x; + + %} +--- a/src/flow-filter.c ++++ b/src/flow-filter.c +@@ -56,8 +56,6 @@ + int debug; + int ip_net_only; + +-struct acl_list acl_list; +- + int yyparse (void); + void usage(void); + void yyerror(const char *msg); diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild index 4a048f0d81c0..8656ded05688 100644 --- a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild +++ b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.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 @@ -32,6 +32,7 @@ PATCHES=( "${FILESDIR}"/${P}-run.patch "${FILESDIR}"/${P}-syslog.patch "${FILESDIR}"/${P}-openssl11.patch + "${FILESDIR}"/${P}-fno-common.patch ) pkg_setup() { |