aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/python/abuild
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-06-11 03:00:08 +0000
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-06-11 03:00:08 +0000
commit52240c706eefb9e7fb7a9dc2e21a0a10d8cc71a7 (patch)
tree038ac36e5e784828aef64ef4afcbbcc9e2e88cdb /repos/extra/python/abuild
parent7cbd6585f10cc503bb5c3a819451148545d55447 (diff)
downloadalicelinux-52240c706eefb9e7fb7a9dc2e21a0a10d8cc71a7.tar.gz
alicelinux-52240c706eefb9e7fb7a9dc2e21a0a10d8cc71a7.zip
python: added patch fix build
Diffstat (limited to 'repos/extra/python/abuild')
-rw-r--r--repos/extra/python/abuild23
1 files changed, 10 insertions, 13 deletions
diff --git a/repos/extra/python/abuild b/repos/extra/python/abuild
index 1d55c670..f74b5f8b 100644
--- a/repos/extra/python/abuild
+++ b/repos/extra/python/abuild
@@ -1,19 +1,14 @@
name=python
version=3.13.3
-release=1
+release=2
source="https://www.$name.org/ftp/$name/$version/Python-$version.tar.xz
+ musl-pgo-tests.patch
libressl.diff"
-build_opt="--without-ensurepip
- --enable-shared
- --with-system-expat
- --with-system-ffi
- --enable-optimizations"
build() {
- # Reported 20-27% performance improvements.
- # See: "PythonNoSemanticInterpositionSpeedup"
- export CFLAGS="$CFLAGS -fno-semantic-interposition"
- export LDFLAGS="$LDFLAGS -fno-semantic-interposition"
+ # musl workaround
+ export ac_cv_file__dev_ptmx=yes
+ export ac_cv_file__dev_ptc=no
./configure \
--prefix=/usr \
@@ -24,8 +19,10 @@ build() {
--mandir=/usr/share/man \
--without-ensurepip \
--enable-shared \
- --with-system-expat
+ --with-system-expat \
+ --enable-optimization
make
- make DESTDIR=$PKG install
- ln -s python3 $PKG/usr/bin/python
+ make DESTDIR=$PKG altinstall
+ ln -s python${version%.*} $PKG/usr/bin/python
+ ln -s python${version%.*} $PKG/usr/bin/python3
}