From 09a48d7649ff8ec54062a0aa41d675aa3c0e88f9 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sat, 18 Nov 2023 21:41:55 -0500 Subject: [PATCH] dev-python/lxml: avoid suppressing compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default, setupinfo.py injects `-w` to the CFLAGS passed down to Extension objects. This obscures things we'd like to see. For example, it prevents adding Modern C Porting flags. Signed-off-by: Eli Schwartz Closes: https://bugs.gentoo.org/917562 Signed-off-by: Michał Górny --- dev-python/lxml/lxml-4.9.3-r2.ebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-python/lxml/lxml-4.9.3-r2.ebuild b/dev-python/lxml/lxml-4.9.3-r2.ebuild index 01ddc28bb8402..cd6b75b3c8074 100644 --- a/dev-python/lxml/lxml-4.9.3-r2.ebuild +++ b/dev-python/lxml/lxml-4.9.3-r2.ebuild @@ -76,6 +76,10 @@ python_prepare_all() { } python_compile() { + local DISTUTILS_ARGS=( + # by default it adds -w to CFLAGS + --warnings + ) tc-export PKG_CONFIG distutils-r1_python_compile }