dev-util/android-tools: remove -Werror (bug 706946)
authorZac Medico <zmedico@gentoo.org>
Thu, 28 May 2020 06:13:10 +0000 (23:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 28 May 2020 06:21:19 +0000 (23:21 -0700)
Bug: https://bugs.gentoo.org/706946
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Zac Medico <zmedico@gentoo.org>
dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild

index b00003af78a1d48698ad8bc1b5a7ed2b9e91915a..67c0ac57ad6e8edcdeef7b4f18177ab3d18fb5c1 100644 (file)
@@ -109,6 +109,8 @@ src_prepare() {
                -e "s|^(PKGVER =).*|\\1 ${MY_PV}|g" \
                -i build.ninja || die
 
+       grep -rlZ -- -Werror . | xargs -0 sed -e 's:-Werror ::g' -e 's: -Werror::g' -i || die #706946
+
        # The pregenerated ninja file expects the build/ dir.
        BUILD_DIR="${CMAKE_USE_DIR}/build"
        cmake-utils_src_prepare