platform/upstream/perl.git
10 years agoloc_tools.pl: FIx to work on Android
Karl Williamson [Thu, 23 Jan 2014 17:52:38 +0000 (10:52 -0700)]
loc_tools.pl: FIx to work on Android

Thanks to Brian Fraser for finding this and suggesting the kernel of
the patch.

The code to try to handle platforms without the POSIX module didn't work
properly.  This code had just been moved, unchanged, here from
lib/locale.t; it never got executed previously due to a skip_all.

This patch also makes sure minitest doesn't fail, and adds some comments

10 years agolocale.c: Silence Win32 compiler warning.
Karl Williamson [Wed, 22 Jan 2014 05:17:20 +0000 (22:17 -0700)]
locale.c: Silence Win32 compiler warning.

This compiler is not smart enough to realize that overflow of a byte
can't occur here as the loop stops at 255.

10 years agoConfigure: add missing ; to checkccflags
Brian Fraser [Thu, 23 Jan 2014 17:52:39 +0000 (18:52 +0100)]
Configure: add missing ; to checkccflags

10 years agohandy.h: Move the _LC_CAST declaration.
Brian Fraser [Thu, 23 Jan 2014 14:57:50 +0000 (15:57 +0100)]
handy.h: Move the _LC_CAST declaration.

Previous it was left so that some systems, like Android, didn't get this,
which broke the build.

10 years agotime64.h: On QNX, use const for tm_zone
Brian Fraser [Fri, 11 Oct 2013 22:30:56 +0000 (19:30 -0300)]
time64.h: On QNX, use const for tm_zone

http://www.qnx.com/developers/docs/6.3.0SP3/neutrino/lib_ref/t/tm.html

10 years agotime64.h: Declare tm_zone as const under Android, but not if using C++
Brian Fraser [Sat, 18 May 2013 02:20:07 +0000 (23:20 -0300)]
time64.h: Declare tm_zone as const under Android, but not if using C++

https://android.googlesource.com/platform/bionic.git/+/master/libc/include/time.h

10 years agoMerge branch 'cross-compile-revamp' into blead
Brian Fraser [Thu, 23 Jan 2014 01:46:07 +0000 (22:46 -0300)]
Merge branch 'cross-compile-revamp' into blead

This branch modifies how the cross-compilation model works.

The main change is that we now build a host miniperl to use locally,
rather than running each call to miniperl remotely.

It also removes several of the exceptions from the old model (no xlib,
xconfig.h, or Cross.pm).

10 years agoUpdate IPC-Cmd to CPAN version 0.92
Chris 'BinGOs' Williams [Wed, 22 Jan 2014 20:28:25 +0000 (20:28 +0000)]
Update IPC-Cmd to CPAN version 0.92

  [DELTA]

0.92 Wed Jan 22 19:57:27 GMT 2014

  Test fixes:
  * Use File::Temp in run_forked tests (hugmeir)

10 years agot/op/magic.t: Use three-arg open to avooid creating a subshell
Brian Fraser [Wed, 22 Jan 2014 17:23:51 +0000 (14:23 -0300)]
t/op/magic.t: Use three-arg open to avooid creating a subshell

10 years agoAdd Darwin shared libraries (dylib) to gitignore
Brian Fraser [Wed, 22 Jan 2014 14:20:59 +0000 (11:20 -0300)]
Add Darwin shared libraries (dylib) to gitignore

10 years agoext/DynaLoader/t/DynaLoader.t: Skip the dl_findfile test when cross-compiling
Brian Fraser [Thu, 10 Oct 2013 23:59:56 +0000 (20:59 -0300)]
ext/DynaLoader/t/DynaLoader.t: Skip the dl_findfile test when cross-compiling

10 years agoMoved a glob test from t/run/fresh_perl.t to t/op/glob.t
Brian Fraser [Tue, 1 Oct 2013 13:35:41 +0000 (10:35 -0300)]
Moved a glob test from t/run/fresh_perl.t to t/op/glob.t

This was done because, currently, the test fails when cross-compiling
perl, but run/fresh_perl.t can't use Config to check if we're cross-
compiling.

10 years agodist/ExtUtils-Install: Skip tests if make is not available
Brian Fraser [Sun, 19 May 2013 07:46:30 +0000 (04:46 -0300)]
dist/ExtUtils-Install: Skip tests if make is not available

10 years agolib/ExtUtils/t/Embed.t: Skip tests is cross-compiling and $Config{cc} is not available
Brian Fraser [Sun, 19 May 2013 07:44:07 +0000 (04:44 -0300)]
lib/ExtUtils/t/Embed.t: Skip tests is cross-compiling and $Config{cc} is not available

10 years agot/lib/warnings/pp_sys: Add skips in case telldir is not available
Brian Fraser [Wed, 24 Apr 2013 22:01:04 +0000 (19:01 -0300)]
t/lib/warnings/pp_sys: Add skips in case telldir is not available

10 years agoperllexwarn: Fit verbatim lines in 79 columns
Karl Williamson [Wed, 22 Jan 2014 18:40:52 +0000 (11:40 -0700)]
perllexwarn: Fit verbatim lines in 79 columns

10 years agoperllocale: Nits, corrections
Karl Williamson [Wed, 22 Jan 2014 17:52:21 +0000 (10:52 -0700)]
perllocale: Nits, corrections

This corrects some formatting nits and grammatical errors, with some
clarifications and corrections to the existing text, and adds coverage
of some previously undocumented functionality.

10 years agoperl.c: Add missing ref count decrement
Karl Williamson [Tue, 21 Jan 2014 23:59:39 +0000 (16:59 -0700)]
perl.c: Add missing ref count decrement

This could have led to a leak.

10 years agolocale.c: White-space only
Karl Williamson [Tue, 21 Jan 2014 23:51:56 +0000 (16:51 -0700)]
locale.c: White-space only

This indents because the previous commit added a block

10 years agolocale.c: Find utf8-8 locales reliably on C99 platforms
Karl Williamson [Tue, 21 Jan 2014 23:25:42 +0000 (16:25 -0700)]
locale.c: Find utf8-8 locales reliably on C99 platforms

locale.c has a function that tries to determine if the current POSIX
locale is a UTF-8 locale.  Prior to this patch, it used nl_langinfo() to
determine this, falling back to heuristics if that is unavailable on the
platform.  nl_langinfo()  is part of POSIX.1-2001.  -This patch adds the
use of two functions from C99, mbtowc() and MB_CUR_MAX,  that also give
reliable results.

10 years agot/loc_tools.pl: Add some locale finding for Win32
Karl Williamson [Tue, 21 Jan 2014 23:01:48 +0000 (16:01 -0700)]
t/loc_tools.pl: Add some locale finding for Win32

This is based on the documentation in
http://msdn.microsoft.com/en-us/library/hzz3tw78.aspx
and linked-to pages.

We try out new locale combinations to see if they are found.

10 years agoMove more common locale finding code into t/loc_tools.pl
Karl Williamson [Mon, 20 Jan 2014 19:58:46 +0000 (12:58 -0700)]
Move more common locale finding code into t/loc_tools.pl

As a result of some code meant to do the same thing being in two
different places, one got updated, and one didn't.  So t/run/locale.t
was being skipped for Win32, even though the bug there it was avoiding
has been fixed in XP.

10 years agot/run/locale.t: Use common code for finding locales
Karl Williamson [Mon, 20 Jan 2014 19:10:59 +0000 (12:10 -0700)]
t/run/locale.t: Use common code for finding locales

Instead of using its own ungeneral code for finding the available
locales on the system, use the new common, and more general, code.

This means this test will now run on more systems, where it currently is
skipped

10 years agot/loc_tools.pl: Extract out finding locales from locale.t
Karl Williamson [Mon, 20 Jan 2014 18:38:44 +0000 (11:38 -0700)]
t/loc_tools.pl: Extract out finding locales from locale.t

Several different test files need to find the locales on the system, and
each currently has rolled its own methods to do that.  This commit
creates a new file t/loc_tools.pl which is designed to be a common
place for these tools.

lib/locale.t did the most thorough job of finding locales, so
t/loc_tools.pl is built upon what it had, which is now deleted from
locale.t.

The code in t/loc_tools.pl was copied from lib/locale.t with white space
changes and changes to make this be a subroutine, and helper functions
renamed to begin with an underscore, and changing the hard-coded list to
be in a DATA section so it doesn't have to be actually used unless
necessary.

10 years agolib/locale.t: Remove no longer needed SKIPS
Karl Williamson [Mon, 20 Jan 2014 18:08:32 +0000 (11:08 -0700)]
lib/locale.t: Remove no longer needed SKIPS

locale.t has changed so if tests in some locales fail, it still passes,
provided that most locales work.  Thus this code whose effect was to
know about some broken locales and SKIP them, is no longer needed.

10 years agoreg_posixcc.t: Improve test names
Karl Williamson [Sun, 19 Jan 2014 04:41:31 +0000 (21:41 -0700)]
reg_posixcc.t: Improve test names

The test names dated to before feature unicode_strings, and were
misleading.

10 years agoregcomp.c: Extract out code into a separate function
Karl Williamson [Fri, 17 Jan 2014 01:21:54 +0000 (18:21 -0700)]
regcomp.c: Extract out code into a separate function

This is in preparation for it to be called from a 2nd place.

10 years agoperlunicode: Wrap some lines
Karl Williamson [Thu, 16 Jan 2014 19:48:39 +0000 (12:48 -0700)]
perlunicode: Wrap some lines

This is to make source readable in 79 column window

10 years agoregcomp.c: Simplify expression
Karl Williamson [Tue, 14 Jan 2014 19:47:53 +0000 (12:47 -0700)]
regcomp.c: Simplify expression

The previous commit has allowed us to remove the separate test for LOC,
and to replace the one for FOLD by ANYOF_LOC_FOLD.  The flags being
tested here can't be true unless LOC is also true, so testing for it is
superfluous.

10 years agoregcomp.c: Move some code to earlier
Karl Williamson [Tue, 14 Jan 2014 19:44:03 +0000 (12:44 -0700)]
regcomp.c: Move some code to earlier

This code isn't affect by and doesn't affect things between where it is
being moved to and where it is now.  Moving it will allow simplification
of an expression and also is needed in future commits

10 years agoAdd some cBOOL casts to macros
Karl Williamson [Tue, 14 Jan 2014 17:31:09 +0000 (10:31 -0700)]
Add some cBOOL casts to macros

I kept getting burned by these macros returning non-zero instead of a
boolean, as they are used as bool parameters to functions.  So I added
cBOOLs to them.

10 years agoperlapi: Tighten strictures against using undocumented things
Karl Williamson [Tue, 14 Jan 2014 17:14:53 +0000 (10:14 -0700)]
perlapi: Tighten strictures against using undocumented things

We didn't actually say that undocumented global variables and macros are
off-limits.

10 years agoComments, white-space
Karl Williamson [Tue, 14 Jan 2014 16:45:49 +0000 (09:45 -0700)]
Comments, white-space

This adds and modifies various comments in several files, rewrapping
some comments to occupy fewer lines but not exceed 79 columns.  And
fixes some indentation and other white space issues.  It includes
removing trailing white space in lines in regcomp.c.  I didn't think it
was worth making a commit for each file.

10 years agoregcomp.c: Don't output empty debugging text
Karl Williamson [Tue, 14 Jan 2014 16:32:34 +0000 (09:32 -0700)]
regcomp.c: Don't output empty debugging text

This code labels the information that is to follow, and was output even
if that information was empty, so it was confusing.  Now output only
when we know that there will be non-empty information to follow

10 years agoregcomp.c: request inlining of single line function
Karl Williamson [Tue, 14 Jan 2014 16:29:58 +0000 (09:29 -0700)]
regcomp.c: request inlining of single line function

10 years agoPanic if regex making a trie under /li
Karl Williamson [Tue, 14 Jan 2014 16:23:39 +0000 (09:23 -0700)]
Panic if regex making a trie under /li

It does not make sense to try to make a trie using data that is not
determinable at runtime.  So don't pretend to try.

10 years agoRename regex internal flag bit
Karl Williamson [Mon, 13 Jan 2014 19:13:18 +0000 (12:13 -0700)]
Rename regex internal flag bit

This is a clearer name; is used internally only in regcomp.c and
regexec.c

10 years agoUse bit instead of node for regex SSC
Karl Williamson [Mon, 13 Jan 2014 06:39:43 +0000 (23:39 -0700)]
Use bit instead of node for regex SSC

The flag bits in regular expression ANYOF nodes are perennially in short
supply.  However there are still plenty of regex nodes possible.  So one
solution to needing to pass more information is to create a node that
encapsulates what is needed.  That is what commit
9aa1e39f96ac28f6ce5d814d9a1eccf1464aba4a did to tell regexec.c that a
particular ANYOF node is for the synthetic start class (SSC).  However
this solution introduces other issues.  If you have to express two
things, then you need a regnode for A, a regnode for B, a regnode for
both A and B, and another regnode for both not A nor B;  With three
things, you need 8 regnodes to express all possible combinations.  This
becomes unwieldy to write code for.  The number of combinations goes way
down if some of them are mutually exclusive.  At the time of that
commit, I thought that a SSC need not ever warn if matching against an
above-Unicode code point.  I was wrong, and that has been corrected
earlier in the 5.19 series.

But it finally came to me how to tell regexec that an ANYOF node is
for the SSC without taking up a flag bit and without requiring a regnode
type.  The 'next_off' field in a regnode tells the engine the offeset in
the regex program to the node it's supposed to go to after processing
this one.  Since the SSC stands alone, its 'next_off' field is unused,
and we can put anything we want in it.  That, however, is not true of
other ANYOF regnodes.  But it turns out that there are certain values
that will never be legitimate in the 'next_off' field in these, and so
this commit uses one of those to signal that this ANYOF field is an SSC.
regnodes come in various sizes, and the offset is in terms of how many
of the smallest ones are there to the next node to look at.  Since ANYOF
nodes are large, the offset is always > 1, and so this commit uses 1 to
indicate an SSC.

10 years agohandy.h: Express locale macros using common base macros
Karl Williamson [Thu, 9 Jan 2014 06:10:06 +0000 (23:10 -0700)]
handy.h: Express locale macros using common base macros

This extracts out the code of looking up POSIX classes in locales to use
base macros common to all of them.  It does this for the NeXT only code
as well as the typical compilations.

This is in preparation for changing the behavior.  Certain things look
weird as they are aligned, etc as part of that preparation.

10 years agohandy.h: Factor out common code
Karl Williamson [Thu, 9 Jan 2014 06:02:38 +0000 (23:02 -0700)]
handy.h: Factor out common code

It turns out that the definitions for isASCII_LC and is_BLANK_LC end up
being the same for all three possible #if platform states, so can just
have them once instead of three times.

It is unlikely that the
    && ! defined(USE_NEXT_CTYPE)
is necessary, because HAS_ISASCII likely won't be defined, but this
makes sure that this doesn't change the previous behavior.

10 years agohandy.h: White-space, comments, pod nit only
Karl Williamson [Thu, 9 Jan 2014 05:59:31 +0000 (22:59 -0700)]
handy.h: White-space, comments, pod nit only

10 years agopp_hot.c: Rmv unnecessary test
Karl Williamson [Thu, 9 Jan 2014 22:29:17 +0000 (15:29 -0700)]
pp_hot.c: Rmv unnecessary test

The strchr() cannot not succeed unless the first test fails, so the
first test need not be tried at all.

10 years agoGlossary entries for host{perl,generate,osname}
Brian Fraser [Wed, 22 Jan 2014 17:01:06 +0000 (14:01 -0300)]
Glossary entries for host{perl,generate,osname}

10 years agoperldelta for the new cross-compilation model
Brian Fraser [Wed, 22 Jan 2014 16:48:46 +0000 (13:48 -0300)]
perldelta for the new cross-compilation model

10 years agoConfigure, Makefile.SH: Allow running generate_uudmap in the target
Brian Fraser [Thu, 16 Jan 2014 10:20:28 +0000 (07:20 -0300)]
Configure, Makefile.SH: Allow running generate_uudmap in the target

This is a bit of a step backwards, but we want to run this in
the target platform when cross-compiling to some unusual setups,
like ASCII -> EBCDIC.

What this branch introduces is a third "path" for generate_uudmap:

 * If we are doing a native build, just build it as usual and run it.
 * If we're cross-compiling, and either -Dhostgenerate was specified OR
   if it was left empty, which is the default case, then create
   a host generate_uudmap and run it locally
 * Finally, if are cross-compiling and were built with -Uhostgenerate,
   then build generate_uudmap for the target and run it there, bringing
   back the resulting headers.

10 years agoConfigure: Minor improvements to the building on the host miniperl
Brian Fraser [Sun, 29 Dec 2013 05:11:32 +0000 (02:11 -0300)]
Configure: Minor improvements to the building on the host miniperl

10 years agoConfigure: When cross-compiling, save the $^O of the host
Brian Fraser [Sun, 29 Dec 2013 05:10:41 +0000 (02:10 -0300)]
Configure: When cross-compiling, save the $^O of the host

10 years agoConfigure: Silence $to warnings when cross-compiling
Brian Fraser [Sat, 16 Nov 2013 00:34:19 +0000 (21:34 -0300)]
Configure: Silence $to warnings when cross-compiling

10 years agoConfigure, run-ssh: No need to use ./\$exe
Brian Fraser [Fri, 15 Nov 2013 06:28:08 +0000 (03:28 -0300)]
Configure, run-ssh: No need to use ./\$exe

Previous, if run-ssh was passed ./TEST, it would've ended up running
././TEST in the target system.  Similarly, if you passed 'uname',
it would've tried running ./uname, which would've failed
spectacularly.

This commit changes run-ssh so that it won't add the extra './';
this means that shell builtins can be run in the target system.
While this is not generally portable, it's useful in specific
situations, such as in the hints files.

10 years agoUpdate the WinCE files to the new cross model
Brian Fraser [Wed, 11 Dec 2013 05:22:13 +0000 (02:22 -0300)]
Update the WinCE files to the new cross model

10 years agoconfigpm: Remove remnants of the old cross model
Brian Fraser [Wed, 18 Dec 2013 13:28:42 +0000 (10:28 -0300)]
configpm: Remove remnants of the old cross model

10 years agoRemove old cross-compilation model
Brian Fraser [Tue, 12 Nov 2013 04:54:48 +0000 (01:54 -0300)]
Remove old cross-compilation model

10 years agomake_ext.pl: Phase out the use of Cross.pm
Brian Fraser [Wed, 13 Nov 2013 03:02:41 +0000 (00:02 -0300)]
make_ext.pl: Phase out the use of Cross.pm

In the old cross-compilation model, lib/ for the target would
end up in xlib/; What Cross.pm did back then was change @INC
around a bit to have miniperl point to xlib; Additionally, it
was used to identify cross-compilation builds, and in make_ext.pl
to detect whenever a Makefile was from the host's build.

There is no longer any need for the first, and the second is now
a simple check for $Config{usecrosscompile}, it's still
possible for the hosts' Makefiles to be there, particularly
if the host was not compiled elsewhere using -Dmksymlinks,
like in Windows when targetting WinCE.

This commit changes make_ext.pl for cross-compiling builds
to only delete Makefiles when their CC != $Config{cc}.

10 years agoMakefile.SH: Remove remnants of the old cross-compilation model
Brian Fraser [Wed, 13 Nov 2013 05:47:14 +0000 (02:47 -0300)]
Makefile.SH: Remove remnants of the old cross-compilation model

10 years agoNo xconfig.h is produced when cross-compiling, we have a normal config.h
Jess Robinson [Sat, 29 Dec 2012 21:31:05 +0000 (21:31 +0000)]
No xconfig.h is produced when cross-compiling, we have a normal config.h

10 years agoMake sure to remove the Cross/mkdir script on *clean
Jess Robinson [Mon, 29 Apr 2013 08:54:07 +0000 (09:54 +0100)]
Make sure to remove the Cross/mkdir script on *clean

10 years agoGitignore files which are created/used while cross-compiling
Jess Robinson [Fri, 19 Apr 2013 13:52:01 +0000 (14:52 +0100)]
Gitignore files which are created/used while cross-compiling

10 years agoMakefile.SH: on make test_prep, add $target/lib:$target/lib/auto to -env LD_LIBRARY_P...
Brian Fraser [Wed, 24 Apr 2013 18:14:14 +0000 (15:14 -0300)]
Makefile.SH: on make test_prep, add $target/lib:$target/lib/auto to -env LD_LIBRARY_PATH=...

10 years agoMakefile.SH: 'make test' for cross-compilation builds.
Jess Robinson [Thu, 31 Jan 2013 14:12:31 +0000 (14:12 +0000)]
Makefile.SH: 'make test' for cross-compilation builds.

Along with the previous commit, this enables us to run 'make test'
on the host and have the tests run on the target. We do this by
calling ./Cross/run ./TEST with -cwd $targetdir/t, and setting its
LD_LIBRARY_PATH to $targetdir, so that libperl.so is found.

10 years agoMakefile.SH: When cross-compiling, copy the files needed by make test.
Jess Robinson [Thu, 31 Jan 2013 14:12:31 +0000 (14:12 +0000)]
Makefile.SH: When cross-compiling, copy the files needed by make test.

This is groundwork to enable us to do this:

    $ make
    $ make test

on the host, and have the test suite be run on the target.

Currently this list of files is hand-maintained.

10 years agoConfigure: Teach run-ssh to handle -env
Brian Fraser [Fri, 11 Oct 2013 16:22:17 +0000 (13:22 -0300)]
Configure: Teach run-ssh to handle -env

10 years agoConfigure: Pass the -r flag to scp when cross-compiling
Brian Fraser [Fri, 9 Aug 2013 05:56:18 +0000 (02:56 -0300)]
Configure: Pass the -r flag to scp when cross-compiling

10 years agoUse HOST_PERL instead of built perl for perl installation
Jess Robinson [Fri, 18 Jan 2013 15:54:51 +0000 (15:54 +0000)]
Use HOST_PERL instead of built perl for perl installation

HOST_PERL is often set while cross compiling, so we can run the
install from the host machine.

10 years agoUse the system perl for RUN_PERL, if we are cross compiling, and we found one.
Jess Robinson [Fri, 18 Jan 2013 15:46:10 +0000 (15:46 +0000)]
Use the system perl for RUN_PERL, if we are cross compiling, and we found one.

Note we can only substitute the system perl for scripts that do not require Config
as it complains about non-matching Perl versions.

10 years agoMakefile.SH: Updated the lib/buildcustomize.pl rule for cross-compilation builds
Brian Fraser [Wed, 13 Nov 2013 05:48:59 +0000 (02:48 -0300)]
Makefile.SH: Updated the lib/buildcustomize.pl rule for cross-compilation builds

10 years agowrite_buildcustomize.pl: Setup $^O to be the target os when building Core.
Jess Robinson [Sat, 29 Dec 2012 21:32:30 +0000 (21:32 +0000)]
write_buildcustomize.pl: Setup $^O to be the target os when building Core.

This allows the correct hints files to be loaded when building modules
We do this by giving write_buildcustomize.pl a 'osname' parameter.

This means that write_buildcustomize.pl no longer depends on
Config to get osname, which eliminates a circular dependency
in the Makefiles.

10 years agoconfigpm should use "osname" from config.sh, instead of miniperl's $^O.
Jess Robinson [Tue, 15 Jan 2013 10:40:08 +0000 (10:40 +0000)]
configpm should use "osname" from config.sh, instead of miniperl's $^O.

This is necessary when cross-compiliing, as we use a host (mini)perl to
run configpm for the target arch; so for example, miniperl's $^O
might be 'linux', but config.sh's osname can be 'qnx'.

10 years agoRun all the miniperl calls locally, not via RUN
Jess Robinson [Wed, 9 Jan 2013 10:43:42 +0000 (10:43 +0000)]
Run all the miniperl calls locally, not via RUN

10 years agoBuild host miniperl and generate_uudmap binaries when cross compiling, for local use
Jess Robinson [Fri, 4 Jan 2013 10:47:48 +0000 (10:47 +0000)]
Build host miniperl and generate_uudmap binaries when cross compiling, for local use

10 years agoStop using Config{run} to check the version of (mini)perl we are running
Jess Robinson [Wed, 2 Jan 2013 14:55:59 +0000 (14:55 +0000)]
Stop using Config{run} to check the version of (mini)perl we are running

10 years agoStop using $run for anything other than testing compiled tests in Configure.
Jess Robinson [Sat, 29 Dec 2012 21:29:50 +0000 (21:29 +0000)]
Stop using $run for anything other than testing compiled tests in Configure.

When cross-compiling we want to run miniperl etc on the compile host, not the test target

10 years agoUpdate AUTHORS and MANIFEST to appease test_porting
Jess Robinson [Thu, 17 Jan 2013 11:45:13 +0000 (11:45 +0000)]
Update AUTHORS and MANIFEST to appease test_porting

10 years agofix the ability to use targethost when defined.
Neil Williams [Sat, 12 Jan 2013 13:23:00 +0000 (13:23 +0000)]
fix the ability to use targethost when defined.

10 years agoadd an escape for when targethost is not defined but usecrosscompile is.
Neil Williams [Fri, 11 Jan 2013 17:01:22 +0000 (17:01 +0000)]
add an escape for when targethost is not defined but usecrosscompile is.

See http://www.nntp.perl.org/group/perl.perl5.porters/2012/12/msg196443.html
"Cross-building and Makefile.SH", which explains the reasoning for this.

10 years agoConfigure: Set to/from/run scripts if targethost is passed
Jess Robinson [Sat, 29 Dec 2012 21:23:01 +0000 (21:23 +0000)]
Configure: Set to/from/run scripts if targethost is passed

Do this regardless of whether we are cross compiling

10 years agoConfigure: Split the usecrosscompile section from the to/from/run section
Jess Robinson [Sat, 29 Dec 2012 21:23:01 +0000 (21:23 +0000)]
Configure: Split the usecrosscompile section from the to/from/run section

Beyond organization, this also makes sure that usecrosscompile is
always set to undef if we're not cross-compiling, which enables
code to realibly use $Config{usecrosscompile} to check for a
cross-compiling perl.

10 years agorestore missed commit in regeneration (spotted by hugmeir)
H.Merijn Brand [Wed, 22 Jan 2014 13:29:06 +0000 (14:29 +0100)]
restore missed commit in regeneration (spotted by hugmeir)

10 years agoRegenerate from meta after backporting crosscompile changes
H.Merijn Brand [Wed, 22 Jan 2014 11:28:57 +0000 (12:28 +0100)]
Regenerate from meta after backporting crosscompile changes

I am sure there are items that could have been processed even cleaner,
but with the current state, the content is functional equal.

10 years agoperldelta for c91312d5e, none needed for e214621be
Tony Cook [Wed, 22 Jan 2014 05:41:22 +0000 (16:41 +1100)]
perldelta for c91312d5e, none needed for e214621be

10 years ago[perl #120977] use warnings "FATAL" implies "all"
Tony Cook [Wed, 22 Jan 2014 05:33:17 +0000 (16:33 +1100)]
[perl #120977] use warnings "FATAL" implies "all"

10 years ago[perl #120977] bump $warnings::VERSION
Tony Cook [Wed, 22 Jan 2014 05:31:49 +0000 (16:31 +1100)]
[perl #120977] bump $warnings::VERSION

10 years agoassume "all" in "use warnings 'FATAL';" and related
Hauke D [Sun, 12 Jan 2014 23:50:51 +0000 (00:50 +0100)]
assume "all" in "use warnings 'FATAL';" and related

Until now, the behavior of the statements

 use warnings "FATAL";
 use warnings "NONFATAL";
 no warnings "FATAL";

was unspecified and inconsistent. This change causes them to be handled
with an implied "all" at the end of the import list.

Tony Cook: fix AUTHORS formatting

10 years agoadd a missing word in perllexwarn
Hauke D [Sun, 12 Jan 2014 23:46:03 +0000 (00:46 +0100)]
add a missing word in perllexwarn

10 years agoPerlIO_tmpfile: Don't leak an SV
Brian Fraser [Wed, 22 Jan 2014 01:46:10 +0000 (22:46 -0300)]
PerlIO_tmpfile: Don't leak an SV

This was spotted by Daniel Dragan on the thread for #120591

10 years agoperlio.c, PerlIO_tmpfile: Fall back to cwd if we have no /tmp or $TMPDIR
Brian Fraser [Wed, 22 Jan 2014 01:45:17 +0000 (22:45 -0300)]
perlio.c, PerlIO_tmpfile: Fall back to cwd if we have no /tmp or $TMPDIR

With this, open($fh, undef) will now work on systems without
a /tmp (or equivalent) where TMPDIR is not set.

10 years agosv.c, Perl_dirp_dup: Skip the fchdir sections if telldir and seekdir are not defined
Brian Fraser [Sat, 18 May 2013 02:13:55 +0000 (23:13 -0300)]
sv.c, Perl_dirp_dup: Skip the fchdir sections if telldir and seekdir are not defined

10 years agoUpdate Scalar-List-Utils to CPAN version 1.37
Chris 'BinGOs' Williams [Tue, 21 Jan 2014 14:57:36 +0000 (14:57 +0000)]
Update Scalar-List-Utils to CPAN version 1.37

  [DELTA]

1.37 -- 2014/01/21 14:44:34
   [BUGFIXES]
   * Fix unweaken() for perls < 5.14; need to use sv_setsv() to undef
     rather than sv_clear() (RT92226)

10 years agoversion and Module-CoreList are up to date with CPAN
Chris 'BinGOs' Williams [Tue, 21 Jan 2014 14:56:42 +0000 (14:56 +0000)]
version and Module-CoreList are up to date with CPAN

10 years agodocument $^P's 0x800 and 0x1000
Ricardo Signes [Mon, 20 Jan 2014 23:40:16 +0000 (18:40 -0500)]
document $^P's 0x800 and 0x1000

these were introduced in c30d8139e

10 years agocreate new perldelta for 5.19.9
Ricardo Signes [Mon, 20 Jan 2014 22:36:17 +0000 (17:36 -0500)]
create new perldelta for 5.19.9

10 years agoadd the 5.19.8 epigraph
Ricardo Signes [Mon, 20 Jan 2014 22:31:27 +0000 (17:31 -0500)]
add the 5.19.8 epigraph

10 years agofix an epigraph typo
Ricardo Signes [Mon, 20 Jan 2014 22:16:35 +0000 (17:16 -0500)]
fix an epigraph typo

His name is Milo Minderbinder.

He is twenty-seven years old.

10 years agobump version to 5.19.9!
Ricardo Signes [Mon, 20 Jan 2014 22:02:44 +0000 (17:02 -0500)]
bump version to 5.19.9!

10 years agoMerge tag 'v5.19.8' into blead
Ricardo Signes [Mon, 20 Jan 2014 22:01:18 +0000 (17:01 -0500)]
Merge tag 'v5.19.8' into blead

Ninth release of the v5.19 series!

10 years agoperldelta: add the 5.19.8 acknowledgements
Ricardo Signes [Mon, 20 Jan 2014 20:54:04 +0000 (15:54 -0500)]
perldelta: add the 5.19.8 acknowledgements

10 years agorename sTHX to PERL_MEMORY_DEBUG_HEADER_SIZE
David Mitchell [Mon, 20 Jan 2014 14:24:02 +0000 (14:24 +0000)]
rename sTHX to PERL_MEMORY_DEBUG_HEADER_SIZE

Originally this macro evaluated to the size of the THX pointer;
this was used with the memory pool facility to store the context of the
caller of the malloc() for debugging. Later, the header of the malloc()
stored more than just the context, so sTHX became a mismoner.

Rename it to something less misleading.

10 years agoPrevent V-magic from being stripped by locale fix
John Peacock [Fri, 17 Jan 2014 19:43:34 +0000 (14:43 -0500)]
Prevent V-magic from being stripped by locale fix

version/t/00impl-pp.t was failing with locales

See thread beginning
    <20140113132518.GA11721@iabyn.com>

10 years agoperlhist: note that 5.19.8 should be released today
Ricardo Signes [Mon, 20 Jan 2014 12:52:37 +0000 (07:52 -0500)]
perlhist: note that 5.19.8 should be released today

10 years agothrreads::shared: LEAVE in BOOT had wrong context
David Mitchell [Mon, 20 Jan 2014 12:03:15 +0000 (12:03 +0000)]
thrreads::shared: LEAVE in BOOT had wrong context

In Perl_sharedsv_init() - which is called from the threads::shared BOOT
code - it creates a new shared interpreter, then tries to undo the ENTER
done as the last step of the perl_construct(PL_sharedsv_space) step, with
a LEAVE. But the LEAVE was being done in the context of the caller
interpreter rather than the shared one.

See the thread beginning <52D528FE.20701@havurah-software.org>

10 years ago[perl #121031] fix all of the other incorrect calls to fresh_perl_is()
Tony Cook [Mon, 20 Jan 2014 01:06:47 +0000 (12:06 +1100)]
[perl #121031] fix all of the other incorrect calls to fresh_perl_is()

The third argument to fresh_perl_is()/fresh_perl_like() is treated as
a hashref, passing a string is kind of strange.