commit:     96d6fe37a6781869755fa5625c18010486eaa2e2
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 13 22:01:24 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Mar 13 22:01:59 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96d6fe37

app-crypt/gnupg: add -fcommon workaround for gcc-10, bug #705884

Closes: https://bugs.gentoo.org/705884
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 app-crypt/gnupg/gnupg-2.2.19.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/app-crypt/gnupg/gnupg-2.2.19.ebuild 
b/app-crypt/gnupg/gnupg-2.2.19.ebuild
index 8a253de4ad9..0a1d2df46af 100644
--- a/app-crypt/gnupg/gnupg-2.2.19.ebuild
+++ b/app-crypt/gnupg/gnupg-2.2.19.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
@@ -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

Reply via email to