diff --git a/srcpkgs/python/template b/srcpkgs/python/template index 0d981fd8d19..ea7d2fa440d 100644 --- a/srcpkgs/python/template +++ b/srcpkgs/python/template @@ -4,7 +4,7 @@ # pkgname=python version=2.7.11 -revision=3 +revision=4 wrksrc="Python-${version}" hostmakedepends="pkg-config" makedepends=" @@ -75,6 +75,10 @@ post_install() { 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 \ + ${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" \