python3.4: remove more references to -specs.

This commit is contained in:
Alessio Sergi 2015-12-14 21:51:11 +01:00
parent 9d426d8a6b
commit edfc757c9b
1 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python3.4'
pkgname=python3.4
version=3.4.3
revision=5
revision=6
wrksrc="Python-${version}"
short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -63,13 +63,15 @@ do_install() {
rm -rf ${DESTDIR}/usr/lib/python${version%.*}/test
rm -rf ${DESTDIR}/usr/lib/python${version%.*}/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
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-${version%.*}m/Makefile \
${DESTDIR}/usr/bin/python${version%.*}*-config
if [ "$CROSS_BUILD" ]; then
# Remove references to cross toolchain.
sed -i "s/$XBPS_CROSS_TRIPLET-//g" \
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \
${DESTDIR}/usr/lib/python${version%.*}/config-3.4m/Makefile
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m/Makefile
fi
}