From 2e687358cef3cd2ebaabce412f34206c8cfebf6c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 28 Aug 2014 15:11:11 +0200 Subject: [PATCH] perl: remove references to cross toolchain. --- srcpkgs/perl/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template index 44090a3929..92606c2f5d 100644 --- a/srcpkgs/perl/template +++ b/srcpkgs/perl/template @@ -1,7 +1,7 @@ # Template build file for 'perl'. pkgname=perl version=5.18.2 -revision=3 +revision=4 hostmakedepends="which less" makedepends="zlib-devel bzip2-devel gdbm-devel db-devel>=5.3" short_desc="Practical Extraction and Report Language" @@ -226,6 +226,11 @@ do_install() { ${DESTDIR}/usr/lib/perl5/core_perl/auto/ find ${DESTDIR} -name .exists |xargs rm -f rm -rf ${DESTDIR}/usr/share/perl5/core_perl/$XBPS_CROSS_TRIPLET + + # Remove references to cross toolchain. + sed -i "s/$XBPS_CROSS_TRIPLET-//g" \ + ${DESTDIR}/usr/lib/perl5/core_perl/Config_heavy.pl \ + ${DESTDIR}/usr/lib/perl5/core_perl/Config.pm else make DESTDIR=${DESTDIR} install fi