commit:     41c27607fcb9c335084126b538df123ec56ed0e1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 28 07:21:44 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 28 07:23:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41c27607

dev-python/setproctitle: build w/ -std=gnu17

Bug: https://github.com/dvarrazzo/py-setproctitle/issues/145
Closes: https://bugs.gentoo.org/943816
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild 
b/dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild
index f2a30fffeebb..a2ea80283b84 100644
--- a/dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild
+++ b/dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild
@@ -9,7 +9,7 @@ DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{10..13} pypy3 )
 
-inherit distutils-r1 pypi
+inherit distutils-r1 flag-o-matic pypi
 
 DESCRIPTION="Allow customization of the process title"
 HOMEPAGE="
@@ -29,3 +29,10 @@ src_prepare() {
        # remove the override that makes extension builds non-fatal
        sed -i -e '/cmdclass/d' setup.py || die
 }
+
+src_configure() {
+       # https://github.com/dvarrazzo/py-setproctitle/issues/145
+       append-cflags -std=gnu17
+
+       distutils-r1_src_configure
+}

Reply via email to