pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 Update perl to version 5.24.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3178d405a880
branches:  trunk
changeset: 348157:3178d405a880
user:      he <he%pkgsrc.org@localhost>
date:      Wed Jun 08 17:39:30 2016 +0000

description:
Update perl to version 5.24.0.

Pkgsrc changes:
 * Add candidate fix from https://rt.cpan.org/Public/Bug/Display.html?id=72467
 * Remove patches which have been integrated upstream
 * Rename and re-mould some patches which required adjustments

http://perlnews.org/2016/05/perl-5-24-released/ has pointer to
more details and says:

May 9 2016
Perl 5.24.0 has been released.

You can read about the changes which include:

    Postfix dereferencing is no longer experimental
    Unicode 8.0 is now supported
    The autoderef feature has been removed

Perl 5.24.0 represents approximately 11 months of development since
Perl 5.22.0 and contains approximately 360,000 lines of changes
across 1,800 files from 77 authors.

diffstat:

 lang/perl5/Makefile.common                     |    4 +-
 lang/perl5/buildlink3.mk                       |    8 +-
 lang/perl5/distinfo                            |   17 +-
 lang/perl5/patches/patch-Configure             |  214 +++++++++++++++++++++++
 lang/perl5/patches/patch-ah                    |   18 --
 lang/perl5/patches/patch-ca                    |  223 -------------------------
 lang/perl5/patches/patch-caretx.c              |   18 ++
 lang/perl5/patches/patch-cpan_Socket_Socket.xs |   17 -
 lang/perl5/patches/patch-dist_Carp_lib_Carp.pm |   19 ++
 lang/perl5/patches/patch-hints_darwin.sh       |   26 --
 10 files changed, 265 insertions(+), 299 deletions(-)

diffs (truncated from 638 to 300 lines):

diff -r 7f4d27e33efc -r 3178d405a880 lang/perl5/Makefile.common
--- a/lang/perl5/Makefile.common        Wed Jun 08 14:44:54 2016 +0000
+++ b/lang/perl5/Makefile.common        Wed Jun 08 17:39:30 2016 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.26 2016/05/01 00:05:57 ryoon Exp $
+# $NetBSD: Makefile.common,v 1.27 2016/06/08 17:39:30 he Exp $
 #
 # used by lang/perl5/Makefile
 # used by databases/p5-gdbm/Makefile
 
-DISTNAME=      perl-5.22.2
+DISTNAME=      perl-5.24.0
 CATEGORIES=    lang devel perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/5.0/,}
 DISTFILES+=    ${DISTNAME}${EXTRACT_SUFX}
diff -r 7f4d27e33efc -r 3178d405a880 lang/perl5/buildlink3.mk
--- a/lang/perl5/buildlink3.mk  Wed Jun 08 14:44:54 2016 +0000
+++ b/lang/perl5/buildlink3.mk  Wed Jun 08 17:39:30 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.58 2016/03/25 21:10:36 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.59 2016/06/08 17:39:30 he Exp $
 
 BUILDLINK_TREE+=       perl
 
@@ -6,13 +6,13 @@
 PERL_BUILDLINK3_MK:=
 
 .include "../../mk/bsd.fast.prefs.mk"
-PERL5_REQD+=                   5.22.0
+PERL5_REQD+=                   5.24.0
 .for _perl5_ver_ in ${PERL5_REQD}
 BUILDLINK_API_DEPENDS.perl+=   perl>=${_perl5_ver_}
 .endfor
-# Prevent p5-* etc. packages built for 5.22.0 to be used
+# Prevent p5-* etc. packages built for 5.24.0 to be used
 # with the next incompatible version of perl:
-BUILDLINK_API_DEPENDS.perl+=   perl<5.24.0
+BUILDLINK_API_DEPENDS.perl+=   perl<5.26.0
 
 BUILDLINK_PKGSRCDIR.perl?=     ../../lang/perl5
 
diff -r 7f4d27e33efc -r 3178d405a880 lang/perl5/distinfo
--- a/lang/perl5/distinfo       Wed Jun 08 14:44:54 2016 +0000
+++ b/lang/perl5/distinfo       Wed Jun 08 17:39:30 2016 +0000
@@ -1,22 +1,21 @@
-$NetBSD: distinfo,v 1.135 2016/05/01 00:05:57 ryoon Exp $
+$NetBSD: distinfo,v 1.136 2016/06/08 17:39:30 he Exp $
 
-SHA1 (perl-5.22.2.tar.bz2) = e2f465446dcd45a7fa3da696037f9ebe73e78e55
-RMD160 (perl-5.22.2.tar.bz2) = 203afca8995ca426db0af48b78eb606b5d24011a
-SHA512 (perl-5.22.2.tar.bz2) = 1acb77ead47955ef6e8d84903e86cb584ee9415742fb99eb2f1f30772087e8ed0def5f643ce4ee7693df5a1dfe154b108aa85df232d81107f98820bb84a0d71a
-Size (perl-5.22.2.tar.bz2) = 13717881 bytes
+SHA1 (perl-5.24.0.tar.bz2) = 298fa605138c1a00dab95643130ae0edab369b4d
+RMD160 (perl-5.24.0.tar.bz2) = 756bf07069e91eabe3dac3a47aec5097d48f8963
+SHA512 (perl-5.24.0.tar.bz2) = 05ecc6774da475d14f426a850be7adf754fcb17a2fa85a67aeaf8ddb9c86ae8b1ee654e803ebae5ccdaa73ad3e35188e3254ac9452b47cd4f8ffe47e67d15f53
+Size (perl-5.24.0.tar.bz2) = 14155784 bytes
+SHA1 (patch-Configure) = 13455c1b32b0f602b339787af4ddcd481f9c2dd5
 SHA1 (patch-aa) = 9bbcc9395080b11934528a32808e0a509f1d831c
 SHA1 (patch-ab) = c899b7221a78e74cc9b1480834baba047dd19f38
 SHA1 (patch-ac) = 4baa8f80695687abb53d4f4e1830cf86db5b2bf7
-SHA1 (patch-ah) = c1cb4ddb6db49dcfe12bb1d47911668b2318b953
 SHA1 (patch-aq) = 4bf5a76f0277b0939b2ca7720f4bb045a788b5cc
-SHA1 (patch-ca) = 32ca5f5cc9264d3bbc5295c04b4062db2a0e1b4d
+SHA1 (patch-caretx.c) = 9f53a9133f8dd2f962b448d7288b5b20454c86fb
 SHA1 (patch-ch) = 5b6a89c82e158bab0a5f06add48c28e600678099
 SHA1 (patch-ck) = 483e93a782e5627d3c7334d930ee11010fe7f7d8
 SHA1 (patch-cn) = d1877383e213a414562b5bb4c1e8aa785926fab7
-SHA1 (patch-cpan_Socket_Socket.xs) = 9390c42ad456b0ea114c2e57e4d829d630fb698e
+SHA1 (patch-dist_Carp_lib_Carp.pm) = fb628ee983462cec9303ceea09852378ec654ecf
 SHA1 (patch-ext_Errno_Errno__pm.PL) = 4f135e267da17de38f8f1e7e03d5209bfd09a323
 SHA1 (patch-hints_cygwin.sh) = 1b21d927d6b7379754c4cd64a2b05d3632c35470
-SHA1 (patch-hints_darwin.sh) = bb4ea9e16a1d441388b8e9cdd37a7d757f3f1687
 SHA1 (patch-hints_netbsd.sh) = 0d549a48800372d75fe34b783529a78cba90f646
 SHA1 (patch-hints_sco.sh) = 8d43cdc0632799e1cdb5dc6fdb968052a9ae4216
 SHA1 (patch-hints_solaris__2.sh) = 0e54889648a6f0f2a0232c5e01bef89d245c213d
diff -r 7f4d27e33efc -r 3178d405a880 lang/perl5/patches/patch-Configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/perl5/patches/patch-Configure        Wed Jun 08 17:39:30 2016 +0000
@@ -0,0 +1,214 @@
+$NetBSD: patch-Configure,v 1.3 2016/06/08 17:39:30 he Exp $
+
+* Use "uname -r" to get OS version for *BSD.
+* Move $loclibpth to the end of $dlist, instead of the beginning.
+* Detect systems which have <fenv.h> but where using it fails.
+* Several other changes.
+
+--- Configure.orig     2016-04-26 22:11:09.000000000 +0000
++++ Configure
+@@ -3468,13 +3468,14 @@ EOM
+                       osvers="$3"
+                       ;;
+               dragonfly) osname=dragonfly
+-                      osvers="$3"
++                      osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
+                       ;;
+               dynixptx*) osname=dynixptx
+                       osvers=`echo "$4"|sed 's/^v//'`
+                       ;;
+               freebsd) osname=freebsd
+-                      osvers="$3" ;;
++                      osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
++                      ;;
+               genix)  osname=genix ;;
+               gnu)    osname=gnu
+                       osvers="$3" ;;
+@@ -3497,7 +3498,7 @@ EOM
+               MiNT)   osname=mint
+                       ;;
+               netbsd*) osname=netbsd
+-                      osvers="$3"
++                      osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
+                       ;;
+               news-os) osvers="$3"
+                       case "$3" in
+@@ -3507,7 +3508,7 @@ EOM
+                       ;;
+               nonstop-ux) osname=nonstopux ;;
+               openbsd) osname=openbsd
+-                      osvers="$3"
++                      osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
+                       ;;
+               os2)    osname=os2
+                       osvers="$4"
+@@ -3522,6 +3523,9 @@ EOM
+               qnx) osname=qnx
+                       osvers="$4"
+                       ;;
++              sco_sv) osname=sco_sv
++                      osvers=`$uname -r`v`$uname -v`
++                      ;;
+               solaris) osname=solaris
+                       case "$3" in
+                       5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;;
+@@ -4960,7 +4964,7 @@ esac
+ # If using gcc or clang, we can get better values for libpth, incpth
+ # and usrinc directly from the compiler.
+ # Note that ccname for clang is also gcc.
+-case "$ccname" in
++case "xx$ccname" in
+     gcc)
+       $echo 'extern int foo;' > try.c
+       set X `$cppstdin -v try.c 2>&1 | $awk '/^#include </,/^End of search /'|$cppfilter $grep '/include'`
+@@ -5036,14 +5040,14 @@ case "$plibpth" in
+ esac
+ case "$libpth" in
+ ' ') dlist='';;
+-'') dlist="$loclibpth $plibpth $glibpth";;
++'') dlist="$plibpth $glibpth $loclibpth";;
+ *) dlist="$libpth";;
+ esac
+ 
+ : Now check and see which directories actually exist, avoiding duplicates
+ for xxx in $dlist
+ do
+-    if $test -d $xxx; then
++    if $test -d $xxx -o "$xxx" = "$prefix/lib"; then
+               case " $libpth " in
+               *" $xxx "*) ;;
+               *) libpth="$libpth $xxx";;
+@@ -5159,7 +5163,7 @@ lib_ext=$_a
+ obj_ext=$_o
+ path_sep=$p_
+ 
+-rm_try="$rm -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*"
++rm_try="@TOOLS_RM@ -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*"
+ 
+ : Which makefile gets called first.  This is used by make depend.
+ case "$firstmakefile" in
+@@ -6461,6 +6465,15 @@ case "$nm_so_opt" in
+       ;;
+ esac
+ 
++: Mac OS X 10.7 is different
++case "$osname" in
++    darwin)
++      case "$osvers" in
++          11.*)
++              libnames="$libnames /usr/lib/system/libsystem_*.dylib"
++      esac
++esac
++
+ : Figure out where the libc is located
+ case "$runnm" in
+ true)
+@@ -7564,7 +7577,9 @@ rp='Pathname for the site-specific libra
+ . ./getfile
+ prefixvar=sitelib
+ . ./setprefixvar
+-sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"`
++if $test -z "$sitelib_stem"; then
++      sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"`
++fi
+ 
+ : Determine list of previous versions to include in @INC
+ $cat > getverlist <<EOPL
+@@ -7976,7 +7991,9 @@ case "$vendorprefix" in
+       vendorlibexp="$ansexp"
+       ;;
+ esac
+-vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"`
++if $test -z "$vendorlib_stem"; then
++      vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"`
++fi
+ prefixvar=vendorlib
+ . ./installprefix
+ 
+@@ -8518,6 +8535,7 @@ EOM
+                         esac
+                         ;;
+                   *linux*|irix*|gnu*)  dflt="-shared $optimize" ;;
++                  sco_sv) dflt='-shared' ;;
+                   solaris) # See [perl #66604].
+                           # On Solaris 11, gcc -m64 on amd64
+                           # appears not to understand -G.  gcc versions at
+@@ -8816,6 +8834,10 @@ if "$useshrplib"; then
+       bsdos|linux|irix*|dec_osf|gnu*|haiku)
+               xxx="-Wl,-rpath,$shrpdir"
+               ;;
++      haiku)
++              # Haiku doesn't like the default, either.
++              xxx="-Wl,-rpath,$shrpdir"
++              ;;
+       hpux*)
+               # hpux doesn't like the default, either.
+               tmp_shrpenv="env LDOPTS=\"+s +b${shrpdir}\""
+@@ -8823,6 +8845,9 @@ if "$useshrplib"; then
+       cygwin)
+               # cygwin needs only ldlibpth
+               ;;
++      sco_sv)
++              xxx="-Wl,-R$shrpdir"
++              ;;
+       *)
+               tmp_shrpenv="env LD_RUN_PATH=$shrpdir"
+               ;;
+@@ -9901,6 +9926,13 @@ esac
+ : Check if we want perlio
+ useperlio="$define"
+ 
++: Look for a hint-file generated 'call-back-unit'.  We need
++: to set some defaults for building perl in pkgsrc.
++if $test -f pkgsrc.cbu; then
++      echo "Setting pkgsrc-specific hints regarding compiler/linker flags..."
++      . ./pkgsrc.cbu
++fi
++
+ : Set the vendorbin variables
+ case "$vendorprefix" in
+ '')   d_vendorbin="$undef"
+@@ -20262,7 +20294,15 @@ RCAT(Rei,ser)
+ ACAT(Cir,cus)
+ EOCP
+ $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1
+-if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
++# yuck, what a hack.
++# MIPSPro compiler/preprocessor behaves differently if invoked on
++# stdin vs file.  Here we test for stdin, but lateron we use files.
++# So force it to work the way we know it does:
++if [ x"${OPSYS}" = x"IRIX" ]; then
++      echo "Hacking MIPSPro on file vs. stdin..." >&4
++      echo "We know we can catify or stringify, separately or together!"
++      cpp_stuff=42
++elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
+       echo "Oh!  Smells like ANSI's been here." >&4
+       echo "We can catify or stringify, separately or together!"
+       cpp_stuff=42
+@@ -23049,6 +23089,21 @@ eval $inhdr
+ set fenv.h i_fenv
+ eval $inhdr
+ 
++: And really validate that it is OK to include it
++: On NetBSD 6.x non-amd64 non-i386 and non-sparc this fails
++cat > try.c <<EOCP
++#include <fenv.h>
++int main() {
++      printf("runs ok too\n");
++      exit(0);
++}
++EOCP
++set try
++if ! eval $compile_ok; then
++      echo "<fenv.h> found to be unusable, disabling" >&4
++      i_fenv=$undef
++fi
++
+ : see if this is a fp.h system
+ set fp.h i_fp
+ eval $inhdr
+@@ -25402,4 +25457,3 @@ $rm -f kit*isdone ark*isdone
+ $rm -rf UU
+ 
+ : End of Configure
+-
diff -r 7f4d27e33efc -r 3178d405a880 lang/perl5/patches/patch-ah
--- a/lang/perl5/patches/patch-ah       Wed Jun 08 14:44:54 2016 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-ah,v 1.15 2014/05/29 07:57:07 adam Exp $
-
-NetBSD's implementation sometimes returns "/"; reject that too.



Home | Main Index | Thread Index | Old Index