From 137c6d0032d7734a0a884d82812b8d2e7fa48be2 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 8 May 2022 14:02:25 +0200 Subject: [PATCH] app-emulation/xen-tools: remove more -Werror arguments Closes: https://bugs.gentoo.org/843269 Signed-off-by: Florian Schmaus --- 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 d47a251853228..60c3e719f0c01 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 }