From c4d829ce5e89491528383a9108e6b4e3d32271b9 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 14 Dec 2015 19:41:14 +0100 Subject: [PATCH] python: remove references to -specs. --- srcpkgs/python/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/python/template b/srcpkgs/python/template index 7c6016be2e1..145a7e08df5 100644 --- a/srcpkgs/python/template +++ b/srcpkgs/python/template @@ -4,7 +4,7 @@ # pkgname=python version=2.7.11 -revision=1 +revision=2 wrksrc="Python-${version}" hostmakedepends="pkg-config" makedepends=" @@ -71,6 +71,9 @@ 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 if [ "$CROSS_BUILD" ]; then # Remove references to cross toolchain. sed -i "s/$XBPS_CROSS_TRIPLET-//g" \