commit:     8b49e6e9ad5a00bb5636afa012b4aa93071ff52f
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Fri Dec 29 14:37:13 2023 +0000
Commit:     orbea <orbea <AT> riseup <DOT> net>
CommitDate: Fri Dec 29 14:37:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=8b49e6e9

dev-lang/python: sync ::gentoo

Signed-off-by: orbea <orbea <AT> riseup.net>

 dev-lang/python/python-3.10.13.ebuild | 17 ++++++++++-------
 dev-lang/python/python-3.11.7.ebuild  | 20 +++++++++++---------
 dev-lang/python/python-3.9.18.ebuild  | 17 ++++++++++-------
 3 files changed, 31 insertions(+), 23 deletions(-)

diff --git a/dev-lang/python/python-3.10.13.ebuild 
b/dev-lang/python/python-3.10.13.ebuild
index 2a898ea..8f956b6 100644
--- a/dev-lang/python/python-3.10.13.ebuild
+++ b/dev-lang/python/python-3.10.13.ebuild
@@ -30,7 +30,7 @@ LICENSE="PSF-2"
 SLOT="${PYVER}"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86"
 IUSE="
-       bluetooth build debug +ensurepip examples gdbm libedit lto
+       bluetooth build debug +ensurepip examples gdbm libedit
        +ncurses pgo +readline +sqlite +ssl test tk valgrind +xml
 "
 RESTRICT="!test? ( test )"
@@ -224,11 +224,6 @@ src_configure() {
        append-flags -fwrapv
        filter-flags -malign-double
 
-       # https://bugs.gentoo.org/700012
-       if is-flagq -flto || is-flagq '-flto=*'; then
-               append-cflags $(test-flags-CC -ffat-lto-objects)
-       fi
-
        # Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
        # PKG_CONFIG needed for cross.
        tc-export CXX PKG_CONFIG
@@ -292,12 +287,12 @@ src_configure() {
                --with-libc=
                --enable-loadable-sqlite-extensions
                --without-ensurepip
+               --without-lto
                --with-system-expat
                --with-system-ffi
                --with-wheel-pkg-dir="${EPREFIX}"/usr/lib/python/ensurepip
 
                $(use_with debug assertions)
-               $(use_with lto)
                $(use_enable pgo optimizations)
                $(use_with readline readline "$(usex libedit editline 
readline)")
                $(use_with valgrind)
@@ -306,6 +301,14 @@ src_configure() {
        # disable implicit optimization/debugging flags
        local -x OPT=
 
+       # https://bugs.gentoo.org/700012
+       if tc-is-lto; then
+               append-cflags $(test-flags-CC -ffat-lto-objects)
+               myeconfargs+=(
+                       --with-lto
+               )
+       fi
+
        if tc-is-cross-compiler ; then
                build_cbuild_python
                # Point the imminent CHOST build to the Python we just

diff --git a/dev-lang/python/python-3.11.7.ebuild 
b/dev-lang/python/python-3.11.7.ebuild
index 6ead0df..c9a72ac 100644
--- a/dev-lang/python/python-3.11.7.ebuild
+++ b/dev-lang/python/python-3.11.7.ebuild
@@ -28,9 +28,9 @@ S="${WORKDIR}/${MY_P}"
 
 LICENSE="PSF-2"
 SLOT="${PYVER}"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86"
 IUSE="
-       bluetooth build debug +ensurepip examples gdbm libedit lto
+       bluetooth build debug +ensurepip examples gdbm libedit
        +ncurses pgo +readline +sqlite +ssl test tk valgrind
 "
 RESTRICT="!test? ( test )"
@@ -203,7 +203,6 @@ build_cbuild_python() {
 }
 
 src_configure() {
-       local disable
        # disable automagic bluetooth headers detection
        if ! use bluetooth; then
                local -x ac_cv_header_bluetooth_bluetooth_h=no
@@ -212,11 +211,6 @@ src_configure() {
        append-flags -fwrapv
        filter-flags -malign-double
 
-       # https://bugs.gentoo.org/700012
-       if is-flagq -flto || is-flagq '-flto=*'; then
-               append-cflags $(test-flags-CC -ffat-lto-objects)
-       fi
-
        # Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
        # PKG_CONFIG needed for cross.
        tc-export CXX PKG_CONFIG
@@ -283,6 +277,7 @@ src_configure() {
                --with-libc=
                --enable-loadable-sqlite-extensions
                --without-ensurepip
+               --without-lto
                --with-system-expat
                --with-system-ffi
                --with-platlibdir=lib
@@ -290,7 +285,6 @@ src_configure() {
                --with-wheel-pkg-dir="${EPREFIX}"/usr/lib/python/ensurepip
 
                $(use_with debug assertions)
-               $(use_with lto)
                $(use_enable pgo optimizations)
                $(use_with readline readline "$(usex libedit editline 
readline)")
                $(use_with valgrind)
@@ -299,6 +293,14 @@ src_configure() {
        # disable implicit optimization/debugging flags
        local -x OPT=
 
+       # https://bugs.gentoo.org/700012
+       if tc-is-lto; then
+               append-cflags $(test-flags-CC -ffat-lto-objects)
+               myeconfargs+=(
+                       --with-lto
+               )
+       fi
+
        if tc-is-cross-compiler ; then
                build_cbuild_python
                myeconfargs+=(

diff --git a/dev-lang/python/python-3.9.18.ebuild 
b/dev-lang/python/python-3.9.18.ebuild
index 4936929..0743f8c 100644
--- a/dev-lang/python/python-3.9.18.ebuild
+++ b/dev-lang/python/python-3.9.18.ebuild
@@ -30,7 +30,7 @@ LICENSE="PSF-2"
 SLOT="${PYVER}"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86"
 IUSE="
-       bluetooth build debug +ensurepip examples gdbm lto +ncurses pgo
+       bluetooth build debug +ensurepip examples gdbm +ncurses pgo
        +readline +sqlite +ssl test tk valgrind +xml
 "
 RESTRICT="!test? ( test )"
@@ -160,11 +160,6 @@ src_configure() {
        append-flags -fwrapv
        filter-flags -malign-double
 
-       # https://bugs.gentoo.org/700012
-       if is-flagq -flto || is-flagq '-flto=*'; then
-               append-cflags $(test-flags-CC -ffat-lto-objects)
-       fi
-
        # Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
        # PKG_CONFIG needed for cross.
        tc-export CXX PKG_CONFIG
@@ -222,12 +217,12 @@ src_configure() {
                --with-libc=
                --enable-loadable-sqlite-extensions
                --without-ensurepip
+               --without-lto
                --with-system-expat
                --with-system-ffi
                --with-wheel-pkg-dir="${EPREFIX}"/usr/lib/python/ensurepip
 
                $(use_with debug assertions)
-               $(use_with lto)
                $(use_enable pgo optimizations)
                $(use_with valgrind)
        )
@@ -235,6 +230,14 @@ src_configure() {
        # disable implicit optimization/debugging flags
        local -x OPT=
 
+       # https://bugs.gentoo.org/700012
+       if tc-is-lto; then
+               append-cflags $(test-flags-CC -ffat-lto-objects)
+               myeconfargs+=(
+                       --with-lto
+               )
+       fi
+
        if tc-is-cross-compiler ; then
                # Hack to workaround get_libdir not being able to handle 
CBUILD, bug #794181
                local cbuild_libdir=$(unset PKG_CONFIG_PATH ; 
$(tc-getBUILD_PKG_CONFIG) --keep-system-libs --libs-only-L libffi)

Reply via email to