diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-12 07:30:22 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-12 07:30:22 +0000 |
| commit | 17b3343e0e69597ef19ef0636f24f2eff070da8c (patch) | |
| tree | 1983d780feebc87beda6b45e664dba837fc2911b /python/abuild | |
| parent | 46ed11501c3d4ea211c0a8494fe20ff58bd1691e (diff) | |
| download | alicelinux-17b3343e0e69597ef19ef0636f24f2eff070da8c.tar.gz alicelinux-17b3343e0e69597ef19ef0636f24f2eff070da8c.zip | |
Woodpecker CI 56431a6959312e549b43ccace3cc194a92b94517 [SKIP CI]
Diffstat (limited to 'python/abuild')
| -rw-r--r-- | python/abuild | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/python/abuild b/python/abuild index 1d55c670..f74b5f8b 100644 --- a/python/abuild +++ b/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 } |