commit: 01583dd1074e0e7566bf363735bc47875d642c03
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 13 15:02:10 2023 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Wed Sep 13 15:03:17 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01583dd1
dev-lang/python: Set --prefix when building host "mini" Python
Otherwise flags pointing to the target prefix are added to the sysconfigdata,
which can break building the native extensions.
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
dev-lang/python/python-3.10.13.ebuild | 1 +
dev-lang/python/python-3.11.5.ebuild | 1 +
dev-lang/python/python-3.12.0_rc2_p1.ebuild | 1 +
3 files changed, 3 insertions(+)
diff --git a/dev-lang/python/python-3.10.13.ebuild
b/dev-lang/python/python-3.10.13.ebuild
index e4e3da709eef..67085bcef06b 100644
--- a/dev-lang/python/python-3.10.13.ebuild
+++ b/dev-lang/python/python-3.10.13.ebuild
@@ -261,6 +261,7 @@ src_configure() {
local myeconfargs_cbuild=(
"${myeconfargs[@]}"
+ --prefix="${BROOT}"/usr
--libdir="${cbuild_libdir:2}"
# Avoid needing to load the right libpython.so.
diff --git a/dev-lang/python/python-3.11.5.ebuild
b/dev-lang/python/python-3.11.5.ebuild
index db78c59ef0d7..df3980352b02 100644
--- a/dev-lang/python/python-3.11.5.ebuild
+++ b/dev-lang/python/python-3.11.5.ebuild
@@ -250,6 +250,7 @@ src_configure() {
local myeconfargs_cbuild=(
"${myeconfargs[@]}"
+ --prefix="${BROOT}"/usr
--libdir="${cbuild_libdir:2}"
# Avoid needing to load the right libpython.so.
diff --git a/dev-lang/python/python-3.12.0_rc2_p1.ebuild
b/dev-lang/python/python-3.12.0_rc2_p1.ebuild
index 417ddacff0f8..d9637d52d1fc 100644
--- a/dev-lang/python/python-3.12.0_rc2_p1.ebuild
+++ b/dev-lang/python/python-3.12.0_rc2_p1.ebuild
@@ -249,6 +249,7 @@ src_configure() {
local myeconfargs_cbuild=(
"${myeconfargs[@]}"
+ --prefix="${BROOT}"/usr
--libdir="${cbuild_libdir:2}"
# Avoid needing to load the right libpython.so.