net-analyzer/suricata: build with -fno-common / gcc-10
authorMarek Szuba <marecki@gentoo.org>
Wed, 5 Feb 2020 15:29:31 +0000 (16:29 +0100)
committerMarek Szuba <marecki@gentoo.org>
Wed, 5 Feb 2020 15:30:35 +0000 (16:30 +0100)
Tried fixing the code but it turns out it would require a non-trivial
amount of changes so let's just force -fcommon. Tested using gcc-9 with
-fno-common included in CFLAGS.

Closes: https://bugs.gentoo.org/707204
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Marek Szuba <marecki@gentoo.org>
net-analyzer/suricata/suricata-5.0.1.ebuild

index 6769474059769f0c081ca7f8492701ae68bf1989..d09d4b1a98477fc138d77f4cb38a1f51e13d1eef 100644 (file)
@@ -1,11 +1,11 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 PYTHON_COMPAT=( python3_{6,7,8} )
 
-inherit autotools linux-info python-single-r1 systemd
+inherit autotools flag-o-matic linux-info python-single-r1 systemd
 
 DESCRIPTION="High performance Network IDS, IPS and Network Security Monitoring engine"
 HOMEPAGE="https://suricata-ids.org/"
@@ -71,6 +71,9 @@ pkg_pretend() {
 }
 
 src_prepare() {
+       # Bug #707204
+       append-cflags $(test-flags-CC -fcommon)
+
        default
        sed -ie 's/docdir =.*/docdir = ${datarootdir}\/doc\/'${PF}'\//' "${S}/doc/Makefile.am"
        eautoreconf