python3: 3.10.12 -> 3.11.4
This commit is contained in:
parent
a81035d9c9
commit
d162847b58
6784
python3/.footprint
6784
python3/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
untrusted comment: verify with /etc/ports/core.pub
|
untrusted comment: verify with /etc/ports/core.pub
|
||||||
RWRJc1FUaeVeqjS3JsDeTweGbAsNhhPWI9wBR7pWmeWMHtoOg9IVtfqQ0x8escYwP2le7qpJTLW7mBt/lBzF5lN6hYuslP6CpQc=
|
RWRJc1FUaeVeqsaoF5xIaEdykWSIHu3O4DhsUX5r4wXvb4gtF8WoMHcubYiI2jhwJS5wx18GbHRiIF87c1sZsxIEacNrYlFSnAg=
|
||||||
SHA256 (Pkgfile) = a8ea0628a34a7cdccb51b17af64400ac93df08134bf84dc1f115d074557fde73
|
SHA256 (Pkgfile) = 6afb63a437305711b502431502077682f82ff3ed43e4d6cd52299000939eaae4
|
||||||
SHA256 (.footprint) = 6553e5613a3dd16f83e7cf502e2c20f54bc25788fbaadb23124c674d92dc2a1f
|
SHA256 (.footprint) = f1b1cca2dca1e4d3b01bc371fc1fdb9e2f7e6dc055ddbebce00e3caff3be6227
|
||||||
SHA256 (Python-3.10.12.tar.xz) = afb74bf19130e7a47d10312c8f5e784f24e0527981eab68e20546cfb865830b8
|
SHA256 (Python-3.11.4.tar.xz) = 2f0e409df2ab57aa9fc4cbddfb976af44e4e55bf6f619eee6bc5c2297264a7f6
|
||||||
|
114
python3/Pkgfile
114
python3/Pkgfile
@ -4,73 +4,73 @@
|
|||||||
# Depends on: bzip2 expat gdbm libffi libnsl libtirpc mpdecimal sqlite3 xz
|
# Depends on: bzip2 expat gdbm libffi libnsl libtirpc mpdecimal sqlite3 xz
|
||||||
|
|
||||||
name=python3
|
name=python3
|
||||||
version=3.10.12
|
version=3.11.4
|
||||||
release=1
|
release=1
|
||||||
source=(https://www.python.org/ftp/python/${version%rc*}/Python-$version.tar.xz)
|
source=(https://www.python.org/ftp/python/${version%rc*}/Python-$version.tar.xz)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd Python-$version
|
cd Python-$version
|
||||||
|
|
||||||
sed -i -e "s|-flto |-flto=4 |g" configure configure.ac
|
sed -i -e "s|-flto |-flto=4 |g" configure configure.ac
|
||||||
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python3|" Lib/cgi.py
|
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python3|" Lib/cgi.py
|
||||||
CFLAGS="${CFLAGS/-O2/-O3} -ffat-lto-objects"
|
CFLAGS="${CFLAGS/-O2/-O3} -ffat-lto-objects"
|
||||||
local _pgojobs=$(nproc)
|
local _pgojobs=$(nproc)
|
||||||
export PROFILE_TASK="-m test -j${_pgojobs} --pgo-extended -x test_gdb -u-network"
|
export PROFILE_TASK="-m test -j${_pgojobs} --pgo-extended -x test_gdb -u-network"
|
||||||
PROFILE_TASK+=" -x test_socket -x test_asyncio -x test_httpservers -x test_logging -x test_multiprocessing_fork -x test_xmlrpc"
|
PROFILE_TASK+=" -x test_socket -x test_asyncio -x test_httpservers -x test_logging -x test_multiprocessing_fork -x test_xmlrpc"
|
||||||
local -x LC_ALL=C.UTF-8
|
local -x LC_ALL=C.UTF-8
|
||||||
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||||
local -x COLUMNS=80
|
local -x COLUMNS=80
|
||||||
local -x PYTHONDONTWRITEBYTECODE=
|
local -x PYTHONDONTWRITEBYTECODE=
|
||||||
|
|
||||||
# Ensure that we are using the system copy of various libraries
|
# Ensure that we are using the system copy of various libraries
|
||||||
rm -r Modules/expat
|
rm -r Modules/expat
|
||||||
rm -r Modules/_ctypes/{darwin,libffi}*
|
rm -r Modules/_ctypes/{darwin,libffi}*
|
||||||
rm -r Modules/_decimal/libmpdec
|
rm -r Modules/_decimal/libmpdec
|
||||||
|
|
||||||
# Remove tests
|
# Remove tests
|
||||||
rm -r Lib/{test,{ctypes,sqlite3,tkinter,unittest}/test}
|
rm -r Lib/{test,{ctypes,tkinter,unittest}/test}
|
||||||
rm -r Lib/{{distutils,lib2to3}/tests,idlelib/idle_test}
|
rm -r Lib/{{distutils,lib2to3}/tests,idlelib/idle_test}
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-optimizations \
|
--enable-optimizations \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--enable-loadable-sqlite-extensions \
|
--enable-loadable-sqlite-extensions \
|
||||||
--with-computed-gotos \
|
--with-computed-gotos \
|
||||||
--with-dbmliborder=gdbm:ndbm \
|
--with-dbmliborder=gdbm:ndbm \
|
||||||
--with-lto \
|
--with-lto \
|
||||||
--with-system-expat \
|
--with-system-expat \
|
||||||
--with-system-ffi \
|
--with-system-ffi \
|
||||||
--with-system-libmpdec \
|
--with-system-libmpdec \
|
||||||
--with-tzpath=/usr/share/zoneinfo \
|
--with-tzpath=/usr/share/zoneinfo \
|
||||||
--without-ensurepip
|
--without-ensurepip
|
||||||
|
|
||||||
make EXTRA_CFLAGS="$CFLAGS"
|
make EXTRA_CFLAGS="$CFLAGS"
|
||||||
make -j1 EXTRA_CFLAGS="$CFLAGS" DESTDIR=$PKG altinstall maninstall
|
make -j1 EXTRA_CFLAGS="$CFLAGS" DESTDIR=$PKG altinstall maninstall
|
||||||
|
|
||||||
ln -s 2to3-${version%.*} $PKG/usr/bin/2to3
|
ln -s 2to3-${version%.*} $PKG/usr/bin/2to3
|
||||||
ln -s python${version%.*} $PKG/usr/bin/python3
|
ln -s python${version%.*} $PKG/usr/bin/python3
|
||||||
ln -s python${version%.*}-config $PKG/usr/bin/python3-config
|
ln -s python${version%.*}-config $PKG/usr/bin/python3-config
|
||||||
ln -s idle${version%.*} $PKG/usr/bin/idle3
|
ln -s idle${version%.*} $PKG/usr/bin/idle3
|
||||||
ln -s pydoc${version%.*} $PKG/usr/bin/pydoc3
|
ln -s pydoc${version%.*} $PKG/usr/bin/pydoc3
|
||||||
ln -s python${version%.*} $PKG/usr/lib/$name
|
ln -s python${version%.*} $PKG/usr/lib/$name
|
||||||
ln -s python-${version%.*}.pc $PKG/usr/lib/pkgconfig/python3.pc
|
ln -s python-${version%.*}.pc $PKG/usr/lib/pkgconfig/python3.pc
|
||||||
ln -s python-${version%.*}-embed.pc $PKG/usr/lib/pkgconfig/python3-embed.pc
|
ln -s python-${version%.*}-embed.pc $PKG/usr/lib/pkgconfig/python3-embed.pc
|
||||||
|
|
||||||
_pybasever=${version%.*}
|
_pybasever=${version%.*}
|
||||||
install -dm755 $PKG/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
|
install -dm755 $PKG/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
|
||||||
install -m755 Tools/i18n/{msgfmt,pygettext}.py \
|
install -m755 Tools/i18n/{msgfmt,pygettext}.py \
|
||||||
$PKG/usr/lib/python${_pybasever}/Tools/i18n/
|
$PKG/usr/lib/python${_pybasever}/Tools/i18n/
|
||||||
install -m755 Tools/scripts/{README,*py} \
|
install -m755 Tools/scripts/{README,*py} \
|
||||||
$PKG/usr/lib/python${_pybasever}/Tools/scripts/
|
$PKG/usr/lib/python${_pybasever}/Tools/scripts/
|
||||||
|
|
||||||
find $PKG/usr/lib/python${version%.*} \( \
|
find $PKG/usr/lib/python${version%.*} \( \
|
||||||
-iname "*README*" -o \
|
-iname "*README*" -o \
|
||||||
-iname "*ChangeLog*" -o \
|
-iname "*ChangeLog*" -o \
|
||||||
-iname "*NEWS*" -o \
|
-iname "*NEWS*" -o \
|
||||||
-iname "*TODO*" -o \
|
-iname "*TODO*" -o \
|
||||||
-iname "*CREDITS*" -o \
|
-iname "*CREDITS*" -o \
|
||||||
-iname "*HISTORY*" \) \
|
-iname "*HISTORY*" \) \
|
||||||
-type f -delete
|
-type f -delete
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user