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.36.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b10ba8fdcc67
branches:  trunk
changeset: 381092:b10ba8fdcc67
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jun 28 10:02:51 2022 +0000

description:
perl: update to 5.36.0.

Core Enhancements

    use v5.36
    -g command-line flag
    Unicode 14.0 is supported
    regex sets are no longer considered experimental
    Variable length lookbehind is mostly no longer considered experimental
    SIGFPE no longer deferred
    Stable boolean tracking
    iterating over multiple values at a time (experimental)
    builtin functions (experimental)
    defer blocks (experimental)
    try/catch can now have a finally block (experimental)
    non-ASCII delimiters for quote-like operators (experimental)
    @_ is now experimental within signatured subs

Incompatible Changes

    A physically empty sort is now a compile-time error

Deprecations

    use VERSION (where VERSION is below v5.11) after use v5.11 is deprecated

Performance Enhancements

diffstat:

 lang/perl5/Makefile.common                                                |   4 +-
 lang/perl5/buildlink3.mk                                                  |   8 +-
 lang/perl5/distinfo                                                       |  14 +-
 lang/perl5/patches/patch-cflags.SH                                        |  15 --
 lang/perl5/patches/patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__Unix.pm |  11 +-
 lang/perl5/patches/patch-dist_PathTools_Cwd.pm                            |  70 ----------
 lang/perl5/patches/patch-lib_File_Copy.pm                                 |  16 --
 lang/perl5/patches/patch-numeric.c                                        |  17 --
 8 files changed, 12 insertions(+), 143 deletions(-)

diffs (229 lines):

diff -r 7509257c03e4 -r b10ba8fdcc67 lang/perl5/Makefile.common
--- a/lang/perl5/Makefile.common        Tue Jun 28 09:42:12 2022 +0000
+++ b/lang/perl5/Makefile.common        Tue Jun 28 10:02:51 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.44 2022/04/01 16:39:12 wiz Exp $
+# $NetBSD: Makefile.common,v 1.45 2022/06/28 10:02:51 wiz Exp $
 #
 # used by lang/perl5/Makefile
 # used by databases/p5-gdbm/Makefile
 
-DISTNAME=      perl-5.34.1
+DISTNAME=      perl-5.36.0
 CATEGORIES=    lang devel perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/5.0/,}
 DISTFILES+=    ${DISTNAME}${EXTRACT_SUFX}
diff -r 7509257c03e4 -r b10ba8fdcc67 lang/perl5/buildlink3.mk
--- a/lang/perl5/buildlink3.mk  Tue Jun 28 09:42:12 2022 +0000
+++ b/lang/perl5/buildlink3.mk  Tue Jun 28 10:02:51 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.70 2021/05/24 17:46:25 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.71 2022/06/28 10:02:51 wiz Exp $
 
 BUILDLINK_TREE+=       perl
 
@@ -6,13 +6,13 @@
 PERL_BUILDLINK3_MK:=
 
 .include "../../mk/bsd.fast.prefs.mk"
-PERL5_REQD+=                   5.34.0
+PERL5_REQD+=                   5.36.0
 .for _perl5_ver_ in ${PERL5_REQD}
 BUILDLINK_API_DEPENDS.perl+=   perl>=${_perl5_ver_}
 .endfor
-# Prevent p5-* etc. packages built for 5.34.0 to be used
+# Prevent p5-* etc. packages built for 5.36.0 to be used
 # with the next incompatible version of perl:
-BUILDLINK_API_DEPENDS.perl+=   perl<5.36.0
+BUILDLINK_API_DEPENDS.perl+=   perl<5.38.0
 
 BUILDLINK_PKGSRCDIR.perl?=     ../../lang/perl5
 
diff -r 7509257c03e4 -r b10ba8fdcc67 lang/perl5/distinfo
--- a/lang/perl5/distinfo       Tue Jun 28 09:42:12 2022 +0000
+++ b/lang/perl5/distinfo       Tue Jun 28 10:02:51 2022 +0000
@@ -1,20 +1,16 @@
-$NetBSD: distinfo,v 1.176 2022/04/01 16:39:12 wiz Exp $
+$NetBSD: distinfo,v 1.177 2022/06/28 10:02:51 wiz Exp $
 
-BLAKE2s (perl-5.34.1.tar.xz) = 4fffbd2e2c84f68bd264587a19ccf12dedfb097468cfa928d45d2891c14c2140
-SHA512 (perl-5.34.1.tar.xz) = 9261958291b49eea30c120a89e5ee32dc6a5fd46de4869c89c3d6a4c1162d6cf192ebe429d01a293eda93d8680ce15294af27717fd4ec4c75f511c1fa820fdac
-Size (perl-5.34.1.tar.xz) = 12760168 bytes
+BLAKE2s (perl-5.36.0.tar.xz) = 419158b0be2c49e29915a098b626598effa54d84ed925255eb679b3bf1e5a67b
+SHA512 (perl-5.36.0.tar.xz) = 6dd6ac2a77566c173c5ab9c238cf555f2c3e592e89abb5600bc23ce1cbd0c349e0233f6417cbbf1f6d0aefc6a734ba491285af0d3dc68a605b658b65c89f1dab
+Size (perl-5.36.0.tar.xz) = 13051500 bytes
 SHA1 (patch-Configure) = a72983dba63f32f57418f2702b039585ba7236a7
 SHA1 (patch-Makefile.SH) = 56203aea57c429a94760f039a978463b8859b0a9
 SHA1 (patch-caretx.c) = b76b4175a58123fa4dfd2adf36b2207dcb6cf65a
-SHA1 (patch-cflags.SH) = e940e4452768ccc1bdf21d435094e7efffceb925
 SHA1 (patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__BeOS.pm) = 79e5aeccfa272ca5ec08bffc616d8053ae90ac51
-SHA1 (patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__Unix.pm) = 7b1caaea7327ebf492f8cde6b459286ecf7dd5ad
+SHA1 (patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__Unix.pm) = 6171a21a24e3bea312155b1d5f692d76ef733d23
 SHA1 (patch-cpan_ExtUtils-MakeMaker_t_MM__BeOS.t) = 9b0e7ab85fdab4887b1754599a8879bd7d9f36cc
-SHA1 (patch-dist_PathTools_Cwd.pm) = 2a62c7e7a71c103138d9960578431cab0f49435b
 SHA1 (patch-hints_cygwin.sh) = 1b21d927d6b7379754c4cd64a2b05d3632c35470
 SHA1 (patch-hints_linux.sh) = 4baa8f80695687abb53d4f4e1830cf86db5b2bf7
 SHA1 (patch-hints_netbsd.sh) = 0d549a48800372d75fe34b783529a78cba90f646
 SHA1 (patch-hints_solaris__2.sh) = 364a28ca57dbabe1f902b601e336532996db6a0e
 SHA1 (patch-installperl) = b129d64cc17b898b44fe6282b8b1df36e342d0ef
-SHA1 (patch-lib_File_Copy.pm) = 99304793777e37ae13aa71607906e7648dcdbc65
-SHA1 (patch-numeric.c) = 53dc8da40ad21d97072e8e2000f0a16c3353ff41
diff -r 7509257c03e4 -r b10ba8fdcc67 lang/perl5/patches/patch-cflags.SH
--- a/lang/perl5/patches/patch-cflags.SH        Tue Jun 28 09:42:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-cflags.SH,v 1.4 2020/08/31 18:00:37 wiz Exp $
-
-Don't add -std=c89 or -ansi, requires c99.
-
---- cflags.SH.orig     2020-06-14 23:01:24.000000000 +0000
-+++ cflags.SH
-@@ -178,7 +178,7 @@ Intel*) ;; # # Is that you, Intel C++?
- # -std=c89 before -ansi
- # -pedantic* before -Werror=d-a-s
- #
--*) warns="-std=c89 -ansi $pedantic \
-+*) warns="$pedantic \
-       -Werror=pointer-arith \
-       -Wextra -W \
-       -Wc++-compat -Wwrite-strings"
diff -r 7509257c03e4 -r b10ba8fdcc67 lang/perl5/patches/patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__Unix.pm
--- a/lang/perl5/patches/patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__Unix.pm Tue Jun 28 09:42:12 2022 +0000
+++ b/lang/perl5/patches/patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__Unix.pm Tue Jun 28 10:02:51 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__Unix.pm,v 1.2 2021/05/29 13:04:21 rin Exp $
+$NetBSD: patch-cpan_ExtUtils-MakeMaker_lib_ExtUtils_MM__Unix.pm,v 1.3 2022/06/28 10:02:51 wiz Exp $
 
 * $Is{NetBSD} and $Is{Interix} are unified into $Is{BSD}.
 * Ignore installed packlist when creating new packlist.
@@ -25,15 +25,6 @@
          # Use nothing on static perl platforms, and to the flags needed
          # to link against the shared libperl library on shared perl
          # platforms.  We peek at lddlflags to see if we need -Wl,-R
-@@ -1314,7 +1312,7 @@ sub _fixin_replace_shebang {
-             if ($self->maybe_command($origcmd) && grep { $_ eq $origdir } @absdirs) {
-                 my ($odev, $oino) = stat $origcmd;
-                 my ($idev, $iino) = stat $interpreter;
--                if ($odev == $idev && $oino == $iino) {
-+                if ($odev == $idev && $oino eq $iino) {
-                     warn "$origcmd is the same as $interpreter, leaving alone"
-                         if $Verbose;
-                     $interpreter = $origcmd;
 @@ -2351,7 +2349,7 @@ pure_vendor_install :: all
        $(NOECHO) $(MOD_INSTALL) \
  };
diff -r 7509257c03e4 -r b10ba8fdcc67 lang/perl5/patches/patch-dist_PathTools_Cwd.pm
--- a/lang/perl5/patches/patch-dist_PathTools_Cwd.pm    Tue Jun 28 09:42:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-$NetBSD: patch-dist_PathTools_Cwd.pm,v 1.1 2021/05/29 13:04:21 rin Exp $
-
-Compare inode numbers as string to fix pkg/55997. Cherry-picked from
-upstream. See https://github.com/Perl/perl5/pull/18788 for more details.
-
---- dist/PathTools/Cwd.pm.orig 2021-05-13 17:22:53.506472893 +0900
-+++ dist/PathTools/Cwd.pm      2021-05-13 17:23:02.173970018 +0900
-@@ -275,7 +275,7 @@
-       ($odev, $oino) = ($cdev, $cino);
-       CORE::chdir('..') || return undef;
-       ($cdev, $cino) = stat('.');
--      last if $odev == $cdev && $oino == $cino;
-+      last if $odev == $cdev && $oino eq $cino;
-       opendir(DIR, '.') || return undef;
-       for (;;) {
-           $direntry = readdir(DIR);
-@@ -284,7 +284,7 @@
-           next if $direntry eq '..';
- 
-           ($tdev, $tino) = lstat($direntry);
--          last unless $tdev != $odev || $tino != $oino;
-+          last unless $tdev != $odev || $tino ne $oino;
-       }
-       closedir(DIR);
-       return undef unless defined $direntry; # should never happen
-@@ -298,7 +298,7 @@
-       && CORE::chdir($1) or return undef;
-     ($cdev, $cino) = stat('.');
-     die "Unstable directory path, current directory changed unexpectedly"
--      if $cdev != $orig_cdev || $cino != $orig_cino;
-+      if $cdev != $orig_cdev || $cino ne $orig_cino;
-     $path;
- }
- if (not defined &fastcwd) { *fastcwd = \&fastcwd_ }
-@@ -315,7 +315,7 @@
-     if ($ENV{'PWD'} and $^O ne 'os2' and $^O ne 'dos' and $^O ne 'MSWin32') {
-       my($dd,$di) = stat('.');
-       my($pd,$pi) = stat($ENV{'PWD'});
--      if (!defined $dd or !defined $pd or $di != $pi or $dd != $pd) {
-+      if (!defined $dd or !defined $pd or $di ne $pi or $dd != $pd) {
-           $ENV{'PWD'} = cwd();
-       }
-     }
-@@ -328,7 +328,7 @@
-     if ($^O ne 'MSWin32' and $ENV{'PWD'} =~ m|(/[^/]+(/[^/]+/[^/]+))(.*)|s) {
-       my($pd,$pi) = stat($2);
-       my($dd,$di) = stat($1);
--      if (defined $pd and defined $dd and $di == $pi and $dd == $pd) {
-+      if (defined $pd and defined $dd and $di eq $pi and $dd == $pd) {
-           $ENV{'PWD'}="$2$3";
-       }
-     }
-@@ -430,7 +430,7 @@
-           $! = $e;
-           return undef;
-       }
--      if ($pst[0] == $cst[0] && $pst[1] == $cst[1])
-+      if ($pst[0] == $cst[0] && $pst[1] eq $cst[1])
-       {
-           $dir = undef;
-       }
-@@ -448,7 +448,7 @@
-               $tst[0] = $pst[0]+1 unless (@tst = lstat("$dotdots/$dir"))
-           }
-           while ($dir eq '.' || $dir eq '..' || $tst[0] != $pst[0] ||
--                 $tst[1] != $pst[1]);
-+                 $tst[1] ne $pst[1]);
-       }
-       $cwd = (defined $dir ? "$dir" : "" ) . "/$cwd" ;
-       closedir(PARENT);
diff -r 7509257c03e4 -r b10ba8fdcc67 lang/perl5/patches/patch-lib_File_Copy.pm
--- a/lang/perl5/patches/patch-lib_File_Copy.pm Tue Jun 28 09:42:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-lib_File_Copy.pm,v 1.1 2021/05/29 13:04:21 rin Exp $
-
-Compare inode numbers as string to fix pkg/55997. Cherry-picked from
-upstream. See https://github.com/Perl/perl5/pull/18788 for more details.
-
---- lib/File/Copy.pm.orig      2020-12-18 19:04:36.000000000 +0900
-+++ lib/File/Copy.pm   2021-05-13 17:06:58.528282999 +0900
-@@ -104,7 +104,7 @@
-       my @fs = stat($from);
-       if (@fs) {
-           my @ts = stat($to);
--          if (@ts && $fs[0] == $ts[0] && $fs[1] == $ts[1] && !-p $from) {
-+          if (@ts && $fs[0] == $ts[0] && $fs[1] eq $ts[1] && !-p $from) {
-               carp("'$from' and '$to' are identical (not copied)");
-                 return 0;
-           }
diff -r 7509257c03e4 -r b10ba8fdcc67 lang/perl5/patches/patch-numeric.c
--- a/lang/perl5/patches/patch-numeric.c        Tue Jun 28 09:42:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-numeric.c,v 1.1 2020/09/17 10:02:20 mrg Exp $
-
-fix vax build.
-
---- numeric.c.orig     2020-06-14 23:01:25.000000000 +0000
-+++ numeric.c  2020-09-17 05:44:47.431800053 +0000
-@@ -1655,8 +1655,10 @@
-         char* endp;
-         char* copy = NULL;
- 
-+#if defined(NV_INF) || defined(NV_NAN)
-         if ((endp = S_my_atof_infnan(aTHX_ s, negative, send, value)))
-             return endp;
-+#endif
- 
-         /* strtold() accepts 0x-prefixed hex and in POSIX implementations,
-            0b-prefixed binary numbers, which is backward incompatible



Home | Main Index | Thread Index | Old Index