commit:     814c45af56e731739e80b56c95699b0ec1682e16
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 21 17:31:23 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Jun 21 17:31:23 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=814c45af

dev-lang/gnat-gpl: backport libgomp -Werror fix to 2017

Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 .../files/gnat-gpl-2017-libgomp-Werror.patch         | 20 ++++++++++++++++++++
 dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild            |  1 +
 2 files changed, 21 insertions(+)

diff --git a/dev-lang/gnat-gpl/files/gnat-gpl-2017-libgomp-Werror.patch 
b/dev-lang/gnat-gpl/files/gnat-gpl-2017-libgomp-Werror.patch
new file mode 100644
index 00000000000..416808a63b1
--- /dev/null
+++ b/dev-lang/gnat-gpl/files/gnat-gpl-2017-libgomp-Werror.patch
@@ -0,0 +1,20 @@
+libgomp does not respect --disable-werror
+
+https://bugs.gentoo.org/229059
+http://gcc.gnu.org/PR38436
+--- a/libgomp/configure.ac
++++ b/libgomp/configure.ac
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi
+--- a/libgomp/configure
++++ b/libgomp/configure
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi

diff --git a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild 
b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild
index 4e65591d29c..636000b373e 100644
--- a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild
+++ b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild
@@ -125,6 +125,7 @@ src_prepare() {
        eapply "${FILESDIR}/${P}-ustat.patch"
 
        toolchain_src_prepare
+       eapply "${FILESDIR}"/${P}-libgomp-Werror.patch
 }
 
 src_configure() {

Reply via email to