pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/perl5



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Nov 16 11:54:24 UTC 2024

Modified Files:
        pkgsrc/lang/perl5: Makefile Makefile.common distinfo
        pkgsrc/lang/perl5/patches: patch-hints_netbsd.sh

Log Message:
perl: update to 5.40.0.

Core Enhancements

    New __CLASS__ Keyword
    :reader attribute for field variables
    Permit a space in -M command-line option
    Restrictions to use VERSION declarations
    New builtin::inf and builtin::nan functions (experimental)
    New ^^ logical xor operator
    try/catch feature is no longer experimental
    for iterating over multiple values at a time is no longer experimental
    builtin module is no longer experimental
    The :5.40 feature bundle adds try
    use v5.40; imports builtin functions

Security

    CVE-2023-47038 - Write past buffer end via illegal user-defined Unicode property
    CVE-2023-47039 - Perl for Windows binary hijacking vulnerability

Incompatible Changes

    reset EXPR now calls set-magic on scalars
    Calling the import method of an unknown package produces a warning
    return no longer allows an indirect object
    Class barewords no longer resolved as file handles in method calls under no feature "bareword_filehandles"


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 pkgsrc/lang/perl5/Makefile
cvs rdiff -u -r1.48 -r1.49 pkgsrc/lang/perl5/Makefile.common
cvs rdiff -u -r1.182 -r1.183 pkgsrc/lang/perl5/distinfo
cvs rdiff -u -r1.10 -r1.11 pkgsrc/lang/perl5/patches/patch-hints_netbsd.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/perl5/Makefile
diff -u pkgsrc/lang/perl5/Makefile:1.278 pkgsrc/lang/perl5/Makefile:1.279
--- pkgsrc/lang/perl5/Makefile:1.278    Thu Jul  6 09:22:14 2023
+++ pkgsrc/lang/perl5/Makefile  Sat Nov 16 11:54:24 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.278 2023/07/06 09:22:14 wiz Exp $
+# $NetBSD: Makefile,v 1.279 2024/11/16 11:54:24 wiz Exp $
 
 .include "license.mk"
 .include "Makefile.common"
@@ -53,10 +53,13 @@ LDFLAGS.QNX+=               -lm
 
 CONFIGURE_ARGS.SunOS+= -Aundef:csh
 
-# As of 5.38.0
-# Failed 2 tests out of 2610, 99.92% okay.
-#        porting/customized.t
-#        porting/regen.t
+# As of 5.40.0
+# with
+#ALLOW_NETWORK_ACCESS=yes
+# Failed 2 tests out of 2733, 99.93% okay.
+#         porting/customized.t
+#         porting/regen.t
+# https://github.com/Perl/perl5/issues/22751
 TEST_TARGET=           test
 
 # Policy.sh generation
@@ -176,7 +179,7 @@ SUBST_VARS.policysh+=       SYSLIBPATH
 .include "../../mk/dlopen.buildlink3.mk"
 .include "options.mk"
 
-.if ${MACHINE_PLATFORM} == "MirBSD"
+.if ${OPSYS} == "MirBSD"
 SUBST_CLASSES+=                        mirbsd-paths
 SUBST_STAGE.mirbsd-paths=      pre-configure
 SUBST_FILES.mirbsd-paths=      hints/mirbsd.sh
@@ -185,7 +188,6 @@ SUBST_MESSAGE.mirbsd-paths= Do not use n
 .endif
 
 # Replace our perl as the interpreter
-REPLACE_PERL+=         cpan/Config-Perl-V/V.pm
 REPLACE_PERL+=         cpan/Getopt-Long/lib/Getopt/Long.pm
 REPLACE_PERL+=         cpan/version/lib/version.pm
 REPLACE_PERL+=         dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp

Index: pkgsrc/lang/perl5/Makefile.common
diff -u pkgsrc/lang/perl5/Makefile.common:1.48 pkgsrc/lang/perl5/Makefile.common:1.49
--- pkgsrc/lang/perl5/Makefile.common:1.48      Tue Dec  5 19:36:26 2023
+++ pkgsrc/lang/perl5/Makefile.common   Sat Nov 16 11:54:24 2024
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.48 2023/12/05 19:36:26 wiz Exp $
+# $NetBSD: Makefile.common,v 1.49 2024/11/16 11:54:24 wiz Exp $
 #
 # used by lang/perl5/Makefile
 # used by databases/p5-gdbm/Makefile
 
-DISTNAME=      perl-5.38.2
+DISTNAME=      perl-5.40.0
 CATEGORIES=    lang devel perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/5.0/,}
 DISTFILES+=    ${DISTNAME}${EXTRACT_SUFX}

Index: pkgsrc/lang/perl5/distinfo
diff -u pkgsrc/lang/perl5/distinfo:1.182 pkgsrc/lang/perl5/distinfo:1.183
--- pkgsrc/lang/perl5/distinfo:1.182    Tue Dec  5 19:36:26 2023
+++ pkgsrc/lang/perl5/distinfo  Sat Nov 16 11:54:24 2024
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.182 2023/12/05 19:36:26 wiz Exp $
+$NetBSD: distinfo,v 1.183 2024/11/16 11:54:24 wiz Exp $
 
-BLAKE2s (perl-5.38.2.tar.xz) = cdd8729ebe26a804f86236514eefa4520141f82a3167dfb246713b6094b51185
-SHA512 (perl-5.38.2.tar.xz) = 0ca51e447c7a18639627c281a1c7ae6662c773745ea3c86bede46336d5514ecc97ded2c61166e1ac15635581489dc596368907aa3a775b34db225b76d7402d10
-Size (perl-5.38.2.tar.xz) = 13679524 bytes
+BLAKE2s (perl-5.40.0.tar.xz) = 6d1a2dc936370f834497bd6ac1b117c3038925c513a81568e1ba1b6f448ad2bc
+SHA512 (perl-5.40.0.tar.xz) = a2fb1a24c6367b4043f4e929b2d74fc3bad1415e53b791ed1f219f1701064ae21b2bd3164ba95fcf24eaf458bd54433024ccae43725c0bb82a1ec6a98dc7052d
+Size (perl-5.40.0.tar.xz) = 13804184 bytes
 SHA1 (patch-Configure) = f3bd324a90254405b3ce8e29846b4ddc9ebf7d73
 SHA1 (patch-Makefile.SH) = 56203aea57c429a94760f039a978463b8859b0a9
 SHA1 (patch-caretx.c) = e9698f513b6fb5237b627d6a1a56153720654039
@@ -11,6 +11,6 @@ SHA1 (patch-cpan_ExtUtils-MakeMaker_lib_
 SHA1 (patch-cpan_ExtUtils-MakeMaker_t_MM__BeOS.t) = 9b0e7ab85fdab4887b1754599a8879bd7d9f36cc
 SHA1 (patch-hints_cygwin.sh) = 1b21d927d6b7379754c4cd64a2b05d3632c35470
 SHA1 (patch-hints_linux.sh) = 4baa8f80695687abb53d4f4e1830cf86db5b2bf7
-SHA1 (patch-hints_netbsd.sh) = 0d549a48800372d75fe34b783529a78cba90f646
+SHA1 (patch-hints_netbsd.sh) = cb498170c18f1f429eed9be245cd1df24c7ad628
 SHA1 (patch-hints_solaris__2.sh) = 364a28ca57dbabe1f902b601e336532996db6a0e
 SHA1 (patch-installperl) = b129d64cc17b898b44fe6282b8b1df36e342d0ef

Index: pkgsrc/lang/perl5/patches/patch-hints_netbsd.sh
diff -u pkgsrc/lang/perl5/patches/patch-hints_netbsd.sh:1.10 pkgsrc/lang/perl5/patches/patch-hints_netbsd.sh:1.11
--- pkgsrc/lang/perl5/patches/patch-hints_netbsd.sh:1.10        Wed Feb 25 14:56:45 2015
+++ pkgsrc/lang/perl5/patches/patch-hints_netbsd.sh     Sat Nov 16 11:54:24 2024
@@ -1,29 +1,10 @@
-$NetBSD: patch-hints_netbsd.sh,v 1.10 2015/02/25 14:56:45 wiz Exp $
+$NetBSD: patch-hints_netbsd.sh,v 1.11 2024/11/16 11:54:24 wiz Exp $
 
---whole-archive is a linker flag, not a compiler flag
 Better defaults for paths.
-Stop grovelling for functions we don't want to provide (*host*)
 
---- hints/netbsd.sh.orig       2015-01-17 16:59:58.000000000 +0000
+--- hints/netbsd.sh.orig       2024-11-16 08:28:23.750420799 +0000
 +++ hints/netbsd.sh
-@@ -36,16 +36,6 @@ case "$osvers" in
-               d_dlerror=$define
-               cccdlflags="-DPIC -fPIC $cccdlflags"
-               lddlflags="-shared $lddlflags"
--              cat >UU/cc.cbu <<'EOCBU'
--# gcc 4.6 doesn't support --whole-archive, but it's required for the
--# system gcc to build correctly, so check for it
--echo 'int f(void) { return 0; }' >try.c
--if ${cc:-cc} $cccdlflags -c try.c -otry.o 2>&1 &&
--   ${cc:-cc} --whole-archive $lddlflags try.o -otry.so 2>&1 ; then
--    lddlflags="--whole-archive $lddlflags"
--fi
--rm try.c try.o try.so 2>/dev/null
--EOCBU
-               rpathflag="-Wl,-rpath,"
-               case "$osvers" in
-               1.[0-5]*)
-@@ -200,10 +190,12 @@ esac
+@@ -200,10 +200,11 @@ esac
  EOCBU
  
  # Set sensible defaults for NetBSD: look for local software in
@@ -33,9 +14,8 @@ Stop grovelling for functions we don't w
  #
 -loclibpth="/usr/pkg/lib /usr/local/lib"
 -locincpth="/usr/pkg/include /usr/local/include"
-+loclibpth="/usr/local/lib ${prefix}/lib"
-+locincpth="/usr/local/include ${prefix}/include"
-+
++loclibpth="${prefix}/lib /usr/local/lib"
++locincpth="${prefix}/include /usr/local/include"
  case "$rpathflag" in
  '')
        ldflags=



Home | Main Index | Thread Index | Old Index