From 814c45af56e731739e80b56c95699b0ec1682e16 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 21 Jun 2020 18:31:23 +0100 Subject: 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 --- .../files/gnat-gpl-2017-libgomp-Werror.patch | 20 ++++++++++++++++++++ dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild | 1 + 2 files changed, 21 insertions(+) create mode 100644 dev-lang/gnat-gpl/files/gnat-gpl-2017-libgomp-Werror.patch (limited to 'dev-lang') 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 000000000000..416808a63b15 --- /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 4e65591d29ce..636000b373ea 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() { -- cgit v1.2.3-65-gdbad