diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-06-14 12:08:56 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-06-14 12:09:40 +0200 |
commit | 492d6119594d1774685fcd4f40fb5d754c3d77c4 (patch) | |
tree | ad53dae3921ea45063ba9a4f59b70f9c16b7344b /net-firewall/pglinux | |
parent | net-misc/axel: 2.17.9 version bump. (diff) | |
download | gentoo-492d6119594d1774685fcd4f40fb5d754c3d77c4.tar.gz gentoo-492d6119594d1774685fcd4f40fb5d754c3d77c4.tar.bz2 gentoo-492d6119594d1774685fcd4f40fb5d754c3d77c4.zip |
net-firewall/pglinux: Fix building with CFLAGS=-fno-common
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707944
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-firewall/pglinux')
-rw-r--r-- | net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno-common.patch | 21 | ||||
-rw-r--r-- | net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild | 5 |
2 files changed, 25 insertions, 1 deletions
diff --git a/net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno-common.patch b/net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno-common.patch new file mode 100644 index 000000000000..d6c80405e86d --- /dev/null +++ b/net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno-common.patch @@ -0,0 +1,21 @@ +--- a/pgld/src/blocklist.h ++++ b/pgld/src/blocklist.h +@@ -74,6 +74,6 @@ + void blocklist_stats(int clearhits); + block_entry_t * blocklist_find(uint32_t ip); + void blocklist_dump(); +-blocklist_t blocklist; ++extern blocklist_t blocklist; + + #endif /* INC_BLOCKLIST_H */ +--- a/pgld/src/blocklist.c ++++ b/pgld/src/blocklist.c +@@ -22,6 +22,8 @@ + #include "blocklist.h" + #include "pgld.h" + ++blocklist_t blocklist; ++ + void blocklist_init() { + blocklist.entries = NULL; + blocklist.count = 0; diff --git a/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild b/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild index 8f0826099c32..eafaafe2ee81 100644 --- a/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild +++ b/net-firewall/pglinux/pglinux-2.3.1_p20171006.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 @@ -58,6 +58,9 @@ CONFIG_CHECK="~NETFILTER_NETLINK ~IP_NF_IPTABLES ~IP_NF_TARGET_REJECT" +PATCHES=( + "${FILESDIR}"/${P}-fno-common.patch +) S="${WORKDIR}/${MY_PN}-code-${COMMIT}" src_prepare() { |