NAME perldelta - what is new for perl v5.28.2 DESCRIPTION This document describes differences between the 5.28.1 release and the 5.28.2 release. If you are upgrading from an earlier release such as 5.28.0, first read perl5281delta, which describes differences between 5.28.0 and 5.28.1. Incompatible Changes Any set of digits in the Common script are legal in a script run of another script There are several sets of digits in the Common script. "[0-9]" is the most familiar. But there are also "[\x{FF10}-\x{FF19}]" (FULLWIDTH DIGIT ZERO - FULLWIDTH DIGIT NINE), and several sets for use in mathematical notation, such as the MATHEMATICAL DOUBLE-STRUCK DIGITs. Any of these sets should be able to appear in script runs of, say, Greek. But the previous design overlooked all but the ASCII digits "[0-9]", so the design was flawed. This has been fixed, so is both a bug fix and an incompatibility. All digits in a run still have to come from the same set of ten digits. Modules and Pragmata Updated Modules and Pragmata o Module::CoreList has been upgraded from version 5.20181129_28 to 5.20190419. o PerlIO::scalar has been upgraded from version 0.29 to 0.30. o Storable has been upgraded from version 3.08 to 3.08_01. Platform Support Platform-Specific Notes Windows The Windows Server 2003 SP1 Platform SDK build, with its early x64 compiler and tools, was accidentally broken in Perl 5.27.9. This has now been fixed. Mac OS X Perl's build and testing process on Mac OS X for "-Duseshrplib" builds is now compatible with Mac OS X System Integrity Protection (SIP). SIP prevents binaries in /bin (and a few other places) being passed the "DYLD_LIBRARY_PATH" environment variable. For our purposes this prevents "DYLD_LIBRARY_PATH" from being passed to the shell, which prevents that variable being passed to the testing or build process, so running "perl" couldn't find libperl.dylib. To work around that, the initial build of the perl executable expects to find libperl.dylib in the build directory, and the library path is then adjusted during installation to point to the installed library. Selected Bug Fixes o If an in-place edit is still in progress during global destruction and the process exit code (as stored in $?) is zero, perl will now treat the in-place edit as successful, replacing the input file with any output produced. This allows code like: perl -i -ne 'print "Foo"; last' to replace the input file, while code like: perl -i -ne 'print "Foo"; die' will not. o A regression in Perl 5.28 caused the following code to fail close(STDIN); open(CHILD, "|wc -l")' because the child's stdin would be closed on exec. This has now been fixed. o "pack "u", "invalid uuencoding"" now properly NUL terminates the zero-length SV produced. o Failing to compile a format now aborts compilation. Like other errors in sub-parses this could leave the parser in a strange state, possibly crashing perl if compilation continued. o See "Any set of digits in the Common script are legal in a script run of another script".
70 lines
2.4 KiB
Makefile
70 lines
2.4 KiB
Makefile
# $NetBSD: hacks.mk,v 1.23 2019/04/23 09:27:46 adam Exp $
|
|
|
|
.if !defined(PERL5_HACKS_MK)
|
|
PERL5_HACKS_MK= defined
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
### [ Fri Oct 11 10:00:00 UTC 2011 : hauke ]
|
|
###
|
|
### On m68k, gcc creates short assembler branch insns, and expects
|
|
### the assembler to adapt them to the distance. m68k gas appears not to
|
|
### do that for fpu branch insns, resulting in an out-of-range FPU
|
|
### assembler branch instruction error in "ext/re/re_exec.c".
|
|
###
|
|
### As a workaround, building with "-Os" instead of "-O2" reduces
|
|
### the size of the object file enough to allow short branches.
|
|
###
|
|
### See PR toolchain/45439.
|
|
|
|
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "m68k"
|
|
PKG_HACKS+= m68k-codegen
|
|
BUILDLINK_TRANSFORM+= opt:-O[0-9]*:-Os
|
|
.endif
|
|
|
|
### [ Wed Nov 21 11:35:48 IST 2018 : maya ]
|
|
### Alignment fault on perl 5.28.0
|
|
### Might be specific to GCC 4.9
|
|
### https://rt.perl.org/Public/Bug/Display.html?id=133495
|
|
### See PR pkg/53568
|
|
.if ${OPSYS} == "SunOS" && !empty(MACHINE_ARCH:Msparc*)
|
|
PKG_HACKS+= sun-sparc-alignment-fault
|
|
BUILDLINK_TRANSFORM+= opt:-O3:-O2
|
|
.endif
|
|
|
|
### [Fri Jan 31 11:09:04 CST 2014 : schnoebe]
|
|
### [Fri Oct 28 11:53:57 EDT 2016 : dholland - extended to gcc5]
|
|
### gcc-[45].*.* in NetBSD/alpha causes unaligned access exception in perl.
|
|
### -O works around, and there is a report that -O2 -fno-tree-ter is enough.
|
|
.if (!empty(MACHINE_PLATFORM:MNetBSD-*-alpha) || !empty(MACHINE_PLATFORM:MOpenBSD-*-alpha)) \
|
|
&& !empty(CC_VERSION:Mgcc-[45].*.*)
|
|
# XXX: is there any good way to replace the default -O2 with multiple args?
|
|
PKG_HACKS+= alpha-optimisation
|
|
#BUILDLINK_TRANSFORM+= opt:-O[2-9]*:-O2 -fno-tree-ter
|
|
CFLAGS+=-fno-tree-ter
|
|
.endif
|
|
|
|
### [Thu May 14 23:17:20 JST 2015 : ryoon]
|
|
### Force to use /usr/sfw/lib/amd64/libgcc_s.co.1 instead.
|
|
.if !empty(MACHINE_PLATFORM:MSunOS-5.10-x86_64)
|
|
. if !empty(CC_VERSION:Mgcc-3.4.3)
|
|
BUILDLINK_PASSTHRU_RPATHDIRS+= /usr/sfw/lib/amd64
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}/usr/sfw/lib/amd64
|
|
. endif
|
|
.endif
|
|
|
|
### [Thu Aug 6 14:43:56 PDT 2015 : mrg]
|
|
### On NetBSD/{mips,vax,sparc64}, the -freorder-blocks option in -O2
|
|
### causes opmini.c to be miscompiled, and perl build fails.
|
|
###
|
|
.if !empty(CC_VERSION:Mgcc-4.5.*) && ${OPSYS} == "NetBSD"
|
|
. if (${MACHINE_ARCH} == "vax" || \
|
|
${MACHINE_CPU} == "mips" || \
|
|
${MACHINE_ARCH} == "sparc" || \
|
|
${MACHINE_ARCH} == "sparc64")
|
|
PKG_HACKS+= gcc-4.5-codegen
|
|
CFLAGS+= -fno-reorder-blocks
|
|
. endif
|
|
.endif
|
|
|
|
.endif # PERL5_HACKS_MK
|