app-crypt/gnupg: add -fcommon workaround for gcc-10, bug #705884
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 13 Mar 2020 22:01:24 +0000 (22:01 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 13 Mar 2020 22:01:59 +0000 (22:01 +0000)
Closes: https://bugs.gentoo.org/705884
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
app-crypt/gnupg/gnupg-2.2.19.ebuild

index 8a253de4ad99a5a5ab735bcd9795ef170f89c26c..0a1d2df46afd392051a6e33a2748aa8fc440abdf 100644 (file)
@@ -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
@@ -61,6 +61,11 @@ src_configure() {
                append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0"
        fi
 
+       # Remove when https://dev.gnupg.org/T4831 gets released.
+       [[ $PV != 2.2.19 ]] && die "Check if -fcommon workaround is still needed."
+       # Workaround gcc-10 build failure (bug #705884).
+       append-cflags -fcommon
+
        if use elibc_SunOS || use elibc_AIX; then
                myconf+=( --disable-symcryptrun )
        else