pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl5 perl: update to 5.28.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f747dc688505
branches:  trunk
changeset: 312031:f747dc688505
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Aug 22 08:37:46 2018 +0000

description:
perl: update to 5.28.0.

Removed some ancient patches. Fix a pkglint warning.

Core Enhancements

    Unicode 10.0 is supported
    delete on key/value hash slices
    Experimentally, there are now alphabetic synonyms for some regular expression assertions
    Mixed Unicode scripts are now detectable
    In-place editing with perl -i is now safer
    Initialisation of aggregate state variables
    Full-size inode numbers
    The sprintf %j format size modifier is now available with pre-C99 compilers
    Close-on-exec flag set atomically
    String- and number-specific bitwise ops are no longer experimental
    Locales are now thread-safe on systems that support them
    New read-only predefined variable ${^SAFE_LOCALES}

Security

    [CVE-2017-12837] Heap buffer overflow in regular expression compiler
    [CVE-2017-12883] Buffer over-read in regular expression parser
    [CVE-2017-12814] $ENV{$key} stack buffer overflow on Windows
    Default Hash Function Change

Incompatible Changes

    Subroutine attribute and signature order
    Comma-less variable lists in formats are no longer allowed
    The :locked and :unique attributes have been removed
    \N{} with nothing between the braces is now illegal
    Opening the same symbol as both a file and directory handle is no longer allowed
    Use of bare << to mean <<"" is no longer allowed
    Setting $/ to a reference to a non-positive integer no longer allowed
    Unicode code points with values exceeding IV_MAX are now fatal
    The B::OP::terse method has been removed
    Use of inherited AUTOLOAD for non-methods is no longer allowed
    Use of strings with code points over 0xFF is not allowed for bitwise string operators
    Setting ${^ENCODING} to a defined value is now illegal
    Backslash no longer escapes colon in PATH for the -S switch
    the -DH (DEBUG_H) misfeature has been removed
    Yada-yada is now strictly a statement
    Sort algorithm can no longer be specified
    Over-radix digits in floating point literals
    Return type of unpackstring()

Deprecations

    Use of vec on strings with code points above 0xFF is deprecated
    Some uses of unescaped "{" in regexes are no longer fatal
    Use of unescaped "{" immediately after a "(" in regular expression patterns is deprecated
    Assignment to $[ will be fatal in Perl 5.30
    hostname() won't accept arguments in Perl 5.32
    Module removals

Performance Enhancements

Modules and Pragmata

    Removal of use vars
    Use of DynaLoader changed to XSLoader in many modules
    Updated Modules and Pragmata
    Removed Modules and Pragmata

More details are in the included perldelta.pod.

diffstat:

 lang/perl5/Makefile                                      |    4 +-
 lang/perl5/Makefile.common                               |    4 +-
 lang/perl5/distinfo                                      |   25 +--
 lang/perl5/patches/patch-Configure                       |   48 +++---
 lang/perl5/patches/patch-MANIFEST                        |   16 --
 lang/perl5/patches/patch-aq                              |   34 ----
 lang/perl5/patches/patch-cflags.SH                       |    8 +-
 lang/perl5/patches/patch-ch                              |   13 -
 lang/perl5/patches/patch-ck                              |   26 ---
 lang/perl5/patches/patch-cn                              |   22 ---
 lang/perl5/patches/patch-cpan_File-Path_lib_File_Path.pm |   64 ---------
 lang/perl5/patches/patch-ext_Errno_Errno__pm.PL          |   14 --
 lang/perl5/patches/patch-ext_File-Glob_bsd_glob.c        |   89 ------------
 lang/perl5/patches/patch-ext_File-Glob_t_rt131211.t      |  103 ---------------
 lang/perl5/patches/patch-hints_sco.sh                    |   77 -----------
 lang/perl5/patches/patch-ze                              |   28 ----
 16 files changed, 39 insertions(+), 536 deletions(-)

diffs (truncated from 812 to 300 lines):

diff -r c99541049e21 -r f747dc688505 lang/perl5/Makefile
--- a/lang/perl5/Makefile       Wed Aug 22 08:31:30 2018 +0000
+++ b/lang/perl5/Makefile       Wed Aug 22 08:37:46 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.246 2018/07/04 13:40:22 jperkin Exp $
+# $NetBSD: Makefile,v 1.247 2018/08/22 08:37:46 wiz Exp $
 
 .include "license.mk"
 .include "Makefile.common"
@@ -237,7 +237,7 @@
 .include "../../mk/dlopen.buildlink3.mk"
 .include "options.mk"
 
-.if !empty(MACHINE_PLATFORM:MMirBSD*)
+.if !empty(MACHINE_PLATFORM:MMirBSD)
 SUBST_CLASSES+=                        mirbsd-paths
 SUBST_STAGE.mirbsd-paths=      pre-configure
 SUBST_FILES.mirbsd-paths=      hints/mirbsd.sh
diff -r c99541049e21 -r f747dc688505 lang/perl5/Makefile.common
--- a/lang/perl5/Makefile.common        Wed Aug 22 08:31:30 2018 +0000
+++ b/lang/perl5/Makefile.common        Wed Aug 22 08:37:46 2018 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.33 2018/04/27 09:44:27 adam Exp $
+# $NetBSD: Makefile.common,v 1.34 2018/08/22 08:37:46 wiz Exp $
 #
 # used by lang/perl5/Makefile
 # used by databases/p5-gdbm/Makefile
 
-DISTNAME=      perl-5.26.2
+DISTNAME=      perl-5.28.0
 CATEGORIES=    lang devel perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/5.0/,}
 DISTFILES+=    ${DISTNAME}${EXTRACT_SUFX}
diff -r c99541049e21 -r f747dc688505 lang/perl5/distinfo
--- a/lang/perl5/distinfo       Wed Aug 22 08:31:30 2018 +0000
+++ b/lang/perl5/distinfo       Wed Aug 22 08:37:46 2018 +0000
@@ -1,28 +1,17 @@
-$NetBSD: distinfo,v 1.150 2018/04/27 09:44:27 adam Exp $
+$NetBSD: distinfo,v 1.151 2018/08/22 08:37:46 wiz Exp $
 
-SHA1 (perl-5.26.2.tar.xz) = bfa5c7921ed7bf5e035dbf2f7ff81367b81e372c
-RMD160 (perl-5.26.2.tar.xz) = 45a0bc31f57b786ebe1273b7e5070e6e1bf59c7b
-SHA512 (perl-5.26.2.tar.xz) = fd54c90da250144c81b94587c01c49fa367f84c54406f1d360ddab4a41589a7b19efc1707f95c95d6357fae66fc3f6f00bf69dd7741db114c7034a14f52be65f
-Size (perl-5.26.2.tar.xz) = 11931624 bytes
-SHA1 (patch-Configure) = 6f3aa5c8d971e2c58dbd3e348f9edd59e298c181
-SHA1 (patch-MANIFEST) = b27b0e1754fe2c4484931219fa17c562db88d41a
+SHA1 (perl-5.28.0.tar.xz) = c0e9e7a0dea97ec9816687d865fd461a99ef185c
+RMD160 (perl-5.28.0.tar.xz) = 34c9ad0560a2eed134e09282696bfae307cbeb6a
+SHA512 (perl-5.28.0.tar.xz) = de701e37371b81cecf06098bb2c09017bde9cebaf9537d58838d0adf605ac2ecf739897b0a73576a7adb74d4cf65591ec4d2ed1f94b7191e695f88cb7e214a39
+Size (perl-5.28.0.tar.xz) = 12410536 bytes
+SHA1 (patch-Configure) = e4ae2c84bece8823ec1bf98415706b4d2491a5e9
 SHA1 (patch-Makefile.SH) = e9353181a286f52303d09cb4ce0b2c04ec104217
 SHA1 (patch-aa) = 3a2b39c9eb903e68ef7d03ae448c51c147c19aa1
 SHA1 (patch-ab) = 0ad5988b7cadfb13d9646a59a57f6cf884a6238a
 SHA1 (patch-ac) = 4baa8f80695687abb53d4f4e1830cf86db5b2bf7
-SHA1 (patch-aq) = 4bf5a76f0277b0939b2ca7720f4bb045a788b5cc
 SHA1 (patch-caretx.c) = 9f53a9133f8dd2f962b448d7288b5b20454c86fb
-SHA1 (patch-cflags.SH) = 2ac2cf326d332976f676b0f56d3cf4a68a186922
-SHA1 (patch-ch) = 5b6a89c82e158bab0a5f06add48c28e600678099
-SHA1 (patch-ck) = 483e93a782e5627d3c7334d930ee11010fe7f7d8
-SHA1 (patch-cn) = d1877383e213a414562b5bb4c1e8aa785926fab7
-SHA1 (patch-cpan_File-Path_lib_File_Path.pm) = e8a08e7e7fdbebabbeef7eaa651147353eedbfd7
-SHA1 (patch-ext_Errno_Errno__pm.PL) = 4f135e267da17de38f8f1e7e03d5209bfd09a323
-SHA1 (patch-ext_File-Glob_bsd_glob.c) = e43252b55f04bb1cd69d48e8155aa110532c9fbe
-SHA1 (patch-ext_File-Glob_t_rt131211.t) = 9aeddad078cdc920e64ed2e73f952be341745d7e
+SHA1 (patch-cflags.SH) = 7ad64e5a17b876bff4bbe238abc4a57354acf4fe
 SHA1 (patch-hints_cygwin.sh) = 1b21d927d6b7379754c4cd64a2b05d3632c35470
 SHA1 (patch-hints_netbsd.sh) = 0d549a48800372d75fe34b783529a78cba90f646
-SHA1 (patch-hints_sco.sh) = 8d43cdc0632799e1cdb5dc6fdb968052a9ae4216
 SHA1 (patch-hints_solaris__2.sh) = 0e54889648a6f0f2a0232c5e01bef89d245c213d
 SHA1 (patch-ta) = a9d13eeec22733e4087942f217a0d47a19498a6f
-SHA1 (patch-ze) = d6fb718a1417e37a7d6bee1ae89fe2beec51c81b
diff -r c99541049e21 -r f747dc688505 lang/perl5/patches/patch-Configure
--- a/lang/perl5/patches/patch-Configure        Wed Aug 22 08:31:30 2018 +0000
+++ b/lang/perl5/patches/patch-Configure        Wed Aug 22 08:37:46 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-Configure,v 1.5 2018/01/12 11:32:21 jperkin Exp $
+$NetBSD: patch-Configure,v 1.6 2018/08/22 08:37:46 wiz Exp $
 
 * Use "uname -r" to get OS version for *BSD.
 * Move $loclibpth to the end of $dlist, instead of the beginning.
@@ -6,9 +6,9 @@
 * Honor more ldflags in shared objects.
 * Several other changes.
 
---- Configure.orig     2017-09-22 14:27:02.000000000 +0000
+--- Configure.orig     2018-05-21 12:29:23.000000000 +0000
 +++ Configure
-@@ -3485,13 +3485,14 @@ EOM
+@@ -3471,13 +3471,14 @@ EOM
                        osvers="$3"
                        ;;
                dragonfly) osname=dragonfly
@@ -25,7 +25,7 @@
                genix)  osname=genix ;;
                gnu)    osname=gnu
                        osvers="$3" ;;
-@@ -3514,7 +3515,7 @@ EOM
+@@ -3500,7 +3501,7 @@ EOM
                MiNT)   osname=mint
                        ;;
                netbsd*) osname=netbsd
@@ -34,16 +34,16 @@
                        ;;
                news-os) osvers="$3"
                        case "$3" in
-@@ -3524,7 +3525,7 @@ EOM
+@@ -3510,7 +3511,7 @@ EOM
                        ;;
                nonstop-ux) osname=nonstopux ;;
                openbsd) osname=openbsd
--                      osvers="$3"
-+                      osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
-                       ;;
+-                      osvers="$3"
++                      osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'`
+                       ;;
                os2)    osname=os2
                        osvers="$4"
-@@ -3539,6 +3540,9 @@ EOM
+@@ -3525,6 +3526,9 @@ EOM
                qnx) osname=qnx
                        osvers="$4"
                        ;;
@@ -53,7 +53,7 @@
                solaris) osname=solaris
                        case "$3" in
                        5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;;
-@@ -4977,7 +4981,7 @@ esac
+@@ -4963,7 +4967,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.
@@ -62,7 +62,7 @@
      gcc)
        $echo 'extern int foo;' > try.c
        set X `$cppstdin -v try.c 2>&1 | $awk '/^#include </,/^End of search /'|$cppfilter $grep '/include'`
-@@ -5053,14 +5057,14 @@ case "$plibpth" in
+@@ -5039,14 +5043,14 @@ case "$plibpth" in
  esac
  case "$libpth" in
  ' ') dlist='';;
@@ -79,7 +79,7 @@
                case " $libpth " in
                *" $xxx "*) ;;
                *) libpth="$libpth $xxx";;
-@@ -5176,7 +5180,7 @@ lib_ext=$_a
+@@ -5162,7 +5166,7 @@ lib_ext=$_a
  obj_ext=$_o
  path_sep=$p_
  
@@ -88,7 +88,7 @@
  
  : Which makefile gets called first.  This is used by make depend.
  case "$firstmakefile" in
-@@ -5507,7 +5511,7 @@ default|recommended)
+@@ -5493,7 +5497,7 @@ default|recommended)
        # thing. (NWC)
        case "$osname" in
        amigaos) ;; # -fstack-protector builds but doesn't work
@@ -97,7 +97,7 @@
                ?*)     set stack-protector-strong -fstack-protector-strong
                        eval $checkccflag
                        case "$dflt" in
-@@ -6492,6 +6496,15 @@ case "$nm_so_opt" in
+@@ -6477,6 +6481,15 @@ case "$nm_so_opt" in
        ;;
  esac
  
@@ -113,7 +113,7 @@
  : Figure out where the libc is located
  case "$runnm" in
  true)
-@@ -7626,7 +7639,9 @@ rp='Pathname for the site-specific libra
+@@ -7604,7 +7617,9 @@ rp='Pathname for the site-specific libra
  . ./getfile
  prefixvar=sitelib
  . ./setprefixvar
@@ -124,7 +124,7 @@
  
  : Determine list of previous versions to include in @INC
  $cat > getverlist <<EOPL
-@@ -8038,7 +8053,9 @@ case "$vendorprefix" in
+@@ -8015,7 +8030,9 @@ case "$vendorprefix" in
        vendorlibexp="$ansexp"
        ;;
  esac
@@ -135,7 +135,7 @@
  prefixvar=vendorlib
  . ./installprefix
  
-@@ -8580,6 +8597,7 @@ EOM
+@@ -8511,6 +8528,7 @@ EOM
                          esac
                          ;;
                    *linux*|irix*|gnu*)  dflt="-shared $optimize" ;;
@@ -143,7 +143,7 @@
                    solaris) # See [perl #66604].
                            # On Solaris 11, gcc -m64 on amd64
                            # appears not to understand -G.  gcc versions at
-@@ -8619,7 +8637,7 @@ EOM
+@@ -8550,7 +8568,7 @@ EOM
        esac
        for thisflag in $ldflags; do
            case "$thisflag" in
@@ -152,7 +152,7 @@
                    case " $dflt " in
                        *" $thisflag "*) ;;
                        *) dflt="$dflt $thisflag" ;;
-@@ -8878,6 +8896,10 @@ if "$useshrplib"; then
+@@ -8809,6 +8827,10 @@ if "$useshrplib"; then
        bsdos|linux|irix*|dec_osf|gnu*|haiku)
                xxx="-Wl,-rpath,$shrpdir"
                ;;
@@ -163,7 +163,7 @@
        hpux*)
                # hpux doesn't like the default, either.
                tmp_shrpenv="env LDOPTS=\"+s +b${shrpdir}\""
-@@ -8885,6 +8907,9 @@ if "$useshrplib"; then
+@@ -8816,6 +8838,9 @@ if "$useshrplib"; then
        cygwin)
                # cygwin needs only ldlibpth
                ;;
@@ -173,7 +173,7 @@
        *)
                tmp_shrpenv="env LD_RUN_PATH=$shrpdir"
                ;;
-@@ -9966,6 +9991,13 @@ esac
+@@ -9896,6 +9921,13 @@ esac
  : Check if we want perlio
  useperlio="$define"
  
@@ -187,7 +187,7 @@
  : Set the vendorbin variables
  case "$vendorprefix" in
  '')   d_vendorbin="$undef"
-@@ -20424,7 +20456,15 @@ RCAT(Rei,ser)
+@@ -19825,7 +19857,15 @@ RCAT(Rei,ser)
  ACAT(Cir,cus)
  EOCP
  $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1
@@ -204,7 +204,7 @@
        echo "Oh!  Smells like ANSI's been here." >&4
        echo "We can catify or stringify, separately or together!"
        cpp_stuff=42
-@@ -23296,6 +23336,21 @@ eval $inhdr
+@@ -22641,6 +22681,21 @@ eval $inhdr
  set fenv.h i_fenv
  eval $inhdr
  
@@ -226,7 +226,7 @@
  : see if this is a fp.h system
  set fp.h i_fp
  eval $inhdr
-@@ -25665,4 +25720,3 @@ $rm -f kit*isdone ark*isdone
+@@ -25015,4 +25070,3 @@ $rm -f kit*isdone ark*isdone
  $rm -rf UU
  
  : End of Configure
diff -r c99541049e21 -r f747dc688505 lang/perl5/patches/patch-MANIFEST
--- a/lang/perl5/patches/patch-MANIFEST Wed Aug 22 08:31:30 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-MANIFEST,v 1.2 2017/06/05 13:41:22 ryoon Exp $
-
-[perl #131211] fixup File::Glob degenerate matching
-https://research.swtch.com/glob
-https://perl5.git.perl.org/perl.git/commit/33252c318625f3c6c89b816ee88481940e3e6f95
-
---- MANIFEST.orig      2017-05-30 09:57:56.000000000 +0000
-+++ MANIFEST
-@@ -3948,6 +3948,7 @@ ext/File-Glob/t/basic.t          See if File::Gl
- ext/File-Glob/t/case.t                See if File::Glob works
- ext/File-Glob/t/global.t      See if File::Glob works
- ext/File-Glob/t/rt114984.t    See if File::Glob works
-+ext/File-Glob/t/rt131211.t    See if File::Glob works
- ext/File-Glob/t/taint.t               See if File::Glob works
- ext/File-Glob/t/threads.t     See if File::Glob + threads works
- ext/File-Glob/TODO            File::Glob extension todo list
diff -r c99541049e21 -r f747dc688505 lang/perl5/patches/patch-aq
--- a/lang/perl5/patches/patch-aq       Wed Aug 22 08:31:30 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-aq,v 1.4 2012/10/03 19:59:47 adam Exp $
-
---- XSUB.h.orig        2012-08-03 17:35:26.000000000 +0000
-+++ XSUB.h
-@@ -102,6 +102,9 @@ is a lexical $_ in scope.
- #ifndef PERL_UNUSED_VAR
- #  define PERL_UNUSED_VAR(x) ((void)x)
- #endif
-+#ifndef PERL_UNUSED_DECL
-+#  define PERL_UNUSED_DECL
-+#endif
- 
- #define ST(off) PL_stack_base[ax + (off)]
- 
-@@ -137,18 +140,7 @@ is a lexical $_ in scope.
- #  define XS_INTERNAL(name) EXPORT_C STATIC XSPROTO(name)
- #endif



Home | Main Index | Thread Index | Old Index