Commit graph

154 commits

Author SHA1 Message Date
kamil
7db612f19b Backport upstream fix for pointersize test
The symbol 'main' is multiply defined because Perl 5's `Configure`
script erroneously appends `try.c`, instead of overwriting it.

This change backports an upstream patch, which will not be needed once
Perl 5 5.23.x is available.

Sent by Eric N. Vander Weele
2016-03-07 21:27:58 +00:00
adam
eaeece1571 Changes 5.22.1:
Several bugs, including a segmentation fault, have been fixed with the bounds checking constructs (introduced in Perl 5.22) \b{gcb}, \b{sb}, \b{wb}, \B{gcb}, \B{sb}, and \B{wb}. All the \B{} ones now match an empty string; none of the \b{} ones do.

* Module::CoreList has been upgraded from version 5.20150520 to 5.20151213.
* PerlIO::scalar has been upgraded from version 0.22 to 0.23.
* POSIX has been upgraded from version 1.53 to 1.53_01.
* Storable has been upgraded from version 2.53 to 2.53_01.
* warnings has been upgraded from version 1.32 to 1.34.
* Win32 has been upgraded from version 0.51 to 0.52.
2015-12-28 13:44:03 +00:00
jperkin
fd46cf57be Support SunOS/clang, fixes 64-bit build. 2015-10-27 09:10:44 +00:00
he
b146ac941a Remove reference to file no longer part of the perl distribution.
Add a Configure test to verify that including <fenv.h> doesn't produce
a build error, as it will in quite few cases on NetBSD on archs which
are not amd64, i386 or sparc in NetBSD 6.x.  If the test build fails,
pretend we don't have fenv.h.

Validated that the result builds on NetBSD/evbarm 6.0 and NetBSD/i386 6.1.5.

Build fix, so no need to bump PKGREVISION.

OK by wiz@
2015-06-24 11:43:42 +00:00
adam
d933f7573b Changes 5.22.0:
* A safer ARGV
* CGI.pm and Module::Build disappear from core
* Hexadecimal floating point values
* Variable aliases
* Repetition in list assignment
* List pipe opens on Win32
* Various small fixes
2015-06-11 13:44:23 +00:00
ryoon
603cf0ae7d Fix build under Solaris 10 x86_64.
Redo PR pkg/44999 and fix linkage.
2015-05-15 14:32:27 +00:00
wiz
ce3c8aeb2c Update to 5.20.2, provided by Kai-Uwe Eckhardt <kuehro@gmx.de> in private
mail.

Changes:

Incompatible Changes

There are no changes intentionally incompatible with 5.20.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

    attributes has been upgraded from version 0.22 to 0.23.

    The usage of memEQs in the XS has been corrected. [perl #122701]

    Data::Dumper has been upgraded from version 2.151 to 2.151_01.

    Fixes CVE-2014-4330 by adding a configuration variable/option to
    limit recursion when dumping deep data structures.

    Errno has been upgraded from version 1.20_03 to 1.20_05.

    Warnings when building the XS on Windows with the Visual C++
    compiler are now avoided.

    feature has been upgraded from version 1.36 to 1.36_01.

    The postderef feature has now been documented. This feature was
    actually added in Perl 5.20.0 but was accidentally omitted from
    the feature documentation until now.

    IO::Socket has been upgraded from version 1.37 to 1.38.

    Document the limitations of the connected() method. [perl #123096]

    Module::CoreList has been upgraded from version 5.020001 to
    5.20150214.

    The list of Perl versions covered has been updated.

    PathTools has been upgraded from version 3.48 to 3.48_01.

    A warning from the gcc compiler is now avoided when building the
    XS.

    PerlIO::scalar has been upgraded from version 0.18 to 0.18_01.

    Reading from a position well past the end of the scalar now
    correctly returns end of file. [perl #123443]

    Seeking to a negative position still fails, but no longer leaves
    the file position set to a negation location.

    eof() on a PerlIO::scalar handle now properly returns true when
    the file position is past the 2GB mark on 32-bit systems.

    Storable has been upgraded from version 2.49 to 2.49_01.

    Minor grammatical change to the documentation only.

    VMS::DCLsym has been upgraded from version 1.05 to 1.05_01.

    Minor formatting change to the documentation only.

    VMS::Stdio has been upgraded from version 2.4 to 2.41.

    Minor formatting change to the documentation only.

Documentation New Documentation perlunicook

This document, by Tom Christiansen, provides examples of handling
Unicode in Perl.  Changes to Existing Documentation perlexperiment

    Added reference to subroutine signatures. This feature was
    actually added in Perl 5.20.0 but was accidentally omitted from
    the experimental feature documentation until now.

perlpolicy

    The process whereby features may graduate from experimental status
    has now been formally documented.

perlsyn

    An ambiguity in the documentation of the ellipsis statement has
    been corrected. [perl #122661]

Diagnostics

The following additions or changes have been made to diagnostic
output, including warnings and fatal error messages. For the complete
list of diagnostic messages, see perldiag.  Changes to Existing
Diagnostics

    Bad symbol for scalar is now documented. This error is not new,
    but was not previously documented here.

    Missing right brace on \N{} is now documented. This error is not
    new, but was not previously documented here.

Testing

    The test script re/rt122747.t has been added to verify that perl
    #122747 remains fixed.

Platform Support Regained Platforms

IRIX and Tru64 platforms are working again. (Some make test failures
remain.)  Selected Bug Fixes

    AIX now sets the length in getsockopt correctly. [perl #120835],
    [cpan #91183], [cpan #85570]

    In Perl 5.20.0, $^N accidentally had the internal UTF8 flag turned
    off if accessed from a code block within a regular expression,
    effectively UTF8-encoding the value. This has been fixed. [perl
    #123135]

    Various cases where the name of a sub is used (autoload,
    overloading, error messages) used to crash for lexical subs, but
    have been fixed.

    An assertion failure when parsing sort with debugging enabled has
    been fixed. [perl #122771]

    Loading UTF8 tables during a regular expression match could cause
    assertion failures under debugging builds if the previous match
    used the very same regular expression. [perl #122747]

    Due to a mistake in the string-copying logic, copying the value of
    a state variable could instead steal the value and undefine the
    variable. This bug, introduced in Perl 5.20, would happen mostly
    for long strings (1250 chars or more), but could happen for any
    strings under builds with copy-on-write disabled. [perl #123029]

    Fixed a bug that could cause perl to execute an infinite loop
    during compilation. [perl #122995]

    On Win32, restoring in a child pseudo-process a variable that was
    local()ed in a parent pseudo-process before the fork happened
    caused memory corruption and a crash in the child pseudo-process
    (and therefore OS process). [perl #40565]

    Tainted constants evaluated at compile time no longer cause
    unrelated statements to become tainted. [perl #122669]

    Calling write on a format with a ^** field could produce a panic
    in sv_chop() if there were insufficient arguments or if the
    variable used to fill the field was empty. [perl #123245]

    In Perl 5.20.0, sort CORE::fake where 'fake' is anything other
    than a keyword started chopping of the last 6 characters and
    treating the result as a sort sub name. The previous behaviour of
    treating "CORE::fake" as a sort sub name has been restored. [perl
    #123410]

    A bug in regular expression patterns that could lead to segfaults
    and other crashes has been fixed. This occurred only in patterns
    compiled with "/i", while taking into account the current POSIX
    locale (this usually means they have to be compiled within the
    scope of "use locale"), and there must be a string of at least 128
    consecutive bytes to match. [perl #123539]

    qr/@array(?{block})/ no longer dies with "Bizarre copy of
    ARRAY". [perl #123344]

    gmtime no longer crashes with not-a-number values. [perl #123495]

    Certain syntax errors in substitutions, such as s/${<>{})//, would
    crash, and had done so since Perl 5.10. (In some cases the crash
    did not start happening until Perl 5.16.) The crash has, of
    course, been fixed. [perl #123542]

    A memory leak in some regular expressions, introduced in Perl
    5.20.1, has been fixed. [perl #123198]

    formline("@...", "a"); would crash. The FF_CHECKNL case in
    pp_formline() didn't set the pointer used to mark the chop
    position, which led to the FF_MORE case crashing with a
    segmentation fault. This has been fixed. [perl #123538] [perl
    #123622]

    A possible buffer overrun and crash when parsing a literal pattern
    during regular expression compilation has been fixed. [perl
    #123604]

Known Problems

    It is a known bug that lexical subroutines cannot be used as the
    SUBNAME argument to sort. This will be fixed in a future version
    of Perl.

Errata From Previous Releases

    A regression has been fixed that was introduced in Perl 5.20.0
    (fixed in Perl 5.20.1 as well as here) in which a UTF-8 encoded
    regular expression pattern that contains a single ASCII lowercase
    letter does not match its uppercase counterpart. [perl #122655]
2015-02-25 14:56:45 +00:00
bsiegert
61b572397b Declare MACOSX_DEPLOYMENT_TARGET for versions from 10.3 to 10.5 to fix
the build.

Patch provided by Sevan Janiyan in PR pkg/49394.
2014-11-22 15:45:41 +00:00
adam
9710448feb Perl 5.20.1 has been released, this is the latest stable version of Perl.
Changes include performance enhancements and various bug fixes.

Perl 5.20.1 represents approximately 4 months of development since Perl 5.20.0 and contains approximately 12,000 lines of changes across 170 files from 36 authors.
2014-10-01 07:17:02 +00:00
spz
22fb374174 Minimally invasive fix for CVE-2014-4330, also known as
https://www.lsexperts.de/advisories/lse-2014-06-10.txt,
a stack overflow vulnerability in Data::Dumper

Patches taken from
http://perl5.git.perl.org/perl.git/commitdiff/19be3be6968e2337bcdfe480693fff795ecd1304,
to be removed when updating to 5.20.1 (or later).

perl-5.20.0nb2 is fit for pkg_add -u replacement of perl-5.20.0nb1
2014-09-29 11:36:01 +00:00
mrg
8a99cab8a1 adjust a pattern to match 0.8 vs everything else.
fixes build on netbsd-7, which was matching "not everything else"
2014-08-12 05:41:39 +00:00
joerg
1e6bcc0d5f Don't try to extract the library search path from gcc/clang. It will
leak .buildlink into the final build and create a broken p5-gdbm.
Bump revision.
2014-06-08 23:35:55 +00:00
obache
7dc912f3fb File::Copy is used for the case link() is not usable.
Fixes installation on Haiku with BeFS.
2014-06-07 11:58:39 +00:00
obache
4f46be5a56 add include path for Haiku new directory layout 2014-06-07 11:57:34 +00:00
richard
d0ab728b88 Workaround perldtrace.h dependency problem 2014-06-04 14:24:37 +00:00
dsainty
956328013d For Perl 5.20.0, update patch to not introduce an empty if/then/else block,
which some shells prohibit.

Fixes build on Linux.
2014-06-04 00:21:33 +00:00
adam
76d367c268 Changes 5.20.0:
Experimental Subroutine signatures
subs now take a prototype attribute
More consistent prototype parsing
rand now uses a consistent random number generator
New slice syntax
Experimental Postfix Dereferencing
Unicode 6.3 now supported
New \p{Unicode} regular expression pattern property
Better 64-bit support
use locale now works on UTF-8 locales
use locale now compiles on systems without locale ability
More locale initialization fallback options
-DL runtime option now added for tracing locale setting
-F now implies -a and -a implies -n
$a and $b warnings exemption
2014-05-29 07:57:07 +00:00
richard
3f9e468dc1 Put back -fstack-protector on solaris in perl after libtool fix. 2014-05-10 13:39:57 +00:00
ryoon
25bd848e4b Fix build under SCO OpenServer 5.0.7/3.2
and add workaround for empty result of nl_langinfo(CODESET).
This workaround is needed for devel/gtexinfo.
2014-03-14 22:41:10 +00:00
richard
db2c9c493e recent versions of dtrace seem to require the actual probe objects to build 2014-01-04 15:10:05 +00:00
joerg
14d41452c2 Don't include -Wl,--whole-archive in the default LDFLAGS on NetBSD.
It breaks the build in packages when the compiler doesn't implicitly
disable it later. Bump revision.
2013-11-13 13:36:02 +00:00
jperkin
30f77313a2 Disable -fstack-protector on SunOS, it causes more trouble than its worth.
Bump PKGREVISION.
2013-11-01 14:02:37 +00:00
jperkin
31a4aee45f Ensure -lssp is added to $lddlflags on SunOS when using -fstack-protector,
fixing a number of packages with __stack_chk_* symbol failures.

Bump PKGREVISION.
2013-09-11 14:31:31 +00:00
adam
498438e3b7 Changes 5.18.1:
* B has been upgraded from 1.42 to 1.42_01, fixing bugs related to lexical subroutines.
* Digest::SHA has been upgraded from 5.84 to 5.84_01, fixing a crashing bug.
* Module::CoreList has been upgraded from 2.89 to 2.96.
* Starting in v5.18.0, a construct like /[#](?{})/x would have its # incorrectly interpreted as a comment. The code block would be skipped, unparsed. This has been corrected.
* A number of memory leaks related to the new, experimental regexp bracketed character class feature have been plugged.
* The OP allocation code now returns correctly aligned memory in all cases for struct pmop. Previously it could return memory only aligned to a 4-byte boundary, which is not correct for an ithreads build with 64 bit IVs on some 32 bit platforms. Notably, this caused the build to fail completely on sparc GNU/Linux.
* The debugger's man command been fixed. It was broken in the v5.18.0 release. The man command is aliased to the names doc and perldoc - all now work again.
* @_ is now correctly visible in the debugger, fixing a regression introduced in v5.18.0's debugger.
* Fixed a small number of regexp constructions that could either fail to match or crash perl when the string being matched against was allocated above the 2GB line on 32-bit systems.
* Perl v5.16 inadvertently introduced a bug whereby calls to XSUBs that were not visible at compile time were treated as lvalues and could be assigned to, even when the subroutine was not an lvalue sub. This has been fixed.
* Perl v5.18 inadvertently introduced a bug whereby dual-vars (i.e. variables with both string and numeric values, such as $! ) where the truthness of the variable was determined by the numeric value rather than the string value.
* Perl v5.18 inadvertently introduced a bug whereby interpolating mixed up- and down-graded UTF-8 strings in a regex could result in malformed UTF-8 in the pattern: specifically if a downgraded character in the range \x80..\xff followed a UTF-8 string
* Lexical constants (my sub a() { 42 }) no longer crash when inlined.
* Parameter prototypes attached to lexical subroutines are now respected when compiling sub calls without parentheses. Previously, the prototypes were honoured only for calls with parentheses.
* Syntax errors in lexical subroutines in combination with calls to the same subroutines no longer cause crashes at compile time.
* The dtrace sub-entry probe now works with lexical subs, instead of crashing
* Undefining an inlinable lexical subroutine (my sub foo() { 42 } undef &foo) would result in a crash if warnings were turned on.
* Deep recursion warnings no longer crash lexical subroutines.
2013-08-31 15:28:32 +00:00
christos
efb1a8c670 Update function invisibility list. This time for host releated reentrant
functions, recently introduced.
2013-08-19 12:31:11 +00:00
martin
4d9bb2a6c6 Revert previous - I am unable to fix it for real and give up. 2013-08-19 08:22:09 +00:00
martin
039357c319 Try to fix building perl on NetBSD/current - but not quite good enough,
somebody please fix the remaining fallout!
2013-08-18 19:42:30 +00:00
wiz
336127f444 Fix netbsd hints:
--whole-archive is a linker flag, not a compiler flag.
Bump PKGREVISION.

Hopefully improves p5-gettext with clang from pkgsrc.
2013-07-18 22:17:33 +00:00
adam
397d1e1d89 patch-hints_darwin.sh again 2013-07-18 07:21:02 +00:00
adam
04e0dd2d69 Don't set MACOSX_DEPLOYMENT_TARGET on Darwin 2013-07-17 20:06:05 +00:00
wiz
5861c75fc5 Add patch from upstream git to try fixing test failures on 32bit NetBSD.
From
http://perl5.git.perl.org/perl.git/commitdiff/4149c7198d9b78d861df289cce40dd865cab57e7

Bump PKGREVISION.
2013-06-17 06:54:13 +00:00
schmonz
f99e2ccefc Remove extraneous trailing parenthesis so this test can run. 2013-06-08 21:32:25 +00:00
jperkin
e0eee6cb37 Change the way we fix up $rm_try to avoid a tools directory reference.
Fixes errors seen on SmartOS with PKG_DEVELOPER=yes when the fixed file was
regenerated after the fixup, and appears to have the added benefit of removing
the warnings about out of date builds during install.
2013-06-06 14:20:14 +00:00
adam
405684b167 We are excited to announce perl v5.18.0, the first stable release of version
18 of Perl 5.

You can find a full list of changes in the file "perldelta.pod" located in
the "pod" directory inside the release and on the web.

Perl v5.18.0 represents approximately 12 months of development since Perl
v5.16.0 and contains approximately 400,000 lines of changes across 2,100
files from 113 authors.
2013-05-31 10:55:15 +00:00
obache
ab2462d96d prevent to use C++ as default linker for Cygwin. 2013-04-23 12:22:35 +00:00
adam
c2b591ea7b Changes 5.16.3:
This release contains one major and a number of minor security fixes. It fixes a possible vulnerability to a denial-of-service attack by use of a carefully-crafted set of hash keys, a segmentation fault when reading or writing strings greater than 2^31 bytes in size, and a memory leak in Encode.xs's UTF-8 encoding implementation.
2013-04-03 09:28:55 +00:00
tez
0c80b65cab add patch for CVE-2013-1667 from:
https://bugzilla.redhat.com/show_bug.cgi?id=912276
bump PKGREVISION
2013-03-08 21:28:18 +00:00
obache
740a519dc6 note upstream RT ticket url. 2013-03-04 11:56:29 +00:00
obache
6e42559d9e fixes destdir installation on Cygwin. 2013-03-03 11:02:56 +00:00
apb
d1d9db56f9 Don't be confused by '=' in output from "uname -a".
PR pkg/45814, also reported upstream at
<https://rt.perl.org/rt3/Public/Bug/Display.html?id=116523>.

Not bumping PKGREVISION because there should be no change in
the resulting package, on systems where the build was successful.
2013-01-24 18:23:51 +00:00
manu
130292ae5b Work around a NULL dereference (bug report was submitted upstream) 2013-01-17 13:29:59 +00:00
dholland
2da42d7c1f Don't hardwire /usr/pkg; use $PREFIX instead. This fixes various
problems with linking and rpaths, such as the NetBSD manifestation of
PR 47187, and probably others; I haven't tried yet but I suspect at
least my manifestation of PR 44985 will be fixed too.
2013-01-03 10:11:34 +00:00
spz
674eac27ca patch SA51498 from the git repo 2012-12-12 10:13:47 +00:00
obache
695a56de97 Add a patch for Haiku OS (missing LOG_PRIMASK).
taken from CPAN Sys-Syslog-0.30.
2012-10-16 13:21:31 +00:00
adam
01a0059a6c Changes 5.16.1:
Enhancements were made to code features such as "use", which now explicitly enables feature bundles, a more consistent "eval" operator, and a revamped "substr" function. The "__SUB__" sequence now returns a reference to the current subroutine, allowing for recursive subroutines to be written more simply. Support for Unicode 6.1 was improved. Many other minor improvements and bugfixes, along with several deprecations, were made
2012-10-03 19:59:47 +00:00
jperkin
e3e9efb4a8 Apply limited part of patch from perl bug 63604 to fix build on Solaris
with GCC 64-bit.  Tested on 32-bit too.

Fixes PR pkg/44999.
2012-06-14 16:12:11 +00:00
fhajny
5e402cff83 Backport a fix for a serious bug from upstream, where pkgsrc's CFLAGS
were being used to replace EU::CBuilder's ccflags, resulting in tests
and modules failing in specific situations (e.g. on SunOS with ABI=32).

https://rt.perl.org/rt3//Public/Bug/Display.html?id=89478

Bump PKGREVISION.
2012-02-23 13:00:23 +00:00
sbd
172718873e Merge patch-Configure into patch-ca and use lower case $prefix 2012-02-19 04:10:49 +00:00
obache
9d0cdb7c40 Fixes build on NetBSD-6.x, PR 46037.
patch provided by nonaka@.
2012-02-17 14:04:01 +00:00
hiramatsu
c4d129d643 Force ExtUtils::MakeMaker to ignore installed packlist when creating new
packlist. It prevents generating wrong PLIST during make replace.

Bump PKGREVISION.
2011-12-08 22:43:49 +00:00