commit:     0d346d35adf3584f4497650c8cf04c68bd3f6eb7
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  2 11:49:04 2026 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jan  2 11:49:04 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=0d346d35

dev-lang/python-3.13.3-r1: fix forkserver for Solaris

multiprocessing forkserver method was not enabled on Solaris, causing
the provided compileall.py script to error out (no use of try/except or
inspection whether forkserver is exists it performed).  Add a patch to
add a missing include, and ensure Python's build uses a reasonably
recent standards level so definitions can be found.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 dev-lang/python/Manifest                | 2 +-
 dev-lang/python/python-3.13.3-r1.ebuild | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-lang/python/Manifest b/dev-lang/python/Manifest
index ddf1675b6f..109a4b0c81 100644
--- a/dev-lang/python/Manifest
+++ b/dev-lang/python/Manifest
@@ -6,4 +6,4 @@ DIST python-gentoo-patches-3.12.10.tar.xz 10744 BLAKE2B 
2abf4874018156d6735cf860
 DIST python-gentoo-patches-3.13.3.tar.xz 8336 BLAKE2B 
66393886fbd034eb14732e4f81f5798e77650ea3fe1c4f8176bd93808b711c8977a53c3f52be6c9b97a368299258b851d9bdb6d4c8e0c75695c6aea784d48b44
 SHA512 
c1ed31d6aaef81addf786c2ccc1013309b122b791c42fe10e467a677d0db8f149e8b1cc21928c146298918c7ceb851b4b19d1e59f491cb161004e1c9386db289
 DIST python-prefix-gentoo-3.12.10-patches-r0.tar.xz 2484 BLAKE2B 
422ae62f1bf9780d7252e912aed95319474ec0fc06c2896bfa607e6165b814a3253968872df5c06a71184244bfae8252a2c8c0753b7d46bccaa728d3e61f7dd5
 SHA512 
66d7a2d89f196d83e3cc8be0ac7c028c114defed473bb4f9b7b468af8be6d6d47deed3dce98651f8ab8a39532da6e838330f47241128e306f58c9b9291b5d822
 DIST python-prefix-gentoo-3.13.3-patches-r0.tar.xz 2480 BLAKE2B 
6f9ed65ae7b835d27b908c76e4c2b2f92f366858763f95902d1d55712e203c526875b245f43838aa348a9e8e65f37a21c842dcf0a79fcaaaea3f7e0c05f5e6a5
 SHA512 
097a0449423046359ad2808b03cc37e462cc30c6d5f1c8d36a2684c92acc4dfc9b5f5f1fa93f6f1bcd2282fc4c7d023308b04271e99af1cb3b00fd7c2ec6784c
-DIST python-prefix-gentoo-3.13.3-patches-r1.tar.xz 2944 BLAKE2B 
d9c5cb6d609c662b92b62f77d66e81e834ecdb97f1dc2823c4e7f10f82870bdb55063c969030c2c86f57ee7c8e3787c92a981ee7068af306f762fcea74466eea
 SHA512 
072ec358544303b94c25c184d7ddc40deb75ba4c156f547bd37352fc202afd62c99d65ef7d9b22078afa19fb276ecdc4252d5ae12e38edd0fa41e69bda5c2713
+DIST python-prefix-gentoo-3.13.3-patches-r2.tar.xz 3252 BLAKE2B 
2dbacaf7a98dd250f44457f7909119efd4fadd6aeb563b153fd810a792e9343a74966fb592a44084549ad195c9225d5a06fe31050ccf74d291e7dac4a592aad9
 SHA512 
41541387e2e3c35c51294a69f494011382c75acb6a25617c165bb90163f239ac5f46444c5fc7c27906079d4cab9a0da5b5a63050df09c90e0bb01ef110c210eb

diff --git a/dev-lang/python/python-3.13.3-r1.ebuild 
b/dev-lang/python/python-3.13.3-r1.ebuild
index d39936ec08..d722d54547 100644
--- a/dev-lang/python/python-3.13.3-r1.ebuild
+++ b/dev-lang/python/python-3.13.3-r1.ebuild
@@ -16,7 +16,7 @@ MY_PV=${PV}
 MY_P="Python-${MY_PV%_p*}"
 PYVER=$(ver_cut 1-2)
 PATCHSET="python-gentoo-patches-${MY_PV}"
-PREFIX_PATCHSET="python-prefix-gentoo-${MY_PV%_p*}-patches-r1"
+PREFIX_PATCHSET="python-prefix-gentoo-${MY_PV%_p*}-patches-r2"
 
 DESCRIPTION="An interpreted, interactive, object-oriented programming language"
 HOMEPAGE="
@@ -202,6 +202,8 @@ src_prepare() {
                # libresolv, so use hstrerror to check if we need -lresolv
                sed -i -e '/AC_CHECK_LIB/s/inet_aton/hstrerror/' \
                        configure.ac configure || die
+               # enable at least XPG2/UNIX95 for things like sendmsg
+               append-flags -D_XOPEN_SOURCE=500 -D__EXTENSIONS__=1
        fi
 
        eautoreconf

Reply via email to