diff --git a/srcpkgs/python/template b/srcpkgs/python/template index a9702c5ded0..9e235222197 100644 --- a/srcpkgs/python/template +++ b/srcpkgs/python/template @@ -3,8 +3,8 @@ # THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/python-tkinter". # pkgname=python -version=2.7.17 -revision=3 +version=2.7.18 +revision=1 wrksrc="Python-${version}" pycompile_dirs="usr/lib/python2.7" hostmakedepends="pkg-config" @@ -16,7 +16,7 @@ maintainer="Orphaned " license="Python-2.0" homepage="https://www.python.org" distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz" -checksum=4d43f033cdbd0aa7b7023c81b0e986fd11e653b5248dac9144d508f11812ba41 +checksum=b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43 alternatives=" python:idle:/usr/bin/idle2.7 @@ -31,7 +31,7 @@ pre_configure() { rm -r Modules/_ctypes/libffi* rm -r Modules/zlib # Enable loading sqlite extensions. - sed -i '/SQLITE_OMIT_LOAD_EXTENSION/d' setup.py + vsed -i '/SQLITE_OMIT_LOAD_EXTENSION/d' setup.py } do_configure() { @@ -83,17 +83,13 @@ post_install() { # Remove test module and tests that fail to be byte-compiled. rm -r ${DESTDIR}/usr/lib/python2.7/test rm -r ${DESTDIR}/usr/lib/python2.7/lib2to3/tests - # Remove references to hardening -specs. - sed -e 's|\(-specs=.*hardened-ld\)||g' -e 's|\(-specs=.*hardened-cc1\)||g' -i \ - ${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \ - ${DESTDIR}/usr/lib/python${version%.*}/config/Makefile # Remove references to the install(1) wrapper. - sed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \ + vsed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \ ${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \ ${DESTDIR}/usr/lib/python${version%.*}/config/Makefile if [ "$CROSS_BUILD" ]; then # Remove references to cross toolchain. - sed -i "s/$XBPS_CROSS_TRIPLET-//g" \ + vsed -i "s/$XBPS_CROSS_TRIPLET-//g" \ ${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \ ${DESTDIR}/usr/lib/python${version%.*}/config/Makefile fi