perl: update to 5.22.2.

Fix PIE builds.
This commit is contained in:
Christian Neukirchen 2016-05-03 15:59:44 +02:00
parent 4cb3a4e1b5
commit 6f6123f987
2 changed files with 12 additions and 1388 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
# Template build file for 'perl'.
pkgname=perl
version=5.22.1
revision=4
version=5.22.2
revision=1
hostmakedepends="less"
makedepends="zlib-devel bzip2-devel gdbm-devel db-devel"
depends="less"
@ -10,7 +10,7 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.perl.org"
license="Artistic, GPL-1"
distfiles="http://www.cpan.org/src/5.0/perl-${version}.tar.gz"
checksum=2b475d0849d54c4250e9cba4241b7b7291cffb45dfd083b677ca7b5d38118f27
checksum=81ad196385aa168cb8bd785031850e808c583ed18a7901d33e02d4f70ada83c2
provides="perl-Archive-Tar-2.04_1
perl-Attribute-Handlers-0.97_1
@ -67,7 +67,7 @@ provides="perl-Archive-Tar-2.04_1
perl-Math-BigRat-0.2608_1
perl-Math-Complex-1.59_1
perl-Memoize-1.03_1
perl-Module-CoreList-5.20151213_1
perl-Module-CoreList-5.20160429_1
perl-Module-Load-0.32_1
perl-Module-Load-Conditional-0.64_1
perl-Module-Loaded-0.08_1
@ -76,7 +76,7 @@ provides="perl-Archive-Tar-2.04_1
perl-Net-Ping-2.43_1
perl-Params-Check-0.38_1
perl-Parse-CPAN-Meta-1.4414_1
perl-PathTools-3.56_1
perl-PathTools-3.56_01_1
perl-Perl-OSType-1.008_1
perl-PerlIO-via-QuotedPrint-0.08_1
perl-Pod-Checker-1.60_1
@ -90,7 +90,7 @@ provides="perl-Archive-Tar-2.04_1
perl-Search-Dict-1.07_1
perl-SelfLoader-1.22_1
perl-Socket-2.018_1
perl-Storable-2.53_1
perl-Storable-2.53_01_1
perl-Sys-Syslog-0.33_1
perl-Term-ANSIColor-4.03_1
perl-Term-Cap-1.15_1
@ -156,7 +156,7 @@ do_configure() {
-Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3"
ln -s libperl.so.${version%.*} libperl.so
ln -sf libperl.so.${version%.*} libperl.so
if [ "$CROSS_BUILD" ]; then
cp -f ${FILESDIR}/cross/*.h .
@ -166,8 +166,8 @@ do_configure() {
# substitute some required strings in generated config.sh
sed -e "s,@@XBPS_CROSS_ARCH@@,${XBPS_TARGET_MACHINE},g" \
-e "s,@@XBPS_CROSS_TRIPLET@@,${XBPS_CROSS_TRIPLET},g" \
-e "s,@@XBPS_CROSS_CFLAGS@@,${XBPS_CROSS_CFLAGS},g" \
-e "s,@@XBPS_CROSS_LDFLAGS@@,${XBPS_CROSS_LDFLAGS},g" \
-e "s|@@XBPS_CROSS_CFLAGS@@|${CFLAGS}|g" \
-e "s|@@XBPS_CROSS_LDFLAGS@@|${LDFLAGS}|g" \
-e "s,@@PERL_VERSION@@,${version},g" \
-e "s,@@PERL_SUBVERSION@@,${version##*.},g" \
-e "s,@@PERL_SONAME@@,${version%.*},g" \
@ -177,7 +177,9 @@ do_configure() {
perl -Ilib make_patchnum.pl
else
./Configure -des ${_args} -Dlibperl="libperl.so.${version%.*}" \
-Dcccdlflags="-fPIC" -Doptimize="$CFLAGS"
-Dcccdlflags="-fPIC" \
-Doptimize="${CFLAGS}" -Dccflags="${CFLAGS}" \
-Dlddlflags="-shared ${LDFLAGS}" -Dldflags="${LDFLAGS}"
fi
}