summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Henke <Jan.Henke@taujhe.de>2018-03-17 22:36:47 +0100
committerMichał Górny <mgorny@gentoo.org>2018-03-19 16:45:37 +0100
commitdb56cbbc4241fdd4aa19a7e09987334ba6fede80 (patch)
treedc430b119a24809ee4e1769e15dfbf04d44431c0 /dev-cpp
parentsys-kernel/rt-sources: remove old (diff)
downloadgentoo-db56cbbc4241fdd4aa19a7e09987334ba6fede80.tar.gz
gentoo-db56cbbc4241fdd4aa19a7e09987334ba6fede80.tar.bz2
gentoo-db56cbbc4241fdd4aa19a7e09987334ba6fede80.zip
dev-cpp/ms-gsl: Disable Werror when compiling tests
This lead to build failures due to new warnings being emmited by GCC 7 Closes: https://bugs.gentoo.org/644042 Closes: https://github.com/gentoo/gentoo/pull/7495 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/ms-gsl/files/ms-gsl-0_pre20180304-disable_Werror-644042.patch27
-rw-r--r--dev-cpp/ms-gsl/ms-gsl-0_pre20180304.ebuild1
2 files changed, 28 insertions, 0 deletions
diff --git a/dev-cpp/ms-gsl/files/ms-gsl-0_pre20180304-disable_Werror-644042.patch b/dev-cpp/ms-gsl/files/ms-gsl-0_pre20180304-disable_Werror-644042.patch
new file mode 100644
index 000000000000..9d2a43c223f3
--- /dev/null
+++ b/dev-cpp/ms-gsl/files/ms-gsl-0_pre20180304-disable_Werror-644042.patch
@@ -0,0 +1,27 @@
+From 402dd069acc1944428fd9f4ed3620a157028f6cc Mon Sep 17 00:00:00 2001
+From: Jan Henke <Jan.Henke@taujhe.de>
+Date: Sat, 17 Mar 2018 19:47:52 +0100
+Subject: [PATCH] Disable -Werror when compiling tests
+
+GCC 7 generates new warnings on some of the test files, which lead to
+build failures. -Werror generally is helpful while developing to enforce
+a zero error policy, but not so much when packaging. Gentoo bug 644042
+---
+ tests/CMakeLists.txt | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index 0e08d77..86e9af7 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -41,7 +41,6 @@ target_compile_options(gsl_tests_config INTERFACE
+ -Wcast-align
+ -Wconversion
+ -Wctor-dtor-privacy
+- -Werror
+ -Wextra
+ -Wno-missing-braces
+ -Wnon-virtual-dtor
+--
+2.16.1
+
diff --git a/dev-cpp/ms-gsl/ms-gsl-0_pre20180304.ebuild b/dev-cpp/ms-gsl/ms-gsl-0_pre20180304.ebuild
index c80cd2a3517a..34943ad4bf80 100644
--- a/dev-cpp/ms-gsl/ms-gsl-0_pre20180304.ebuild
+++ b/dev-cpp/ms-gsl/ms-gsl-0_pre20180304.ebuild
@@ -20,6 +20,7 @@ DEPEND="test? ( >=dev-cpp/catch-1.11.0 )"
PATCHES=(
"${FILESDIR}/ms-gsl-0_pre20180108-use_system_catch-636828.patch"
+ "${FILESDIR}/ms-gsl-0_pre20180304-disable_Werror-644042.patch"
)
src_configure() {