From: Sergei Trofimovich Date: Fri, 13 Mar 2020 22:01:24 +0000 (+0000) Subject: app-crypt/gnupg: add -fcommon workaround for gcc-10, bug #705884 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=96d6fe37a6781869755fa5625c18010486eaa2e2;p=gentoo.git 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 --- diff --git a/app-crypt/gnupg/gnupg-2.2.19.ebuild b/app-crypt/gnupg/gnupg-2.2.19.ebuild index 8a253de4ad99..0a1d2df46afd 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