This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
6 years agoremove GCC_DIAG_IGNORE from sbox32_hash.h
Yves Orton [Sat, 14 Oct 2017 11:55:53 +0000 (13:55 +0200)]
remove GCC_DIAG_IGNORE from sbox32_hash.h

6 years agofixups for portability
Yves Orton [Sat, 14 Oct 2017 11:42:47 +0000 (13:42 +0200)]
fixups for portability

a) some platforms want #define to start at col 0
b) some compilers want to know whether fallthrough is expected or not.

6 years agoDelete unused files from ext/SDBM_File
Aaron Crane [Sat, 14 Oct 2017 10:42:20 +0000 (12:42 +0200)]
Delete unused files from ext/SDBM_File

6 years agoskip bench.t if valgrind is installed but broken
Lukas Mai [Fri, 13 Oct 2017 21:22:11 +0000 (23:22 +0200)]
skip bench.t if valgrind is installed but broken

6 years agouse standard STMT_START/STMT_END macros in STATIC_ASSERT_STMT
Lukas Mai [Fri, 13 Oct 2017 20:58:40 +0000 (22:58 +0200)]
use standard STMT_START/STMT_END macros in STATIC_ASSERT_STMT

6 years agoavoid gcc 7 warning about * in boolean context
Lukas Mai [Fri, 13 Oct 2017 20:34:25 +0000 (22:34 +0200)]
avoid gcc 7 warning about * in boolean context

6 years agoget rid of "implicit fallthrough" warnings in ext/re/re_exec.c
Lukas Mai [Fri, 13 Oct 2017 20:16:30 +0000 (22:16 +0200)]
get rid of "implicit fallthrough" warnings in ext/re/re_exec.c

6 years agoget rid of "implicit fallthrough" warnings with gcc 7
Lukas Mai [Fri, 13 Oct 2017 17:50:24 +0000 (19:50 +0200)]
get rid of "implicit fallthrough" warnings with gcc 7

6 years agoFix typo in comment about Configure modification
Dominic Hargreaves [Fri, 13 Oct 2017 14:31:03 +0000 (16:31 +0200)]
Fix typo in comment about Configure modification

6 years agoClarify policy on updates to Configure
Dominic Hargreaves [Fri, 13 Oct 2017 14:16:51 +0000 (16:16 +0200)]
Clarify policy on updates to Configure

6 years agoFurther metaconfig updates to Porting/pumpkin.pod
Dominic Hargreaves [Fri, 13 Oct 2017 13:01:32 +0000 (15:01 +0200)]
Further metaconfig updates to Porting/pumpkin.pod

6 years agoAdd Porting/mksample
Dominic Hargreaves [Fri, 13 Oct 2017 12:49:03 +0000 (14:49 +0200)]
Add Porting/mksample

This script was previously in the metaconfig repository, and also dealt
with updating Porting/Glossary, but it wasn't being regularly used.
It does not use any data from that repository, so is better placed
here.

There are some outstanding ambiguities to resolve in when this script
should be run in the documentation, since the generated files
Porting/config.sh and Porting/config_H are also updated by other
means.

6 years agoActually test for memrchr in VMS
H.Merijn Brand [Fri, 13 Oct 2017 13:01:56 +0000 (15:01 +0200)]
Actually test for memrchr in VMS

6 years agoUpdate Config-Perl-V to CPAN version 0.29
Chris 'BinGOs' Williams [Fri, 13 Oct 2017 12:25:29 +0000 (13:25 +0100)]
Update Config-Perl-V to CPAN version 0.29

  [DELTA]

0.29  - 12 Oct 2017, H.Merijn Brand
    * It's 2017
    * Add test for 5.26.1-RC1
    * Fix signature with argument
    * Ignore ccache and compiler path in signature

6 years agoFinish adding memrchr Configure probe
Dagfinn Ilmari Mannsåker [Fri, 13 Oct 2017 12:40:09 +0000 (14:40 +0200)]
Finish adding memrchr Configure probe

Commit 1e436e33 accidentally added the probe to Configure, this finishes
the job by regenerating Glossary, config_h.SH and friends.

6 years agoStrip ccache from $Config{cc}
H.Merijn Brand [Fri, 13 Oct 2017 11:56:47 +0000 (13:56 +0200)]
Strip ccache from $Config{cc}

When building with -Dcc="ccache cc", $Config{cc} would also end up with
this setting. If that perl is then distributed, no XS will be able to
build if the target machine has no ccache installed/available

With this change, the whole build of perl itself will use ccache, but
$Config{cc} will have it stripped, so all modules (lib/cpan/ext) will
not use ccache. A correct installation of ccache however does not need
$CC to include the ccache prefix, so it is essentially a setup problem
on the building host.

6 years agofix comment for upstream meta
H.Merijn Brand [Fri, 13 Oct 2017 09:25:03 +0000 (11:25 +0200)]
fix comment for upstream meta

6 years agoUpdate metaconfig related information
H.Merijn Brand [Fri, 13 Oct 2017 09:20:12 +0000 (11:20 +0200)]
Update metaconfig related information

6 years agoUpgrade Test-Simple from version 1.302100 to 1.302101
Steve Hay [Fri, 13 Oct 2017 07:18:23 +0000 (08:18 +0100)]
Upgrade Test-Simple from version 1.302100 to 1.302101

6 years agohopefully better macros for building on x86
Yves Orton [Thu, 12 Oct 2017 15:57:21 +0000 (17:57 +0200)]
hopefully better macros for building on x86

6 years agoperl no longer builds on MacOS Classic
Tom Hukins [Wed, 11 Oct 2017 19:37:02 +0000 (19:37 +0000)]
perl no longer builds on MacOS Classic

6 years agoUpgrade Test-Simple from vesion 1.302098 to 1.302100
Steve Hay [Thu, 12 Oct 2017 07:22:40 +0000 (08:22 +0100)]
Upgrade Test-Simple from vesion 1.302098 to 1.302100

6 years agoUpgrade Encode from version 2.92 to 2.93
Steve Hay [Tue, 10 Oct 2017 07:30:01 +0000 (08:30 +0100)]
Upgrade Encode from version 2.92 to 2.93

6 years agoEliminate recently introduced compilation warnings.
James E Keenan [Mon, 9 Oct 2017 11:42:02 +0000 (13:42 +0200)]
Eliminate recently introduced compilation warnings.

Warnings like the following started to appear within last 24 hours while
running 'make' on Linux/gcc and FreeBSD-10.3/clang.

op.c: In function ‘Perl_newATTRSUB_x’:
op.c:8593:28: warning: suggest parentheses around ‘&&’ within ‘||’
[-Wparentheses]
        :   IN_PERL_RUNTIME && PL_curstash != CopSTASH(PL_curcop)

6 years agoIncrease B::Xref::VERSION to 1.07
Father Chrysostomos [Mon, 9 Oct 2017 05:23:38 +0000 (22:23 -0700)]
Increase B::Xref::VERSION to 1.07

6 years agoFix B::Xref to handle sub refs
Father Chrysostomos [Mon, 9 Oct 2017 05:22:30 +0000 (22:22 -0700)]
Fix B::Xref to handle sub refs

This only applies to non-threaded builds.  Threaded builds were
already fine.

6 years agoB: Really remove unused var
Father Chrysostomos [Sun, 8 Oct 2017 22:58:01 +0000 (15:58 -0700)]
B: Really remove unused var

6a4fc5265ba102 removed the useless assignment to it, but not the
var itself.

6 years ago[Merge] [perl #129916] Allow sub-in-stash outside of main
Father Chrysostomos [Sun, 8 Oct 2017 21:54:13 +0000 (14:54 -0700)]
[Merge] [perl #129916] Allow sub-in-stash outside of main

The sub-in-stash optimization introduced in 2eaf799e only applied to
subs in the main stash, not in other stashes, due to a problem with
the logic in newATTRSUB.

This branch includes various commits to fix the issue and other prob-
lems that the fix uncovered.

6 years agoMake pp_multideref handle local $::{subref}
Father Chrysostomos [Sun, 24 Sep 2017 23:48:48 +0000 (16:48 -0700)]
Make pp_multideref handle local $::{subref}

Based on a patch by Nicholas R.

6 years ago[perl #129916] Allow sub-in-stash outside of main
Father Chrysostomos [Thu, 21 Sep 2017 14:06:05 +0000 (07:06 -0700)]
[perl #129916] Allow sub-in-stash outside of main

The sub-in-stash optimization introduced in 2eaf799e only applied to
subs in the main stash, not in other stashes, due to a problem with
the logic in newATTRSUB.

This comment:

   Also, we may be called from load_module at run time, so
   PL_curstash (which sets CvSTASH) may not point to the stash the
   sub is stored in.

explains why we need the PL_curstash != CopSTASH(PL_curcop) check.
(Perl_load_module will fail without it.) But that logic does not work
properly at compile time (when PL_curcop == &PL_compiling).

The value of CopSTASH(&PL_compiling) is never actually used.  It is
always set to the main stash.  So if we check that PL_curstash !=
CopSTASH(PL_curcop) and forego the optimization in that case, we will
never optimize subs outside of the main stash.

What we really need is to check IN_PERL_RUNTIME && PL_curstash !=
opSTASH(PL_curcop).  I.e., forego the optimization at run time if the
stashes differ.  That is what this commit implements.

One observable side effect of this change is that deleting a stash
element no longer anonymizes the CV if the CV had no GV that it was
depending on to provide its name.  Since the main thing in such situa-
tions is that we do not get a crash, I think this change (arguably an
improvement) is acceptable.)

-----------

A bit of explanation of various other changes:

gv.c:require_tie_mod needed a bit of help, since it could not handle
sub refs in stashes.

To keep localisation of stash elements working the same way,
local($Stash::{foo}) now upgrades a coderef to a full GV before the
localisation.  (Changes in two pp*.c files and in scope.c:save_gp.)

t/op/stash.t contains a test that makes sure that perl does not crash
when a GV with a CV pointing to it gets deleted.  This commit tweaks
the test so that it continues to test that.  (There has to be a GV for
the test to test what it is meant to test.)

Similarly with t/uni/caller.t and t/uni/stash.t.

op.c:rv2cv_op_cv with the _MAYBE_NAME_GV flag was returning the cal-
ling GV in those cases where a GV-less sub is called via a GV.  E.g.,
*main = \&Foo::foo; main().  This meant that errors like ‘Not enough
arguments’ were giving the wrong sub name.

newATTRSUB was not calling mro_method_changed_in when storing a
sub as an RV.

gv_init needs to arrange for the new GV to have the file and line num-
ber corresponding to the sub in it.  These are taken from CvSTART,
which may be off by a few lines, but is the closest we have to the
place the sub was declared.

6 years agoIncrease $B::Deparse::VERSION to 1.43
Father Chrysostomos [Sun, 24 Sep 2017 21:15:01 +0000 (14:15 -0700)]
Increase $B::Deparse::VERSION to 1.43

6 years agoDeparse: Better constant-dumping heuristics
Father Chrysostomos [Sun, 24 Sep 2017 21:14:00 +0000 (14:14 -0700)]
Deparse: Better constant-dumping heuristics

Constants created via sub foo () { 1 } are stored in the stash as
simple scalar references, under the CV-in-stash optimisation.  That
optimisation currently only applies to the main package, but will
shortly be extended to other packages.  This means B::Deparse’s
heuristics for dumping the constants needs to be improved, to avoid
dumping B::Deparse’s own constants for every program.

The heuristic I am using (since CvFILE is not present on a scalar ref)
is to record whether other subroutines in the same package as the con-
stant are being dumped by virtue of having CvFILE pointing to a file
that is being dumped.  This assumption is that constants and subroutines
in the same package are likely to be in the same file.

6 years agoProvisional version bump for NEXT.pm
Father Chrysostomos [Mon, 11 Sep 2017 04:51:50 +0000 (21:51 -0700)]
Provisional version bump for NEXT.pm

A patch ha- been submitted upstream already, so hopefully this version
number will be short-lived.

6 years agoIncrease B::Concise::VERSION to 1.002
Father Chrysostomos [Mon, 11 Sep 2017 04:49:14 +0000 (21:49 -0700)]
Increase B::Concise::VERSION to 1.002

6 years agoMake B::Concise handle subrefs in stashes
Father Chrysostomos [Mon, 11 Sep 2017 04:46:41 +0000 (21:46 -0700)]
Make B::Concise handle subrefs in stashes

The concise_stashref sub, for dumping all subroutines in a package,
would assign the value of a stash element to *s, and then use *s
to access the code ref in it.  If you do *s = *foo and then later
*s = \&bar, then you have assigned \&bar to *foo{CODE}, and even
a localisation of *s beforehand will not help.  That is exactly
what B::Concise was doing when dumping a package with some subref
elements.

6 years ago[rt.cpan.org #123002] Fix NEXT.pm to work with GLOB stubs
Father Chrysostomos [Sun, 10 Sep 2017 20:59:47 +0000 (13:59 -0700)]
[rt.cpan.org #123002] Fix NEXT.pm to work with GLOB stubs

I need this in order to fix perl bug #129916.

6 years agoAdd isGV_or_RVCV macro
Father Chrysostomos [Sun, 3 Sep 2017 18:12:11 +0000 (11:12 -0700)]
Add isGV_or_RVCV macro

This will be useful for a few code paths that need to treat a sub
ref in a stash the same way as a GV.

6 years agoLet Deparse.t be run from the top-level
Father Chrysostomos [Sun, 17 Sep 2017 18:18:15 +0000 (11:18 -0700)]
Let Deparse.t be run from the top-level

It used to work before 851f7bb3.  It is helpful when debugging tests
to be able to run ‘./perl -Ilib lib/B/Deparse.t’ without chdir-
ring around.

6 years agoUnbreak gv_fetchmeth_sv
Father Chrysostomos [Sun, 17 Sep 2017 18:10:11 +0000 (11:10 -0700)]
Unbreak gv_fetchmeth_sv

Commit v5.21.6-383-gc290e18 stopped gv_fetchmeth_sv from working cor-
rectly when fetching a constant with a utf8 name, because it no longer
passed the utf8 flag to the underlying functions.

That utf8 flag gets passed to gv_init when upgrading a glob proxy
(such as a constant) into a real glob.

6 years agoIncrease $B::VERSION to 1.70
Father Chrysostomos [Mon, 11 Sep 2017 05:13:48 +0000 (22:13 -0700)]
Increase $B::VERSION to 1.70

6 years agoB.pm: Remove unused var
Father Chrysostomos [Mon, 11 Sep 2017 05:12:50 +0000 (22:12 -0700)]
B.pm: Remove unused var

This variable stopped being used in perl-5.005_02-1108-g8bac7e0 but
continued to exist until now.

6 years agoDon’t assign PL_curstash twice in init_main_stash
Father Chrysostomos [Mon, 28 Aug 2017 19:52:10 +0000 (12:52 -0700)]
Don’t assign PL_curstash twice in init_main_stash

This commit:

commit 8990e3071044a96302560bbdb5706f3e74cf1bef
Author: Larry Wall <larry@netlabs.com>
Date:   Fri Mar 18 00:00:00 1994 +0000

    perl 5.0 alpha 6

added ‘curstash = defstash’ to perl.c:init_main_stash, which already
had such an assignment a few lines above.  So it is redundant, and
always has been.

6 years agoSet PL_curstname in pp_ctl.c:doeval
Father Chrysostomos [Mon, 28 Aug 2017 19:40:58 +0000 (12:40 -0700)]
Set PL_curstname in pp_ctl.c:doeval

Otherwise we get the wrong name in sub error and warning messages:

$ ./miniperl -we 'package bar { sub bar { eval q"sub foo ([)" } } bar::bar'
Missing ']' in prototype for main::foo : [ at (eval 1) line 1.

(PL_curstname is probably used for other things too.  I didn’t check.)

I can arbitrarily set the package name in the warning to what-
ever I want:

$ ./miniperl -we 'package bar { sub bar { eval q"sub foo ([)" } } package fwipm; BEGIN { bar::bar }'
Missing ']' in prototype for fwipm::foo : [ at (eval 1) line 1.

6 years agoMove PERL_INTERNAL_RAND_SEED set-up after init_stacks().
Craig A. Berry [Sat, 7 Oct 2017 18:31:29 +0000 (13:31 -0500)]
Move PERL_INTERNAL_RAND_SEED set-up after init_stacks().

This code may be calling things that put SVs on the stack, so
we should have a stack before doing so.  That risk might be
theoretical on most platforms, but on VMS, the getenv
implementation mortalizes an SV when doing lookups.  This meant
that on a DEBUGGING build with PERL_DESTRUCT_LEVEL set, any code
or no code at all would warn like so:

  $ perl -e ";"
  Attempt to free temp prematurely: SV 0x845718 during global destruction.
  Scalars leaked: 1

Getting the stack initialized first fixes that.

6 years agoUpdate Test-Simple to CPAN version 1.302098
Chris 'BinGOs' Williams [Thu, 5 Oct 2017 12:35:08 +0000 (13:35 +0100)]
Update Test-Simple to CPAN version 1.302098

  [DELTA]

1.302098  2017-10-03 06:13:49-07:00 America/Los_Angeles

    - Add docs for test2_stdout and test2_stderr
    - Fix 5.6 support

6 years agoUpdate Digest-SHA to CPAN version 5.98
Chris 'BinGOs' Williams [Thu, 5 Oct 2017 12:32:45 +0000 (13:32 +0100)]
Update Digest-SHA to CPAN version 5.98

  [DELTA]

5.98  Wed Oct  4 00:40:02 MST 2017
  - removed "portable" mode from shasum and addfile
    -- rarely used, mostly in outdated systems
    -- potentially confusing features (e.g. \r\r\n -> \n)
    -- Universal Newlines mode (-U) a much cleaner approach
      -- mimics Universal Newlines in Python
  - shasum now uses Digest::SHA explicitly
    -- no longer loads Digest::SHA::PurePerl as an option
      -- hence no need for -R switch
    -- Digest::SHA::PurePerl has its own shasum: shasumpp

6 years agoperldelta for 0cbfaef69bb7
Tony Cook [Wed, 4 Oct 2017 22:39:17 +0000 (09:39 +1100)]
perldelta for 0cbfaef69bb7

6 years agopp_require: return earlier when module is already loaded
Nicolas R [Tue, 26 Sep 2017 23:07:47 +0000 (18:07 -0500)]
pp_require: return earlier when module is already loaded

6 years agoNote that vutil.c is customized in blead
Steve Hay [Wed, 4 Oct 2017 12:55:19 +0000 (13:55 +0100)]
Note that vutil.c is customized in blead

This was done by 7394beb140 but didn't make it into the last version
upgrade (0.9918).

6 years agoFix mapping of Filter-Util-Call/filter-util.pl
Steve Hay [Wed, 4 Oct 2017 12:40:10 +0000 (13:40 +0100)]
Fix mapping of Filter-Util-Call/filter-util.pl

and note that t/z_manifest.t is excluded.

6 years agoNote Devel-PPPort/parts/embed.fnc is customized in blead
Steve Hay [Wed, 4 Oct 2017 12:33:06 +0000 (13:33 +0100)]
Note Devel-PPPort/parts/embed.fnc is customized in blead

6 years agoChange BadMETA.yml EOLs to match CPAN distro's version
Steve Hay [Wed, 4 Oct 2017 12:30:41 +0000 (13:30 +0100)]
Change BadMETA.yml EOLs to match CPAN distro's version

6 years agoNote perlfaq/lib/perlfaq[58].pod are customized in blead
Steve Hay [Wed, 4 Oct 2017 12:24:58 +0000 (13:24 +0100)]
Note perlfaq/lib/perlfaq[58].pod are customized in blead

6 years agoNote pod/perlpodstyle.pod is customized in blead
Steve Hay [Wed, 4 Oct 2017 12:20:10 +0000 (13:20 +0100)]
Note pod/perlpodstyle.pod is customized in blead

6 years agoNote Net-Ping/t/510_ping_udp.t is also customized in blead
Steve Hay [Wed, 4 Oct 2017 12:19:11 +0000 (13:19 +0100)]
Note Net-Ping/t/510_ping_udp.t is also customized in blead

6 years agoRegen customized.dat
Steve Hay [Wed, 4 Oct 2017 12:14:27 +0000 (13:14 +0100)]
Regen customized.dat

6 years agoPod-Simple-3.35 is KHW, not MARCGREEN
Steve Hay [Wed, 4 Oct 2017 12:13:39 +0000 (13:13 +0100)]
Pod-Simple-3.35 is KHW, not MARCGREEN

6 years agosync-with-cpan: curl support
Father Chrysostomos [Sun, 24 Sep 2017 21:05:56 +0000 (14:05 -0700)]
sync-with-cpan: curl support

6 years agoPorting/sync-with-cpan: 5.12 compatibility
Father Chrysostomos [Sun, 24 Sep 2017 20:27:18 +0000 (13:27 -0700)]
Porting/sync-with-cpan: 5.12 compatibility

So I can type simply ‘Porting/sync-with-cpan Test::Simple’ and run
it with the system perl.

6 years agoUpgrade Test-Simple from version 1.302096 to 1.302097
Steve Hay [Tue, 3 Oct 2017 07:12:02 +0000 (08:12 +0100)]
Upgrade Test-Simple from version 1.302096 to 1.302097

6 years agoUpgrade Test-Simple from version 1.302073 to 1.302096
Steve Hay [Mon, 2 Oct 2017 13:03:48 +0000 (14:03 +0100)]
Upgrade Test-Simple from version 1.302073 to 1.302096

(includes regen/lib_cleanup.pl)

6 years agofix some thinkos in the new hash code
Yves Orton [Mon, 2 Oct 2017 13:00:58 +0000 (15:00 +0200)]
fix some thinkos in the new hash code

pointed out by Tux on irc. I dont think this will solve
all his problems, but it is a first step....

6 years agoAdd tests for 'p' and 'x' commands without subsequent whitespace.
James E Keenan [Sun, 3 Sep 2017 02:28:20 +0000 (22:28 -0400)]
Add tests for 'p' and 'x' commands without subsequent whitespace.

Tests pass on perl-5.16.3 but should fail (until source code is corrected) on
subsequent versions.

For: RT #120174

6 years agoDebugger cmds not requiring spaces
Smylers [Wed, 6 Sep 2017 11:32:09 +0000 (12:32 +0100)]
Debugger cmds not requiring spaces

Make debugger commands like these work again, not requiring a space
between a single-letter command and a following argument which starts with
punctuation:

  p$^V
  x@ARGV
  x\@ARGV
  x\%INC

Regressions were in d478d7a0 and 8f144dfc.

6 years agoRemove outdated references to 'swap'.
James E Keenan [Thu, 8 Jun 2017 12:19:53 +0000 (08:19 -0400)]
Remove outdated references to 'swap'.

Per: RT # 131532

6 years agoRevert "Revert "Fallbacks for Perl_fp_class_denorm().""
Sawyer X [Thu, 28 Sep 2017 20:34:39 +0000 (22:34 +0200)]
Revert "Revert "Fallbacks for Perl_fp_class_denorm().""

This reverts commit 2749d0395cc1e21d69af38cde41490699fc6e3ab.

The original commit:

    commit e77299d3416e7e737523afdc0642734205e46d59
    Author: Jarkko Hietaniemi <jhi@iki.fi>
    Date:   Mon May 29 09:28:30 2017 +0300

        Fallbacks for Perl_fp_class_denorm().

        These may be needed if the compiler doesn't expose the C99 math
        without some special switches.

This provides a fix for CentOS 5.

6 years agoDocument that POSIX::localtime needs explicit argument.
James E Keenan [Tue, 26 Sep 2017 12:52:15 +0000 (08:52 -0400)]
Document that POSIX::localtime needs explicit argument.

For: RT #132145

6 years agoUpdate File-Fetch to CPAN version 0.54
Chris 'BinGOs' Williams [Mon, 25 Sep 2017 08:54:23 +0000 (09:54 +0100)]
Update File-Fetch to CPAN version 0.54

  [DELTA]

0.54        Sun Sep 24 19:46:04 2017

* Switch test URL from www.cpan.org to httpbin.org

6 years agoMore than twist in my sobriety
Chris 'BinGOs' Williams [Sat, 23 Sep 2017 09:03:43 +0000 (10:03 +0100)]
More than twist in my sobriety

6 years agoTick off 5.24.3 and 5.26.1
Steve Hay [Fri, 22 Sep 2017 22:42:13 +0000 (23:42 +0100)]
Tick off 5.24.3 and 5.26.1

6 years agoAdd perldeltas for 5.24.3 and 5.26.1
Steve Hay [Fri, 22 Sep 2017 22:40:38 +0000 (23:40 +0100)]
Add perldeltas for 5.24.3 and 5.26.1

6 years agoImport Module::CoreList data for 5.24.3 and 5.26.1
Steve Hay [Fri, 22 Sep 2017 22:28:01 +0000 (23:28 +0100)]
Import Module::CoreList data for 5.24.3 and 5.26.1

6 years agoEpigraphs for 5.24.3 and 5.26.1
Steve Hay [Fri, 22 Sep 2017 21:49:24 +0000 (22:49 +0100)]
Epigraphs for 5.24.3 and 5.26.1

6 years ago5.24.3 and 5.26.1 today
Steve Hay [Fri, 22 Sep 2017 19:50:51 +0000 (20:50 +0100)]
5.24.3 and 5.26.1 today

6 years agoTwo-space indent for 5.27.4's epigraph
Steve Hay [Fri, 22 Sep 2017 18:30:07 +0000 (19:30 +0100)]
Two-space indent for 5.27.4's epigraph

and really correct release date for 5.27.3

6 years agoWe already have version-0.9918
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 12:31:43 +0000 (13:31 +0100)]
We already have version-0.9918

6 years agoUpdate Math-BigInt-FastCalc to CPAN version 0.5006
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 11:55:42 +0000 (12:55 +0100)]
Update Math-BigInt-FastCalc to CPAN version 0.5006

  [DELTA]

2017-01-11 v0.5006 pjacklam

 * Fix syntax for required version of Math::BigInt::Lib.

 * Better checking of POD coverage.

 * Sync test files with Math-BigInt-1.999808.

6 years agoUpdate Math-BigInt to CPAN version 1.999811
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 11:52:34 +0000 (12:52 +0100)]
Update Math-BigInt to CPAN version 1.999811

  [DELTA]

2017-03-15 v1.999811 pjacklam

 * Fix an old in the Math::BigFloat methods as_hex(), as_oct(), and as_bin()
   methods resulting in loss of accuracy. This bug was introduced in bug in
   Math-BigInt-1.76. Due to a naive copy and paste by me, and lack of tests,
   this bug was also present in the newer to_hex(), to_oct(), and to_bin()
   methods. This shows the bug, as it did not print "0xffff...":

       print Math::BigFloat -> from_hex("f" x 30) -> as_hex();

 * Fix incorrect formatting in the output from the Math::BigFloat methods
   to_hex(), to_oct(), and to_bin() when the output was zero. A prefix was
   added when it shouldn't have been.

 * Add tests to bigintpm.inc and bigfltpm.inc for better testing of as_hex(),
   as_oct(), and as_bin() as well as to_hex(), to_oct(), and to_bin().

 * "Synchronize" tests and code formatting in bigintpm.inc and bigfltpm.inc.

2017-03-01 v1.999810 pjacklam

 * CPAN RT #120240 revealed that the problems with undefined values is still
   present. After a close examination, I believe the only way to get this
   really working is to to make blog() call objectify() differently depending
   on whether the base for the logarithm is undefined or not. That way we can
   avoid objectify() converting the undefined value to a zero. Ideally, we
   should warn about undefined values when used in any other context, but we'll
   handle that in a later release. See also the related changelog entry for
   v1.999801.

 * Fix the way the argument count is computed in objectify(). When an argument
   count of 0 is given, it means that we should objectify all input arguments.
   However, it turned out that the actual argument count was computed
   incorrectly.

 * Fix CPAN RT #120242 rearding c3 method resolution.

2017-02-10 v1.999809 pjacklam

 * When a new method is added to Math::BigInt or Math::BigFloat, and this new
   method requires a new backend library method, die with a suitable error
   message if the installed backend library does not support this new method.
   The error message says that the method requires a newer version of the
   backend library.

 * Fix typos in Math::BigFloat and Math::BigInt.

 * Add bfib() and blucas() to Math::BigInt. They return Fibonacci and Lucas
   numbers, respectively. The actual computation of the numbers is done by the
   backend library. Documented both methods in POD. Add test files bfib-mbi.t
   and blucas-mbi.t.

 * Add _fib() and _lucas() to Math::BigInt::Lib. They return Fibonacci and
   Lucas numbers, respectively. Document both methods in POD. Add test files
   author-lib-arithmetic-unary-_fib.t and author-lib-arithmetic-unary-_lucas.t.

2017-01-11 v1.999808 pjacklam

 * In Math::BigInt and Math::BigFloat, add methods bdfac() for double
   factorial. Add tests for this method.

 * In Math::BigInt and Math::BigFloat, add methods to_hex(), to_oct(), and
   to_bin() for hexadecimal, octal, and binary string output without prefix.
   Even for Math::BigFloat there is still only support for integer output. Add
   tests for these methods.

 * Add test for as_oct() corresponding to the old tests for as_hex() and
   as_bin().

 * In Math::BigInt::Lib, add method _dfac() for double factorial. Add
   corresponding tests.

 * In Math::BigInt::Lib, fix bug in overloaded "int".

 * In Math::BigInt::Lib, implement much faster versions of _from_hex(),
   _from_oct(), and _from_bin().

 * In Makefile.PL, improve the wording in the message displayed if some of
   the installed backend libraries are not a subclass of Math::BigInt::Lib (and
   hence will not provide

 * Fix minor bugs in some of the author library test files (t/author-lib*.t).

 * Allow leading and trailing whitespace in the input to from_hex(),
   from_oct(), and from_bin().  Add tests to verify. This is a regressions
   (CPAN RT #119805).

2016-12-23 v1.999807 pjacklam

 * Add a message to Makefile.PL recommending upgrade if old libraries are
   installed. This message is more or less equivalent to the one appearing in
   Math-BigInt up until v1.997.

 * Improve the documentation (POD) in Math::BigInt::Lib.

 * Speed up _sqrt() and _root() in Math::BigInt::Lib.

 * Remove checking for exception cases (cases that would return +Inf, -Inf, or
   NaN) in Math::BigInt::Lib. It has been documented for a long time that such
   checking should be done by the caller.

 * Add library methods _to_bin(), _to_oct(), _to_hex(), which are equivalent to
   the _as_bin(), _as_oct(), and _as_hex() methods respectively, except that
   the _to_*() methods don't use a prefix in the output. This removes the need
   for the frequent removal of the various prefixes. Now each _as_*() method
   calls the equivalent _to_*() method, adds a prefix, and returns the output.
   The _to_*() methods are faster than the equivalent _as_*() methods were.

 * Add author test files for the methods _to_bin(), _to_oct(), and _to_hex().

 * Add library method _to_bytes(). The method _as_bytes() would have been
   called _to_bytes() if I had thought of it earlier. The method _as_bytes() is
   now just an alias to _to_bytes(). The _to_bytes() method also fixes a bug
   that was present in the _as_bytes() method. (CPAN RT #119346).

 * Add author test files for the method _to_bytes().

 * Add more tests for library methods _inc() and _dec(). When trying to bring
   the Math::BigInt::BitVect library back to life I realized that the test
   suite didn't catch certain errors in _inc() and _dec().

 * Die if trying to use as_bytes() or from_bytes() with a backend library that
   doesn't support the corresponding library methods.

 * Correct minor errors in the output messages in the test files.

 * Improve/correct various comments in the source code.

 * More diagnostic output is displayed by the author test files if the
   AUTHOR_DEBUGGING environment variable is set.

6 years agoUpdate Locale-Codes to CPAN version 3.54
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 11:43:50 +0000 (12:43 +0100)]
Update Locale-Codes to CPAN version 3.54

  [DELTA]

VERSION 3.54 (2017-09-01; sbeck)

NEW CODE(s)

VERSION 3.53 (2017-07-25; sbeck)

NEW CODE(s)

Fixed the default error condition in legacy modules.

    With the addition of the OO module, better error handling was added (and it was on by default). The non-OO (legacy) modules did not report errors, so code that uses them, would now behave differently if invalid data were passed in.

    I have turned off error handling by default in the legacy modules. The show_errors method was added to each of the non-OO modules to report errors if desired.

    Reported by dmaestro on GitHub.

6 years agoUpdate EUCB version from CPAN
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 11:41:19 +0000 (12:41 +0100)]
Update EUCB version from CPAN

6 years agoUpdate Time-HiRes to CPAN version 1.9746
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 10:15:28 +0000 (11:15 +0100)]
Update Time-HiRes to CPAN version 1.9746

  [DELTA]

1.9746 [2017-08-17]
 - Unreliable t/usleep.t and t/utime.t tests [rt.cpan.org #122819]
   Avoid testing for $dt = $t2 - $t1 and assuming $dt is less than
   some value since a heavily loaded machine can delay the $t2.
   Testing for greater than is fine.
 - Tweak the configuring messages about subsecond stat/utime.

1.9745 [2017-08-14]
  - Properly check for futimens/utimensat actually doing something.
    This should handle 'gnukfreebsd' (which has only stubs, so far
    we have been skipping the test) and as a new thing 'gnu' (Hurd)
    (also only stubs).  Thanks to Nigel Horne.
  - Scan in t/utime.t whether the filesystem (wherever File::Temp
    puts it tempfiles) supports subsecond timestamps.  This removes
    the fragile Linux/ext3 specific hack.  As a side effect, the
    setting of subsecond timestamps is tested only if reading of
    them is supported.  Thanks to Carsten Gaebler for the test idea,
    and Ryan Voots for testing.

1.9744 [2017-07-27]
  - add more potential clock constants, like CLOCK_MONOTONIC_FAST
    (available in FreeBSD), and not all potentially found clock
    constants were properly exported to be available from Perl,
    see your system's clock_gettime() documentation for the available ones

1.9743 [2017-07-20]
  - correct declared minimum Perl version (should be 5.6, was declared
    as 5.8 since 1.9727_03): blead af94b3ac
  - fix the fix for 'do file' to load hints in Makefile.PL: blead 3172fdbc

6 years agoUpdate Time-Piece to CPAN version 1.3202
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 10:13:52 +0000 (11:13 +0100)]
Update Time-Piece to CPAN version 1.3202

  [DELTA]

1.3202  2017-09-13
        - Fix AIX compile

6 years agoUpdate Scalar-List-Utils to CPAN version 1.49
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 10:10:18 +0000 (11:10 +0100)]
Update Scalar-List-Utils to CPAN version 1.49

  [DELTA]

1.49 -- 2017-09-08 12:25:54
  [CHANGES]
   * Fixes for unit tests to pass on perl 5.6.2
   * Fix typo in documentation

6 years agoUpdate File-Path to CPAN version 2.15
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 10:08:35 +0000 (11:08 +0100)]
Update File-Path to CPAN version 2.15

  [DELTA]

2.15 2017-07-29
    - Correct documentation error re possible arguments for rmtree().

6 years agoUpdate Digest-SHA to CPAN version 5.97
Chris 'BinGOs' Williams [Fri, 22 Sep 2017 10:05:46 +0000 (11:05 +0100)]
Update Digest-SHA to CPAN version 5.97

[DELTA]

5.97  Wed Sep  6 02:23:02 MST 2017
  - added 'quiet' option to shasum
    -- thanks to Chris David for suggestion and initial patch
    -- ref. rt.cpan.org #122750
  - expanded shasum --help message
    -- to explain use of escaped FILE names

6 years agoAdd CvGvNAME_HEK helper
Nicolas R [Mon, 18 Sep 2017 20:37:48 +0000 (14:37 -0600)]
Add CvGvNAME_HEK helper

CvGvNAME_HEK can be used instead of the boilerplate:
CvNAMED(sv) ? CvNAME_HEK((CV *)sv) : GvNAME_HEK(CvGV(sv))

This is also saving an extra CvNAMED check from CvNAME_HEK.

6 years agoWhat a show, there they go smokin' up the sky, yeah.
Chris 'BinGOs' Williams [Thu, 21 Sep 2017 08:47:55 +0000 (09:47 +0100)]
What a show, there they go smokin' up the sky, yeah.

6 years agoChange save/restore behavior for comparisons
jpl [Mon, 28 Aug 2017 13:54:15 +0000 (09:54 -0400)]
Change save/restore behavior for comparisons

S_mergesortsv was saving the current comparison routine only when the
SORTf_DESC flag was set, but "restoring" it when ANY flag was set.
When some flag other than SORTf_DESC was set, this could lead to
the pointer to the comparison routine being set to NULL,
triggering a segfault when the routine was subsequently invoked.

6 years ago(perl #127663) skip the new in-place edit tests if File::Spec not loadable
Tony Cook [Thu, 21 Sep 2017 00:35:25 +0000 (10:35 +1000)]
(perl #127663) skip the new in-place edit tests if File::Spec not loadable

I expected File::Spec to be loadable at this point, since PathTools is
in buildcustomize.pl, but that isn't loaded in minitest, so it failed.

The new tests in-place edit tests are now conditional on File::Spec
loading.

6 years agoBump perl version to 5.27.5, including Module::CoreList bits
John SJ Anderson [Wed, 20 Sep 2017 22:27:28 +0000 (15:27 -0700)]
Bump perl version to 5.27.5, including Module::CoreList bits

6 years agoNew perldelta for 5.27.5
John SJ Anderson [Wed, 20 Sep 2017 22:16:51 +0000 (15:16 -0700)]
New perldelta for 5.27.5

6 years agoPorting/release_schedule.pod: Record release of 5.27.4
John SJ Anderson [Wed, 20 Sep 2017 22:07:30 +0000 (15:07 -0700)]
Porting/release_schedule.pod: Record release of 5.27.4

6 years agoPorting/epigraphs.pod: correct release date for 5.27.3
John SJ Anderson [Wed, 20 Sep 2017 22:03:50 +0000 (15:03 -0700)]
Porting/epigraphs.pod: correct release date for 5.27.3

6 years agoEpigraph for 5.27.4
John SJ Anderson [Wed, 20 Sep 2017 22:03:28 +0000 (15:03 -0700)]
Epigraph for 5.27.4

6 years agoMerge branch 'release-5.27.4' into blead
John SJ Anderson [Wed, 20 Sep 2017 21:59:39 +0000 (14:59 -0700)]
Merge branch 'release-5.27.4' into blead

6 years agoRevert "test - Do not run test output at compilation time" v5.27.4
John SJ Anderson [Wed, 20 Sep 2017 19:54:16 +0000 (12:54 -0700)]
Revert "test - Do not run test output at compilation time"

This reverts commit d190dde9b72a7c306622389007b0dba86901ce52.

Changes in this commit broken `make minitest`, as discovered during
the 5.27.4 release process.

6 years agoadd new release to perlhist
John SJ Anderson [Wed, 20 Sep 2017 18:11:39 +0000 (11:11 -0700)]
add new release to perlhist

6 years agoFinalize perldelta for 5.27.4
John SJ Anderson [Wed, 20 Sep 2017 17:58:00 +0000 (10:58 -0700)]
Finalize perldelta for 5.27.4

6 years agoUpdate Module::CoreList for 5.27.4
John SJ Anderson [Wed, 20 Sep 2017 13:53:25 +0000 (06:53 -0700)]
Update Module::CoreList for 5.27.4

6 years agoprevent pod/builttoc spewing bad UTF-8 errors under PERL_UNICODE
Tony Cook [Wed, 20 Sep 2017 03:44:59 +0000 (13:44 +1000)]
prevent pod/builttoc spewing bad UTF-8 errors under PERL_UNICODE