diff options
| author | Sam James <sam@gentoo.org> | 2025-05-10 12:14:44 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-05-10 13:53:21 +0100 |
| commit | 113415c295d1d178cfc8e1d38e338b7714a1f096 (patch) | |
| tree | 661908b0e3038324552cf4f19148cfbf2fbef7eb /dev-lang/python/python-3.9.22.ebuild | |
| parent | 9f77be88cfa9ad57e49a01ba4b8b1cc548d6825a (diff) | |
| download | gentoo-113415c295d1d178cfc8e1d38e338b7714a1f096.tar.gz gentoo-113415c295d1d178cfc8e1d38e338b7714a1f096.tar.bz2 gentoo-113415c295d1d178cfc8e1d38e338b7714a1f096.zip | |
dev-lang/python: don't pass -fwrapv
* In eff9f43924fc836970b2378d58523388d9246194 (which is in >=3.12), CPython
drops adding -fwrapv and instead starts to pass -fno-strict-overflow instead
and controls that with a configure flag (--with-strict-overflow).
=> We shouldn't pass -fwrapv with >=3.12.0 at least.
* But also, adding -fwrapv to begin with doesn't seem right, as the build
system should add that for us.
We started doing that in:
commit 6f4cebcf5b631f30baabb9f8e927d6aedcfbdf27
Author: Ali Polatel <hawking@gentoo.org>
Date: Tue Jun 24 13:54:16 2008 +0000
Revbump. Append -fwrapv to CFLAGS if we're using gcc-4, #228905. Updated patchset to fix memory issues with unicode objects, #228905. Drop old.
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r1 x86_64)
(Signed Manifest commit)
which got fixed back in Python 2.5 or so!
=> We didn't need to pass it at all for nearly 20 years.
I've dropped it for all Pythons except for 2.7.x (because who cares
about that, so many UB fixes then, etc) given it wasn't doing anything.
Bug: https://bugs.gentoo.org/228905
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/python/python-3.9.22.ebuild')
| -rw-r--r-- | dev-lang/python/python-3.9.22.ebuild | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/dev-lang/python/python-3.9.22.ebuild b/dev-lang/python/python-3.9.22.ebuild index e8160fe107b8..90d061753484 100644 --- a/dev-lang/python/python-3.9.22.ebuild +++ b/dev-lang/python/python-3.9.22.ebuild @@ -147,7 +147,6 @@ src_configure() { einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" fi - append-flags -fwrapv filter-flags -malign-double # Export CXX so it ends up in /usr/lib/python3.X/config/Makefile. |
