commit:     09a48d7649ff8ec54062a0aa41d675aa3c0e88f9
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Nov 19 02:41:55 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 19 06:32:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09a48d76

dev-python/lxml: avoid suppressing compiler warnings

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 <eschwartz93 <AT> gmail.com>
Closes: https://bugs.gentoo.org/917562
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 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 01ddc28bb840..cd6b75b3c807 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
 }

Reply via email to