From 3e3de988c389371b3bc1b207b9c9caeb665d3a2b Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Mon, 1 Apr 2019 17:36:30 +0200 Subject: [PATCH] perl: update to 5.28.1 --- perl/build.sh | 23 ++++++++++++++++++----- perl/meta/ChangeLog | 3 +++ 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/perl/build.sh b/perl/build.sh index f83d90e..0aaa201 100755 --- a/perl/build.sh +++ b/perl/build.sh @@ -6,7 +6,7 @@ ########################################################### # Check the following 4 variables before running the script topdir=perl -version=5.16.3 +version=5.28.1 pkgver=1 source[0]=http://www.cpan.org/src/5.0/perl-${version}.tar.gz # If there are no patches, simply comment this @@ -20,7 +20,10 @@ make_check_target="test" __configure="sh Configure" [ "$arch" = "sparc" ] && arch_name="sun4-solaris" [ "$arch" = "i386" ] && arch_name="i86pc-solaris" -configure_args=(-Dcc=gcc -Accflags=-fno-stack-protector -Darchname=${arch_name} -Dprefix=$prefix -Dmyhostname=localhost -Dcf_by="Tom G. Christensen" -Dcf_email=swpkg@jupiterrise.com -Dperladmin=root@localhost -Dinstallprefix=${stagedir}${prefix} -Dman3ext=3pm -Uinstallusrbinperl -Dpager=/usr/bin/more -Dlocincpth=/usr/tgcware/include -Dloclibpth=/usr/tgcware/lib -des) +configure_args=(-Dcc=gcc -Doptimize='-O2' -Darchname=${arch_name} -Dprefix=$prefix -Dmyhostname=localhost -Dcf_by="Tom G. Christensen" -Dcf_email=swpkg@jupiterrise.com -Dperladmin=root@localhost -Dinstallprefix=${stagedir}${prefix} -Dman3ext=3pm -Uinstallusrbinperl -Dpager=/usr/bin/more -Dlocincpth=/usr/tgcware/include -Dloclibpth=/usr/tgcware/lib -des -Dinc_version_list='5.16.3') +# Force alignment on SPARC since the configure test can fail: +# https://rt.perl.org/Public/Bug/Display.html?id=133495 +[ "$arch" = "sparc" ] && configure_args+=(-Dd_u32align) reg prep prep() @@ -46,11 +49,13 @@ reg install install() { generic_install UNKNOWN - new_perl_lib=${stagedir}${prefix}/lib/$version - new_arch_lib=${stagedir}${prefix}/lib/$version/${arch_name} - new_perl_flags="export LD_LIBRARY_PATH=$new_arch_lib/CORE; export PERL5LIB=$new_perl_lib;" + new_perl_lib=${stagedir}${prefix}/lib/perl5/$version + new_arch_lib=${stagedir}${prefix}/lib/perl5/$version/${arch_name} new_perl="${stagedir}${prefix}/bin/perl" echo "new_perl = $new_perl" + echo "new_perl_lib = $new_perl_lib" + echo "new_arch_lib = $new_arch_lib" + export LD_LIBRARY_PATH=$new_arch_lib/CORE; export PERL5LIB=$new_perl_lib; # fix the packlist and friends $new_perl -i -p -e "s|$stagedir||g;" ${stagedir}${prefix}/lib/perl5/$version/${arch_name}/.packlist $new_perl -i -p -e "s|$stagedir||g;" ${stagedir}${prefix}/lib/perl5/$version/${arch_name}/Config.pm @@ -61,6 +66,14 @@ install() $new_perl -i -p -e "s|$stagedir||g;" $i fi done + # Strip shared libraries + cd $stagedir + find . -name '*.so' -print | ${__xargs} chmod 755 + do_strip_shared + cd - + + # Mark as compatible since we add 5.16.3 to @INC + compat perl 5.16.3 1 1 } reg pack diff --git a/perl/meta/ChangeLog b/perl/meta/ChangeLog index 0d0e2c2..6afcf00 100644 --- a/perl/meta/ChangeLog +++ b/perl/meta/ChangeLog @@ -1,4 +1,7 @@ CHANGELOG --------- +* Fri Mar 29 2019 Tom G. Christensen - 5.28.1-1 +- Update to 5.28.1 + * Sun Nov 10 2013 Tom G. Christensen - 5.16.3-1 - Update to 5.16.3