dev-cpp/gtest: Remove -Werror flag from build
authorPeter Levine <plevine457@gmail.com>
Tue, 18 Sep 2018 21:28:38 +0000 (17:28 -0400)
committerMichał Górny <mgorny@gentoo.org>
Sat, 22 Sep 2018 07:07:11 +0000 (09:07 +0200)
Causes build failure
E.g., https://github.com/google/googletest/issues/1584

Package-Manager: Portage-2.3.49, Repoman-2.3.10

dev-cpp/gtest/gtest-9999.ebuild

index a2e7c57c55e93db4a170899a2fe60c527d6b32c7..a1cb73bf993c0fc9655ef6163a6a456931d2d534 100644 (file)
@@ -6,7 +6,7 @@ EAPI="6"
 # Python is required for tests and some build tasks.
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
 
-inherit python-any-r1 cmake-multilib
+inherit cmake-multilib python-any-r1
 
 if [[ ${PV} == "9999" ]]; then
        inherit git-r3
@@ -36,6 +36,13 @@ pkg_setup() {
        use test && python-any-r1_pkg_setup
 }
 
+src_prepare() {
+       cmake-utils_src_prepare
+
+       sed -i -e '/set(cxx_base_flags /s:-Werror::' \
+               googletest/cmake/internal_utils.cmake || die "sed failed!"
+}
+
 multilib_src_configure() {
        local mycmakeargs=(
                -DBUILD_GMOCK=ON