summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2019-11-11 21:32:12 +0000
committermaya <maya@pkgsrc.org>2019-11-11 21:32:12 +0000
commita19d805e9f1481868b99e87ecb64b605eeff8c18 (patch)
tree5ad0899cfca22e7e6d831a84fc69434bdfd0cc2b /lang/perl5
parentfc5d35602f955d0dcf8f3169d71135f3ba138394 (diff)
downloadpkgsrc-a19d805e9f1481868b99e87ecb64b605eeff8c18.tar.gz
perl5: evaluating this regex to force utf8_heavy.pl to load no longer works,
use a unicode 'tr///' instead. Fixes Bugzilla checksetup.pl, which uses Safe. Thanks to many on #perl on freenode. PR pkg/54625 Bump PKGREVISION
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/Makefile4
-rw-r--r--lang/perl5/distinfo3
-rw-r--r--lang/perl5/patches/patch-Safe.pm16
3 files changed, 20 insertions, 3 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 98f1ab4d406..ef72ade5a7a 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.257 2019/11/03 19:04:05 rillig Exp $
+# $NetBSD: Makefile,v 1.258 2019/11/11 21:32:12 maya Exp $
.include "license.mk"
.include "Makefile.common"
-PKGREVISION= 1
+PKGREVISION= 2
COMMENT= Practical Extraction and Report Language
diff --git a/lang/perl5/distinfo b/lang/perl5/distinfo
index 631dd16f51b..4c1a3159e2b 100644
--- a/lang/perl5/distinfo
+++ b/lang/perl5/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.159 2019/10/10 17:59:57 maya Exp $
+$NetBSD: distinfo,v 1.160 2019/11/11 21:32:12 maya Exp $
SHA1 (perl-5.30.0.tar.xz) = cc8d1e08ffe4624c197a44d02855632725d39f8e
RMD160 (perl-5.30.0.tar.xz) = 64ff4c65823122c337e18278585d71def1de9c5d
@@ -6,6 +6,7 @@ SHA512 (perl-5.30.0.tar.xz) = 68a295eccd64debd9d6a10f0d5577f872a19ad8c2d702798f6
Size (perl-5.30.0.tar.xz) = 12419868 bytes
SHA1 (patch-Configure) = 6000aafeb993fd096c9b1327302b510aa0d386bb
SHA1 (patch-Makefile.SH) = 93cae9736ef94cdd9e5748f7e0a0183332c2f3b3
+SHA1 (patch-Safe.pm) = bfeefb82d4cfe991e3a9a90cd87b894c9f4cc337
SHA1 (patch-alignment_1) = b68c0916b271523922caa7f89edb165284e7b5f4
SHA1 (patch-alignment_2) = cae8495c4a092e31da422bf5684481091ee2adf3
SHA1 (patch-caretx.c) = b76b4175a58123fa4dfd2adf36b2207dcb6cf65a
diff --git a/lang/perl5/patches/patch-Safe.pm b/lang/perl5/patches/patch-Safe.pm
new file mode 100644
index 00000000000..b909f7e33a3
--- /dev/null
+++ b/lang/perl5/patches/patch-Safe.pm
@@ -0,0 +1,16 @@
+$NetBSD: patch-Safe.pm,v 1.1 2019/11/11 21:32:12 maya Exp $
+
+Use tr/// to force the loading of utf8_heavy, the current code no longer works.
+https://github.com/Perl/perl5/issues/17271
+
+--- dist/Safe/Safe.pm.orig 2019-11-11 21:17:50.484290191 +0000
++++ dist/Safe/Safe.pm
+@@ -67,7 +67,7 @@ require utf8;
+ # particular code points don't cause it to load.
+ # (Swashes are cached internally by perl in PL_utf8_* variables
+ # independent of being inside/outside of Safe. So once loaded they can be)
+-do { my $a = pack('U',0x100); my $b = chr 0x101; utf8::upgrade $b; $a =~ /$b/i };
++do { my $a = pack('U',0x100); my $b = chr 0x101; utf8::upgrade $b; $a =~ tr/\x{202a}-\x{202e}//d };
+ # now we can safely include utf8::SWASHNEW in $default_share defined below.
+
+ my $default_root = 0;