perl: update to 5.28.1

This commit is contained in:
Tom G. Christensen 2019-04-01 17:36:30 +02:00
parent 7adbfa647b
commit 3e3de988c3
2 changed files with 21 additions and 5 deletions

View File

@ -6,7 +6,7 @@
########################################################### ###########################################################
# Check the following 4 variables before running the script # Check the following 4 variables before running the script
topdir=perl topdir=perl
version=5.16.3 version=5.28.1
pkgver=1 pkgver=1
source[0]=http://www.cpan.org/src/5.0/perl-${version}.tar.gz source[0]=http://www.cpan.org/src/5.0/perl-${version}.tar.gz
# If there are no patches, simply comment this # If there are no patches, simply comment this
@ -20,7 +20,10 @@ make_check_target="test"
__configure="sh Configure" __configure="sh Configure"
[ "$arch" = "sparc" ] && arch_name="sun4-solaris" [ "$arch" = "sparc" ] && arch_name="sun4-solaris"
[ "$arch" = "i386" ] && arch_name="i86pc-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 reg prep
prep() prep()
@ -46,11 +49,13 @@ reg install
install() install()
{ {
generic_install UNKNOWN generic_install UNKNOWN
new_perl_lib=${stagedir}${prefix}/lib/$version new_perl_lib=${stagedir}${prefix}/lib/perl5/$version
new_arch_lib=${stagedir}${prefix}/lib/$version/${arch_name} new_arch_lib=${stagedir}${prefix}/lib/perl5/$version/${arch_name}
new_perl_flags="export LD_LIBRARY_PATH=$new_arch_lib/CORE; export PERL5LIB=$new_perl_lib;"
new_perl="${stagedir}${prefix}/bin/perl" new_perl="${stagedir}${prefix}/bin/perl"
echo "new_perl = $new_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 # 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}/.packlist
$new_perl -i -p -e "s|$stagedir||g;" ${stagedir}${prefix}/lib/perl5/$version/${arch_name}/Config.pm $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 $new_perl -i -p -e "s|$stagedir||g;" $i
fi fi
done 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 reg pack

View File

@ -1,4 +1,7 @@
CHANGELOG CHANGELOG
--------- ---------
* Fri Mar 29 2019 Tom G. Christensen <swpkg@jupiterrise.com> - 5.28.1-1
- Update to 5.28.1
* Sun Nov 10 2013 Tom G. Christensen <swpkg@jupiterrise.com> - 5.16.3-1 * Sun Nov 10 2013 Tom G. Christensen <swpkg@jupiterrise.com> - 5.16.3-1
- Update to 5.16.3 - Update to 5.16.3