commit:     137c6d0032d7734a0a884d82812b8d2e7fa48be2
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sun May  8 12:02:25 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun May  8 12:03:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137c6d00

app-emulation/xen-tools: remove more -Werror arguments

Closes: https://bugs.gentoo.org/843269
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild 
b/app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild
index d47a25185322..60c3e719f0c0 100644
--- a/app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild
+++ b/app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild
@@ -419,7 +419,11 @@ src_prepare() {
 
        # Remove -Werror
        find . -type f \( -name Makefile -o -name "*.mk" \) \
-               -exec sed -i "s/-Werror //g" {} + || die
+                -exec sed -i \
+                -e 's/-Werror //g' \
+                -e '/^CFLAGS *+= -Werror$/d' \
+                -e 's/, "-Werror"//' \
+                {} + || die
 
        default
 }

Reply via email to