summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorryoon <ryoon>2016-05-01 00:05:57 +0000
committerryoon <ryoon>2016-05-01 00:05:57 +0000
commit4ef6a02b173941b133e58bb085b94cb3c317c67a (patch)
treef2d39813336717f781899591a8766ed335db9bca /lang/perl5
parentd1c3eae6c5806dfe85b745bf583bc28e67e02b46 (diff)
downloadpkgsrc-4ef6a02b173941b133e58bb085b94cb3c317c67a.tar.gz
Update to 5.22.2
Changelog: NAME perldelta - what is new for perl v5.22.2 DESCRIPTION This document describes differences between the 5.22.1 release and the 5.22.2 release. If you are upgrading from an earlier release such as 5.22.0, first read perl5221delta, which describes differences between 5.22.0 and 5.22.1. Security Fix out of boundary access in Win32 path handling This is CVE-2015-8608. For more information see [perl #126755] <https://rt.perl.org/Ticket/Display.html?id=126755>. Fix loss of taint in "canonpath()" This is CVE-2015-8607. For more information see [perl #126862] <https://rt.perl.org/Ticket/Display.html?id=126862>. Set proper umask before calling mkstemp(3) In 5.22.0 perl started setting umask to 0600 before calling mkstemp(3) and restoring it afterwards. This wrongfully tells open(2) to strip the owner read and write bits from the given mode before applying it, rather than the intended negation of leaving only those bits in place. Systems that use mode 0666 in mkstemp(3) (like old versions of glibc) create a file with permissions 0066, leaving world read and write permissions regardless of current umask. This has been fixed by using umask 0177 instead. [perl #127322] <https://rt.perl.org/Ticket/Display.html?id=127322> Avoid accessing uninitialized memory in Win32 "crypt()" Validation that will detect both a short salt and invalid characters in the salt has been added. ://rt.perl.org/Ticket/Display.html?id=126922> Remove duplicate environment variables from "environ" Previously, if an environment variable appeared more than once in "environ[]", %ENV would contain the last entry for that name, while a typical "getenv()" would return the first entry. We now make sure %ENV contains the same as what "getenv()" returns. Secondly, we now remove duplicates from "environ[]", so if a setting with that name is set in %ENV we won't pass an unsafe value to a child process. This is CVE-2016-2381. Incompatible Changes There are no changes intentionally incompatible with Perl 5.22.1. If any exist, they are bugs, and we request that you submit a report. See "Reporting Bugs" below. Modules and Pragmata Updated Modules and Pragmata • File::Spec has been upgraded from version 3.56 to 3.56_01. "canonpath()" now preserves taint. See "Fix loss of taint in "canonpath()"". • Module::CoreList has been upgraded from version 5.20151213 to 5.20160429. The version number of Digest::SHA listed for Perl 5.18.4 was wrong and has been corrected. Likewise for the version number of Config in 5.18.3 and 5.18.4. [perl #127624] <https://rt.perl.org/Ticket/Display.html?id=127624> Documentation Changes to Existing Documentation perldiag • The explanation of the warning "unable to close filehandle %s properly: %s" which can occur when doing an implicit close of a filehandle has been expanded and improved. perlfunc • The documentation of "hex()" has been revised to clarify valid inputs. Configuration and Compilation • Dtrace builds now build successfully on systems with a newer dtrace that require an input object file that uses the probes in the .d file. Previously the probe would fail and cause a build failure. [perl #122287] <https://rt.perl.org/Ticket/Display.html?id=122287> • Configure no longer probes for libnm by default. Originally this was the "New Math" library, but the name has been re-used by the GNOME NetworkManager. [perl #127131] <https://rt.perl.org/Ticket/Display.html?id=127131> • Configure now knows about gcc 5. • Compiling perl with -DPERL_MEM_LOG now works again. Platform Support Platform-Specific Notes Darwin Compiling perl with -Dusecbacktrace on Darwin now works again. [perl #127764] <https://rt.perl.org/Ticket/Display.html?id=127764> OS X/Darwin Builds with both -DDEBUGGING and threading enabled would fail with a "panic: free from wrong pool" error when built or tested from Terminal on OS X. This was caused by perl's internal management of the environment conflicting with an atfork handler using the libc "setenv()" function to update the environment. Perl now uses "setenv()"/"unsetenv()" to update the environment on OS X. [perl #126240] <https://rt.perl.org/Ticket/Display.html?id=126240> ppc64el The floating point format of ppc64el (Debian naming for little- endian PowerPC) is now detected correctly. Tru64 A test failure in t/porting/extrefs.t has been fixed. Internal Changes • An unwarranted assertion in "Perl_newATTRSUB_x()" has been removed. If a stub subroutine definition with a prototype has been seen, then any subsequent stub (or definition) of the same subroutine with an attribute was causing an assertion failure because of a null pointer. [perl #126845] <https://rt.perl.org/Ticket/Display.html?id=126845> Selected Bug Fixes • Calls to the placeholder &PL_sv_yes used internally when an "import()" or "unimport()" method isn't found now correctly handle scalar context. [perl #126042] <https://rt.perl.org/Ticket/Display.html?id=126042> • The "pipe()" operator would assert for "DEBUGGING" builds instead of producing the correct error message. The condition asserted on is detected and reported on correctly without the assertions, so the assertions were removed. [perl #126480] <https://rt.perl.org/Ticket/Display.html?id=126480> • In some cases, failing to parse a here-doc would attempt to use freed memory. This was caused by a pointer not being restored correctly. [perl #126443] <https://rt.perl.org/Ticket/Display.html?id=126443> • Perl now reports more context when it sees an array where it expects to see an operator, and avoids an assertion failure. [perl #123737] <https://rt.perl.org/Ticket/Display.html?id=123737> • If a here-doc was found while parsing another operator, the parser had already read end of file, and the here-doc was not terminated, perl could produce an assertion or a segmentation fault. This now reliably complains about the unterminated here-doc. [perl #125540] <https://rt.perl.org/Ticket/Display.html?id=125540> • Parsing beyond the end of the buffer when processing a "#line" directive with no filename is now avoided. [perl #127334] <https://rt.perl.org/Ticket/Display.html?id=127334> • Perl 5.22.0 added support for the C99 hexadecimal floating point notation, but sometimes misparsed hex floats. This has been fixed. [perl #127183] <https://rt.perl.org/Ticket/Display.html?id=127183> • Certain regex patterns involving a complemented posix class in an inverted bracketed character class, and matching something else optionally would improperly fail to match. An example of one that could fail is "qr/_?[^\Wbar]\x{100}/". This has been fixed. [perl #127537] <https://rt.perl.org/Ticket/Display.html?id=127537> • Fixed an issue with "pack()" where "pack "H"" (and "pack "h"") could read past the source when given a non-utf8 source and a utf8 target. [perl #126325] <https://rt.perl.org/Ticket/Display.html?id=126325> • Fixed some cases where perl would abort due to a segmentation fault, or a C-level assert. [perl #126193] <https://rt.perl.org/Ticket/Display.html?id=126193> [perl #126257] <https://rt.perl.org/Ticket/Display.html?id=126257> [perl #126258] <https://rt.perl.org/Ticket/Display.html?id=126258> [perl #126405] <https://rt.perl.org/Ticket/Display.html?id=126405> [perl #126602] <https://rt.perl.org/Ticket/Display.html?id=126602> [perl #127773] <https://rt.perl.org/Ticket/Display.html?id=127773> [perl #127786] <https://rt.perl.org/Ticket/Display.html?id=127786> • A memory leak when setting $ENV{foo} on Darwin has been fixed. [perl #126240] <https://rt.perl.org/Ticket/Display.html?id=126240> • Perl now correctly raises an error when trying to compile patterns with unterminated character classes while there are trailing backslashes. [perl #126141] <https://rt.perl.org/Ticket/Display.html?id=126141> • "NOTHING" regops and "EXACTFU_SS" regops in "make_trie()" are now handled properly. [perl #126206] <https://rt.perl.org/Ticket/Display.html?id=126206> • Perl now only tests "semctl()" if we have everything needed to use it. In FreeBSD the "semctl()" entry point may exist, but it can be disabled by policy. [perl #127533] <https://rt.perl.org/Ticket/Display.html?id=127533> • A regression that allowed undeclared barewords as hash keys to work despite strictures has been fixed. [perl #126981] <https://rt.perl.org/Ticket/Display.html?id=126981> • As an optimization (introduced in Perl 5.20.0), "uc()", "lc()", "ucfirst()" and "lcfirst()" sometimes modify their argument in- place rather than returning a modified copy. The criteria for this optimization has been made stricter to avoid these functions accidentally modifying in-place when they should not, which has been happening in some cases, e.g. in List::Util. • Excessive memory usage in the compilation of some regular expressions involving non-ASCII characters has been reduced. A more complete fix is forthcoming in Perl 5.24.0. Acknowledgements Perl 5.22.2 represents approximately 5 months of development since Perl 5.22.1 and contains approximately 3,000 lines of changes across 110 files from 24 authors. Excluding auto-generated files, documentation and release tools, there were approximately 1,500 lines of changes to 52 .pm, .t, .c and .h files. Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.22.2: Aaron Crane, Abigail, Andreas Koenig, Aristotle Pagaltzis, Chris 'BinGOs' Williams, Craig A. Berry, Dagfinn Ilmari Mannsaaker, David Golden, David Mitchell, H.Merijn Brand, James E Keenan, Jarkko Hietaniemi, Karen Etheridge, Karl Williamson, Matthew Horsfall, Niko Tyni, Ricardo Signes, Sawyer X, Stevan Little, Steve Hay, Todd Rinaldo, Tony Cook, Vladimir Timofeev, Yves Orton. The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker. Many of the changes included in this version originated in the CPAN modules included in Perl's core. We're grateful to the entire CPAN community for helping Perl to flourish. For a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl source distribution.
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/Makefile3
-rw-r--r--lang/perl5/Makefile.common4
-rw-r--r--lang/perl5/distinfo12
-rw-r--r--lang/perl5/patches/patch-Makefile.SH33
-rw-r--r--lang/perl5/patches/patch-perl.c82
5 files changed, 8 insertions, 126 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 7f91138c22f..4bff0b69293 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.237 2016/04/19 22:14:38 sevan Exp $
+# $NetBSD: Makefile,v 1.238 2016/05/01 00:05:57 ryoon Exp $
.include "license.mk"
.include "Makefile.common"
-PKGREVISION= 1
COMMENT= Practical Extraction and Report Language
CONFLICTS+= perl-base-[0-9]* perl-thread-[0-9]*
diff --git a/lang/perl5/Makefile.common b/lang/perl5/Makefile.common
index 785523f3067..9d448424657 100644
--- a/lang/perl5/Makefile.common
+++ b/lang/perl5/Makefile.common
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.25 2015/12/28 13:44:03 adam Exp $
+# $NetBSD: Makefile.common,v 1.26 2016/05/01 00:05:57 ryoon Exp $
#
# used by lang/perl5/Makefile
# used by databases/p5-gdbm/Makefile
-DISTNAME= perl-5.22.1
+DISTNAME= perl-5.22.2
CATEGORIES= lang devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/5.0/,}
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
diff --git a/lang/perl5/distinfo b/lang/perl5/distinfo
index 26ab5324d05..f83ec7f3989 100644
--- a/lang/perl5/distinfo
+++ b/lang/perl5/distinfo
@@ -1,10 +1,9 @@
-$NetBSD: distinfo,v 1.134 2016/04/19 22:14:38 sevan Exp $
+$NetBSD: distinfo,v 1.135 2016/05/01 00:05:57 ryoon Exp $
-SHA1 (perl-5.22.1.tar.bz2) = 29f9b320b0299577a3e1d02e9e8ef8f26f160332
-RMD160 (perl-5.22.1.tar.bz2) = 99e3af98d80ace857da6ce28679a2e35a4360144
-SHA512 (perl-5.22.1.tar.bz2) = 4da26b1d3d8525c58677abd2c5c354ccaa4b1b260ebe7dfe379d51a5da00ac7ae06cb668011faac2aaf56229fd22b275c13a74c8c9dbc59cc155a36c0e7e8355
-Size (perl-5.22.1.tar.bz2) = 13696599 bytes
-SHA1 (patch-Makefile.SH) = 92c623fe1ea024b05f47bcfee7002e02647d5062
+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 (patch-aa) = 9bbcc9395080b11934528a32808e0a509f1d831c
SHA1 (patch-ab) = c899b7221a78e74cc9b1480834baba047dd19f38
SHA1 (patch-ac) = 4baa8f80695687abb53d4f4e1830cf86db5b2bf7
@@ -21,6 +20,5 @@ 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
-SHA1 (patch-perl.c) = 5269fdb22ca3f450603a51d8db6ba7daef496f2f
SHA1 (patch-ta) = a9d13eeec22733e4087942f217a0d47a19498a6f
SHA1 (patch-ze) = d6fb718a1417e37a7d6bee1ae89fe2beec51c81b
diff --git a/lang/perl5/patches/patch-Makefile.SH b/lang/perl5/patches/patch-Makefile.SH
deleted file mode 100644
index fbff28b19e4..00000000000
--- a/lang/perl5/patches/patch-Makefile.SH
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-Makefile.SH,v 1.3 2014/10/01 07:17:02 adam Exp $
-
-Due to bloody backward incompatible changes in recent dtrace on SunOS
-postpone invocation of dtrace to later with the actual probe objects.
-
-Ensure perldtrace.h is generated during makedepends in order to avoid
-compilation problems
-
---- Makefile.SH.orig 2014-05-26 13:34:18.000000000 +0000
-+++ Makefile.SH
-@@ -225,10 +225,9 @@ dtrace_o=''
- minidtrace_o=''
- case "$usedtrace" in
- define|true)
-- dtrace_h='perldtrace.h'
-- $dtrace -G -s perldtrace.d -o perldtrace.tmp >/dev/null 2>&1 \
-- && rm -f perldtrace.tmp && dtrace_o='perldtrace$(OBJ_EXT)' \
-- && minidtrace_o='miniperldtrace$(OBJ_EXT)'
-+ dtrace_h='perldtrace.h'
-+ dtrace_o='perldtrace$(OBJ_EXT)'
-+ minidtrace_o='miniperldtrace$(OBJ_EXT)'
- ;;
- esac
-
-@@ -1579,7 +1578,7 @@ nokfilenack: utilities
-
- .PHONY: clist hlist
-
--clist: $(c)
-+clist: $(c) $(DTRACE_H)
- echo $(c) | tr ' ' $(TRNL) >.clist
-
- hlist: $(h)
diff --git a/lang/perl5/patches/patch-perl.c b/lang/perl5/patches/patch-perl.c
deleted file mode 100644
index 833d1ac436a..00000000000
--- a/lang/perl5/patches/patch-perl.c
+++ /dev/null
@@ -1,82 +0,0 @@
-$NetBSD: patch-perl.c,v 1.1 2016/04/19 22:14:38 sevan Exp $
-
-CVE-2016-2381 - Perl might allow context-dependent attackers to bypass the taint
-protection mechanism in a child process via duplicate environment variables in
-envp.
-https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2381
-
---- perl.c.orig 2015-10-17 12:38:38.000000000 +0000
-+++ perl.c
-@@ -4298,23 +4298,70 @@ S_init_postdump_symbols(pTHX_ int argc,
- }
- if (env) {
- char *s, *old_var;
-+ STRLEN nlen;
- SV *sv;
-+ HV *dups = newHV();
-+
- for (; *env; env++) {
- old_var = *env;
-
- if (!(s = strchr(old_var,'=')) || s == old_var)
- continue;
-+ nlen = s - old_var;
-
- #if defined(MSDOS) && !defined(DJGPP)
- *s = '\0';
- (void)strupr(old_var);
- *s = '=';
- #endif
-- sv = newSVpv(s+1, 0);
-- (void)hv_store(hv, old_var, s - old_var, sv, 0);
-+ if (hv_exists(hv, old_var, nlen)) {
-+ const char *name = savepvn(old_var, nlen);
-+
-+ /* make sure we use the same value as getenv(), otherwise code that
-+ uses getenv() (like setlocale()) might see a different value to %ENV
-+ */
-+ sv = newSVpv(PerlEnv_getenv(name), 0);
-+
-+ /* keep a count of the dups of this name so we can de-dup environ later */
-+ if (hv_exists(dups, name, nlen))
-+ ++SvIVX(*hv_fetch(dups, name, nlen, 0));
-+ else
-+ (void)hv_store(dups, name, nlen, newSViv(1), 0);
-+
-+ Safefree(name);
-+ }
-+ else {
-+ sv = newSVpv(s+1, 0);
-+ }
-+ (void)hv_store(hv, old_var, nlen, sv, 0);
- if (env_is_not_environ)
- mg_set(sv);
- }
-+ if (HvKEYS(dups)) {
-+ /* environ has some duplicate definitions, remove them */
-+ HE *entry;
-+ hv_iterinit(dups);
-+ while ((entry = hv_iternext_flags(dups, 0))) {
-+ STRLEN nlen;
-+ const char *name = HePV(entry, nlen);
-+ IV count = SvIV(HeVAL(entry));
-+ IV i;
-+ SV **valp = hv_fetch(hv, name, nlen, 0);
-+
-+ assert(valp);
-+
-+ /* try to remove any duplicate names, depending on the
-+ * implementation used in my_setenv() the iteration might
-+ * not be necessary, but let's be safe.
-+ */
-+ for (i = 0; i < count; ++i)
-+ my_setenv(name, 0);
-+
-+ /* and set it back to the value we set $ENV{name} to */
-+ my_setenv(name, SvPV_nolen(*valp));
-+ }
-+ }
-+ SvREFCNT_dec_NN(dups);
- }
- #endif /* USE_ENVIRON_ARRAY */
- #endif /* !PERL_MICRO */