This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
10 years agosegfault on &Internals::* due to missing SvROK()
Ævar Arnfjörð Bjarmason [Sat, 11 Sep 2010 09:58:02 +0000 (09:58 +0000)]
segfault on &Internals::* due to missing SvROK()

Change the &Internals::* functions that use references in their
prototypes to check if the argument is SvROK() before calling SvRV().

If the function is called as Internals::FOO() perl does this check for
us, but prototypes are bypassed on &Internals::FOO() so we still have
to check this manually.

This fixes [perl #77776], this bug was present in 5.10.x, 5.12.x, and
probably all earlier perl versions that had these functions, but I
haven't tested that.

I'm adding a new test file (t/lib/universal.t) to test universal.c
functions as part of this patch. The testing for Internal::* in t/ was
and is very sparse, but before universal.t there was no obvious place
to put these tests.

Signed-off-by: Ævar Arnfjörð Bjarmason <avar@cpan.org>
10 years agofix MAD breakage caused by qw patch
Zefram [Sat, 11 Sep 2010 10:37:04 +0000 (11:37 +0100)]
fix MAD breakage caused by qw patch

ea25a9b2cf73948b1e8c5675de027e0ad13277bd broke MAD due to incorrect
usage of the token-forcing mechanism.

10 years agodocumentation on hooking the peephole optimiser
Zefram [Fri, 10 Sep 2010 19:36:01 +0000 (20:36 +0100)]
documentation on hooking the peephole optimiser

Signed-off-by: Florian Ragwitz <rafl@debian.org>
[rafl@debian.org: Changed tabs to spaces in perlguts chunks for consistency]

10 years agoMention the warnings changes in "updated modules"
Florian Ragwitz [Fri, 10 Sep 2010 19:07:31 +0000 (21:07 +0200)]
Mention the warnings changes in "updated modules"

neither warnings nor warnings::register are new. Also mention the version
changes.

10 years agoBump $warnings{,::register}::VERSION
Florian Ragwitz [Fri, 10 Sep 2010 19:03:14 +0000 (21:03 +0200)]
Bump $warnings{,::register}::VERSION

10 years agoUpdate warnings.pl with the ::register changes
Florian Ragwitz [Fri, 10 Sep 2010 18:09:27 +0000 (20:09 +0200)]
Update warnings.pl with the ::register changes

Also regenerate lib/warnings.pm from that.

10 years agoperldelta for warnings updates
Ricardo Signes [Fri, 10 Sep 2010 15:11:14 +0000 (11:11 -0400)]
perldelta for warnings updates

10 years agoimprove registration of warning categories
Ricardo Signes [Wed, 8 Sep 2010 20:40:26 +0000 (16:40 -0400)]
improve registration of warning categories

1. &warnings::register is added as the public mechanism for adding
   new warning categories, rather than warnings::register::import
   knowing about warnings's internals

2. warnings::register::import is updated to use &warnings::register

3. warnings::register::import can take a list of subcategories

The upshot is that you can now write:

  package MyTool;
  use warnings::register qw(io typos);

  warnings::warnif('MyTool::io', $message);

...and tools that register new warnings categories do not need to cargo cult
code from warnings/register.pm

10 years agoConvert Math::BigInt tests from Test to Test::More.
Nicholas Clark [Fri, 10 Sep 2010 13:33:47 +0000 (14:33 +0100)]
Convert Math::BigInt tests from Test to Test::More.

10 years agoRemove obsolete core test directory boilerplate from Math::BigInt.
Nicholas Clark [Fri, 10 Sep 2010 10:59:09 +0000 (11:59 +0100)]
Remove obsolete core test directory boilerplate from Math::BigInt.

This was only needed for testing in the core, when the core's tests all ran
the top level t/ directory. Without this getting in the way, we don't need
t/TEST and t/harness to run the tests with absolute paths in @INC. Testing in
the CPAN distribution is unaffected.

10 years agoConvert bignum tests from Test to Test::More.
Nicholas Clark [Fri, 10 Sep 2010 09:59:00 +0000 (10:59 +0100)]
Convert bignum tests from Test to Test::More.

10 years agoRemove redundant lexicals from 3 bignum tests that require t/infnan.inc.
Nicholas Clark [Fri, 10 Sep 2010 09:03:36 +0000 (10:03 +0100)]
Remove redundant lexicals from 3 bignum tests that require t/infnan.inc.

10 years agoRemove obsolete core test directory boilerplate from bignum.
Nicholas Clark [Fri, 10 Sep 2010 08:41:46 +0000 (09:41 +0100)]
Remove obsolete core test directory boilerplate from bignum.

This was only needed for testing in the core, when the core's tests all ran in
the top level t/ directory. Without this getting in the way, we don't need
t/TEST and t/harness to run the tests with absolute paths in @INC. Testing in
the CPAN distribution is unaffected.

10 years agoFill in new Data::Dumper version in perldelta
Steffen Mueller [Fri, 10 Sep 2010 07:15:05 +0000 (09:15 +0200)]
Fill in new Data::Dumper version in perldelta

10 years agoUpgrade Data::Dumper to 2.128
Steffen Mueller [Fri, 10 Sep 2010 07:14:48 +0000 (09:14 +0200)]
Upgrade Data::Dumper to 2.128

10 years agoperldelta up to 95544aa
Florian Ragwitz [Fri, 10 Sep 2010 07:06:24 +0000 (09:06 +0200)]
perldelta up to 95544aa

10 years agoMath-BigInt 1.92
Florian Ragwitz [Fri, 10 Sep 2010 06:19:16 +0000 (08:19 +0200)]
Math-BigInt 1.92

The 1.91 upload to CPAN was broken, so we have to bump $VERSION again.

10 years agoMath-BigInt 1.91
Florian Ragwitz [Fri, 10 Sep 2010 05:58:33 +0000 (07:58 +0200)]
Math-BigInt 1.91

10 years agoFix copy/paste documentation error
Florian Ragwitz [Fri, 10 Sep 2010 05:34:36 +0000 (07:34 +0200)]
Fix copy/paste documentation error

10 years agobacmp() ignores its argument's sign
Florian Ragwitz [Fri, 10 Sep 2010 05:25:54 +0000 (07:25 +0200)]
bacmp() ignores its argument's sign

10 years agoLowest common multiple, not multiplicator
Florian Ragwitz [Fri, 10 Sep 2010 05:25:24 +0000 (07:25 +0200)]
Lowest common multiple, not multiplicator

10 years agoFix a couple of Math-BigInt POD nits
Florian Ragwitz [Fri, 10 Sep 2010 04:51:14 +0000 (06:51 +0200)]
Fix a couple of Math-BigInt POD nits

Closes CPANRT#51824.

10 years agoRemove qw(...) as parentheses deprecated warnings
Paul Johnson [Thu, 9 Sep 2010 16:39:17 +0000 (18:39 +0200)]
Remove qw(...) as parentheses deprecated warnings

10 years agois_pos means > 0, not >= 0
Florian Ragwitz [Fri, 10 Sep 2010 03:42:43 +0000 (05:42 +0200)]
is_pos means > 0, not >= 0

Closes CPANRT#61204.

10 years agoMath-BigInt runs fine under PERL_CORE now
Florian Ragwitz [Fri, 10 Sep 2010 03:39:08 +0000 (05:39 +0200)]
Math-BigInt runs fine under PERL_CORE now

10 years agoadd support for SAVEt_GVSV to Perl_ss_dup
David Mitchell [Thu, 9 Sep 2010 18:57:06 +0000 (19:57 +0100)]
add support for SAVEt_GVSV to Perl_ss_dup

fix for f83b46a0147ba6f476add85d17f61a7e7fb00f21, which added
the new SAVEt_GVSV, but forgot to amend the CX srack duplication code.

(Since that code is only used on win32, I'm applying it blind here)

10 years agoMake t/porting/authors.t pass under LC_ALL=en_GB.UTF-8 PERL_UNICODE=""
Nicholas Clark [Thu, 9 Sep 2010 12:02:27 +0000 (13:02 +0100)]
Make t/porting/authors.t pass under LC_ALL=en_GB.UTF-8 PERL_UNICODE=""

10 years agoDefine CxPADLOOP unconditionally, as post f83b46a0 it is always used.
Nicholas Clark [Thu, 9 Sep 2010 08:32:52 +0000 (09:32 +0100)]
Define CxPADLOOP unconditionally, as post f83b46a0 it is always used.

Previously it was only used under -DITHREADS

10 years agoTeach t/TEST about Math-BigInt in dist/
Florian Ragwitz [Thu, 9 Sep 2010 07:47:24 +0000 (09:47 +0200)]
Teach t/TEST about Math-BigInt in dist/

This was forgotten in the move from cpan/ to dist/ in commit
c510e33d30368bc5440f1651f6b31f73d2354eba.

10 years agobad things happened with for $x (...) { *x = *y }
David Mitchell [Wed, 8 Sep 2010 15:53:10 +0000 (16:53 +0100)]
bad things happened with for $x (...) { *x = *y }

fix for [perl #21469]:
since the GP may be pulled from under us and freed, coredumps and strange
things can happen.

Fix this by storing a pointer to the GV in the loop block, rather than a
pointer to the GvSV slot. The ITHREADS variant already stores GV rather
than than &GvSV; extend this to non-threaded builds too.

Also, for both threaded and non-threaded, it used to push &GvSV on the
save stack. Fix this by introducing a new save type, SAVEt_GVSV.
This behaves similarly to SAVEt_SV, but without magic get/set.

This means that

    for $package_var (...)

is now close in behaviour to

    local $package_var = ...

(except for the magic bit).

10 years agomove some comments back to the lines they refer to
David Mitchell [Wed, 8 Sep 2010 13:46:07 +0000 (14:46 +0100)]
move some comments back to the lines they refer to

10 years agoswap round a confusing #ifndef ... #else ...
David Mitchell [Wed, 8 Sep 2010 13:44:04 +0000 (14:44 +0100)]
swap round a confusing #ifndef ... #else ...

10 years agocreate itervar_u union in struct block_loop
David Mitchell [Wed, 8 Sep 2010 13:38:00 +0000 (14:38 +0100)]
create itervar_u union in struct block_loop

make it clearer what types of pointer to the iterator variable can be
stored, reduce the amount of #ifdef USE_ITHREADS, get rid of some macros,
and generally make the code easier to follow. No change to the size of the
structure.

10 years agoeliminate targoffset from struct block_loop
David Mitchell [Wed, 8 Sep 2010 11:41:14 +0000 (12:41 +0100)]
eliminate targoffset from struct block_loop

This value is also available via via cx->blk_loop.my_op->op_targ

10 years agoeliminate next_op from struct block_loop
David Mitchell [Wed, 8 Sep 2010 11:11:41 +0000 (12:11 +0100)]
eliminate next_op from struct block_loop

This field is only used in non-threaded builds, and the comments imply
that this is because in non-threaded builds this value may be
modified. But nothing in core modifies it.

10 years agoPerl releases are tagged v5.XX.YY since v5.11.0. Updated the example
Abigail [Wed, 8 Sep 2010 13:09:26 +0000 (15:09 +0200)]
Perl releases are tagged v5.XX.YY since v5.11.0. Updated the example
to reflect this. Now it can be cut-and-pasted and actually give useful
output.

10 years agoReorder interpreter struct to remove alignment hole created by 9a87bd09eea1d037
Nicholas Clark [Wed, 8 Sep 2010 10:42:05 +0000 (11:42 +0100)]
Reorder interpreter struct to remove alignment hole created by 9a87bd09eea1d037

nice_chunk_size was U32, and had been paired with another 32 bit value to
ensure that all 64 bit quantities were naturally 64 bit aligned. There already
was a 32 bit "hole" elsewhere - reorder the two unpaired 32 bit values next to
each other.

10 years agoRemove offer_nice_chunk(), PL_nice_chunk and PL_nice_chunk_size.
Nicholas Clark [Wed, 8 Sep 2010 09:24:04 +0000 (10:24 +0100)]
Remove offer_nice_chunk(), PL_nice_chunk and PL_nice_chunk_size.

These provided a non-public API for the hash and array code to donate free
memory direct to the SV head allocation routines, instead of returning it
to the malloc system with free().

I assume that on some older mallocs this could offer significant benefits.
However, my benchmarking on a modern malloc couldn't detect any significant
effect (positive or negative) on removing the code. Its (continued) presence,
however, has downsides

a: slightly more code complexity
b: slightly larger interpreter structure
c: in the steady state, if net creation of SVs is zero, 1 chunk of allocated
   but unused memory will exist (per thread)

So I think it best to remove it.

10 years agomake qw(...) first-class syntax
Zefram [Wed, 8 Sep 2010 07:51:29 +0000 (09:51 +0200)]
make qw(...) first-class syntax

This makes a qw(...) list literal a distinct token type for the
parser, where previously it was munged into a "(",THING,")" sequence.
The change means that qw(...) can't accidentally supply parens to parts
of the grammar that want real parens.  Due to many bits of code taking
advantage of that by "foreach my $x qw(...) {}", this patch also includes
a hack to coerce qw(...) to the old-style parenthesised THING, emitting
a deprecation warning along the way.

10 years agoStop corelist.pl from updating DESCRIPTION
Florian Ragwitz [Wed, 8 Sep 2010 07:43:48 +0000 (09:43 +0200)]
Stop corelist.pl from updating DESCRIPTION

10 years agoThis is a function, not a method
Florian Ragwitz [Wed, 8 Sep 2010 06:50:15 +0000 (08:50 +0200)]
This is a function, not a method

10 years agoMove test for #76540 to op/gv.t
Florian Ragwitz [Wed, 8 Sep 2010 03:03:23 +0000 (05:03 +0200)]
Move test for #76540 to op/gv.t

Commit e5c69c9b added the test to dist/constant/t/constant.t, probably because
the bug was initially reported in combination with constant.pm. However, it was
a core bug in gv_init and can be reproduced easily without constant.pm.

With this change dist/constant can be safely synced back to CPAN without having
to SKIP or TODO this particular test.

10 years agoFix build for threaded perls
Florian Ragwitz [Wed, 8 Sep 2010 02:18:55 +0000 (04:18 +0200)]
Fix build for threaded perls

Ooops. I broke it with commit ad7cce9f36d376e55b45dd79ec28a7f795b5ae4e.

10 years agoMove magicalize_{isa,overload} out into functions
Florian Ragwitz [Wed, 8 Sep 2010 02:06:23 +0000 (04:06 +0200)]
Move magicalize_{isa,overload} out into functions

This way c++ compilers like us again, as we don't do jumps that skip
initialisations anymore.

10 years agoperlfunc: list each/keys/values as ARRAY functions
David Golden [Wed, 8 Sep 2010 00:26:38 +0000 (20:26 -0400)]
perlfunc: list each/keys/values as ARRAY functions

As of Perl 5.12.0, the each(), keys() and values() functions also
operate on arrays, but were not listed in the table of contents section
titled "Functions for real @ARRAYs".  This patch fixes that oversight.

The delete() and exists() functions were not added, as their use on
array elements has been deprecated.

10 years agoMore tests for when(slice)
Rafael Garcia-Suarez [Tue, 7 Sep 2010 14:18:14 +0000 (16:18 +0200)]
More tests for when(slice)

10 years agoFix RT #77468: Smart matching on slices
David Leadbeater [Sat, 28 Aug 2010 21:39:58 +0000 (22:39 +0100)]
Fix RT #77468: Smart matching on slices

ref_array_or_hash did not take aslice or hslice OPs into account; wrap
them in an anonlist so that smart matching has a reference as it
expects.

10 years agoTests for caller_cx, cop_hints_*.
Ben Morrow [Tue, 31 Aug 2010 08:01:03 +0000 (09:01 +0100)]
Tests for caller_cx, cop_hints_*.

It seems that the runtime hinthash isn't returned correctly when running
under the debugger, so mark those tests TODO for now.

10 years agomake regen.
Ben Morrow [Tue, 31 Aug 2010 08:00:51 +0000 (09:00 +0100)]
make regen.

10 years agoAPI functions for accessing the runtime hinthash.
Ben Morrow [Tue, 31 Aug 2010 06:10:20 +0000 (07:10 +0100)]
API functions for accessing the runtime hinthash.

Add hinthash_fetch(sv|pv[ns]) as a replacement for refcounted_he_fetch,
which is not API (and should not be). Also add caller_cx, as the correct
XS equivalent to caller(). Lots of modules seem to have copies of this,
so a proper API function will be more maintainable in future.

10 years agoUpdate Module::CoreList Changes and entry in Maintainers.pl for the CPAN release
Chris 'BinGOs' Williams [Tue, 7 Sep 2010 07:01:20 +0000 (08:01 +0100)]
Update Module::CoreList Changes and entry in Maintainers.pl for the CPAN release

10 years agoThese files are no more
Florian Ragwitz [Tue, 7 Sep 2010 04:38:30 +0000 (06:38 +0200)]
These files are no more

10 years agoFix a pod/buildtoc warning
Florian Ragwitz [Mon, 6 Sep 2010 23:23:11 +0000 (01:23 +0200)]
Fix a pod/buildtoc warning

This was introduced with the perlXXXdelta.pod -> perldelta.pod move. buildtoc
assumed the copy target (perldelta.pod) should appear in perl.pod. Now
perldelta.pod is the copy source, but should still appear in perl.pod, while
perlXXXdelta.pod should not.

10 years agoFix some more typos and bad wording
Florian Ragwitz [Mon, 6 Sep 2010 22:41:01 +0000 (00:41 +0200)]
Fix some more typos and bad wording

Pointed out by pjcj++ and, again, ilmari++

10 years agoFix typo spotted by ilmari++
Florian Ragwitz [Mon, 6 Sep 2010 21:55:08 +0000 (23:55 +0200)]
Fix typo spotted by ilmari++

10 years agoTry to encourage sending perldelta entries
Florian Ragwitz [Mon, 6 Sep 2010 20:03:09 +0000 (22:03 +0200)]
Try to encourage sending perldelta entries

10 years agoRegenerate headers after last patch
Rafael Garcia-Suarez [Mon, 6 Sep 2010 21:51:44 +0000 (23:51 +0200)]
Regenerate headers after last patch

10 years agofunction interface to parse Perl statement
Zefram [Sat, 21 Aug 2010 17:54:04 +0000 (18:54 +0100)]
function interface to parse Perl statement

yyparse() becomes reentrant.  The yacc stack and related resources
are allocated in yyparse(), rather than in lex_start(), and they are
localised to yyparse(), preserving their values from any outer parser.

yyparse() now takes a parameter which determines which production it
will parse at the top level.  New API function parse_fullstmt() uses this
facility to parse just a single statement.  The top-level single-statement
production that is used for this then messes with the parser's head so
that the parsing stops without seeing EOF, and any lookahead token seen
after the statement is pushed back to the lexer.

10 years agoUpgrade to Test-Simple-0.97_01
Karl Williamson [Mon, 6 Sep 2010 16:22:03 +0000 (10:22 -0600)]
Upgrade to Test-Simple-0.97_01

10 years agoperldelta up to f4beb78
Florian Ragwitz [Mon, 6 Sep 2010 16:00:47 +0000 (18:00 +0200)]
perldelta up to f4beb78

10 years agoA couple of perldelta fixes
Father Chrysostomos [Mon, 6 Sep 2010 15:30:23 +0000 (17:30 +0200)]
A couple of perldelta fixes

10 years ago$ref++, $ref-- leaked referent
David Mitchell [Mon, 6 Sep 2010 15:24:47 +0000 (16:24 +0100)]
$ref++, $ref-- leaked referent

[perl #9466]

pp_postinc and pp_postdec used a pad TARG to return a copy of the
original value. When that value was a reference, it meant a copy
of the reference would hang out in the pad forever and so the referent
would leak. Fix this by using a mortal instead.

10 years ago[perl #76138] perl inadvertently destroys signal handlers as of f746176000
Father Chrysostomos [Sun, 5 Sep 2010 20:03:53 +0000 (22:03 +0200)]
[perl #76138] perl inadvertently destroys signal handlers as of f746176000

Stop magic applied to $!, %SIG, et al. from applying to similarly-
named variables in other packages.

10 years agort74170: test case that triggered the problem
Father Chrysostomos [Mon, 6 Sep 2010 13:41:01 +0000 (23:41 +1000)]
rt74170: test case that triggered the problem

10 years agort74170: handle the stack changing in the custom sort functions
Tony Cook [Mon, 6 Sep 2010 13:40:24 +0000 (23:40 +1000)]
rt74170: handle the stack changing in the custom sort functions

Based on work by Father Chrysostomos <sprout@cpan.org>, but all
my fault.

10 years agoCleanup perl5135delta.pod instead of perldelta.pod
Jan Dubois [Sun, 5 Sep 2010 19:20:04 +0000 (12:20 -0700)]
Cleanup perl5135delta.pod instead of perldelta.pod

Amends 37ee6528c

10 years agoRemove duplicate command to rebuild uudmap.h
Jan Dubois [Sun, 5 Sep 2010 19:13:21 +0000 (12:13 -0700)]
Remove duplicate command to rebuild uudmap.h

Fixes 6999193b
(was only broken for win32/Makefile, but not for win32/makefile.mk)

10 years agoUpdate Unicode-Collate to CPAN version 0.59
Chris 'BinGOs' Williams [Sun, 5 Sep 2010 16:53:23 +0000 (17:53 +0100)]
Update Unicode-Collate to CPAN version 0.59

  [DELTA]

  0.59  Sun Sep  5 17:03:52 2010
    - U::C::Locale newly supports locales: az, fil, ha, lt, mt, tr, wo, yo.
    - precomposites of a-uml, o-uml, and u-uml are tailored as well.
        (affected locales: da, et, fi, fo, is, kl, nb, nn, sk, sv)

10 years agoRemove NEXT's README and Changes files
Florian Ragwitz [Sun, 5 Sep 2010 14:46:00 +0000 (16:46 +0200)]
Remove NEXT's README and Changes files

Those already live in NEXT's upstream repository. There's no point having them
in core as well.

10 years agoremove dist/Filter-Simple-Changes from MANIFEST
Florian Ragwitz [Sun, 5 Sep 2010 14:40:04 +0000 (16:40 +0200)]
remove dist/Filter-Simple-Changes from MANIFEST

10 years agoUpdate release manager guide for perldelta move
Florian Ragwitz [Wed, 1 Sep 2010 19:01:28 +0000 (21:01 +0200)]
Update release manager guide for perldelta move

10 years agoMove the latest perldelta to pod/perldelta.pod
Florian Ragwitz [Sun, 22 Aug 2010 08:43:37 +0000 (10:43 +0200)]
Move the latest perldelta to pod/perldelta.pod

This way patches including perldelta entries will apply properly, no matter when
they are applied. If there's conflicts, they'll at least be in the right file.

10 years agoUpdate CPANPLUS-Dist-Build to CPAN version 0.48
Chris 'BinGOs' Williams [Sun, 5 Sep 2010 14:23:24 +0000 (15:23 +0100)]
Update CPANPLUS-Dist-Build to CPAN version 0.48

  [DELTA]

  0.48 Sun Sep  5 15:14:17 BST 2010
  - Explicitly set the location of cpanp-run-perl when under PERL_CORE
    in t/inc/conf.pl
  - Make sure we find cpanp-run-perl in ../../utils when PERL_CORE
  - Correct spelling in POD, pointed out by H.Merijn Brand

  These changes have already been in blead for a while, the CPAN release
  brings CPAN and blead into sync

10 years agoperldelta up to be34c38
Florian Ragwitz [Sun, 5 Sep 2010 13:31:55 +0000 (15:31 +0200)]
perldelta up to be34c38

10 years agoUpgrade Filter::Simple to 0.85
Steffen Mueller [Sun, 5 Sep 2010 14:08:58 +0000 (16:08 +0200)]
Upgrade Filter::Simple to 0.85

Purely maintenance. No functional changes.

10 years agoFilter::Simple Changelog needn't be part of the core
Steffen Mueller [Sun, 5 Sep 2010 14:06:50 +0000 (16:06 +0200)]
Filter::Simple Changelog needn't be part of the core

10 years agoremove removed file dist/Cwd/Changes from the MANIFEST
Tony Cook [Sun, 5 Sep 2010 13:10:57 +0000 (23:10 +1000)]
remove removed file dist/Cwd/Changes from the MANIFEST

10 years agoDo not ship the PathTools Changes
Steffen Mueller [Sun, 5 Sep 2010 10:21:40 +0000 (12:21 +0200)]
Do not ship the PathTools Changes

There is no reason (I can think of) to track and ship the PathTools CPAN
change log in core perl.

10 years agoFix core-cpan-diff for dists that extract weirdly
Florian Ragwitz [Sun, 5 Sep 2010 00:08:52 +0000 (02:08 +0200)]
Fix core-cpan-diff for dists that extract weirdly

The recent "Foo-Bar-1.23-withoutworldwriteables.tar.gz" dists are an example of
that. They'll extract to Foo-Bar-1.23/.

Caching of the untarred dists probably doesn't work for those dists, but at
least it works at all.

10 years agoUpdate base.pm's META.yml
Florian Ragwitz [Sat, 4 Sep 2010 23:11:00 +0000 (01:11 +0200)]
Update base.pm's META.yml

It's there for Rafael's convenience when doing CPAN releases, as there's no
separate base repository.

10 years agoSynchronize with bignum 0.24
Florian Ragwitz [Sat, 4 Sep 2010 13:03:47 +0000 (15:03 +0200)]
Synchronize with bignum 0.24

10 years agoSynchronize with Math::BigInt::FastCalc 0.21
Florian Ragwitz [Fri, 3 Sep 2010 21:32:23 +0000 (23:32 +0200)]
Synchronize with Math::BigInt::FastCalc 0.21

10 years agoUpstream for Math::BigRat is CPAN
Florian Ragwitz [Fri, 3 Sep 2010 18:14:11 +0000 (20:14 +0200)]
Upstream for Math::BigRat is CPAN

10 years agoMath::BigInt 1.90 just shipped to CPAN
Florian Ragwitz [Fri, 3 Sep 2010 15:34:20 +0000 (17:34 +0200)]
Math::BigInt 1.90 just shipped to CPAN

10 years agoperldelta up to 45b279e
Florian Ragwitz [Fri, 3 Sep 2010 15:02:31 +0000 (17:02 +0200)]
perldelta up to 45b279e

10 years agoBump $Errno::VERSION after change be54382
Florian Ragwitz [Fri, 3 Sep 2010 14:45:47 +0000 (16:45 +0200)]
Bump $Errno::VERSION after change be54382

10 years agoIn uudmap.h rule, nothing is different from the absence of anything.
Craig A. Berry [Fri, 3 Sep 2010 02:44:57 +0000 (21:44 -0500)]
In uudmap.h rule, nothing is different from the absence of anything.

Follow-up to 6999193ba9069e620831bed0f85efa43ff6e283a, which broke
the build on VMS because the rule to build uudmap.h was unknown.

10 years agoBump Math::BigInt{,::Calc}::VERSION for bnok fixes
Florian Ragwitz [Fri, 3 Sep 2010 01:44:11 +0000 (03:44 +0200)]
Bump Math::BigInt{,::Calc}::VERSION for bnok fixes

10 years agoFix Math::BigInt's bnok($k) for $k==0 and $k==$n-1
Piotr Fusik [Fri, 3 Sep 2010 00:41:00 +0000 (02:41 +0200)]
Fix Math::BigInt's bnok($k) for $k==0 and $k==$n-1

Signed-off-by: Florian Ragwitz <rafl@debian.org>
[rafl@debian.org: fixed bigflt tests and test plans]

10 years agoblead is upstream for bignum
Florian Ragwitz [Thu, 2 Sep 2010 23:12:17 +0000 (01:12 +0200)]
blead is upstream for bignum

10 years agoblead is upstream for Math-BigInt-FastCalc
Florian Ragwitz [Thu, 2 Sep 2010 22:12:22 +0000 (00:12 +0200)]
blead is upstream for Math-BigInt-FastCalc

10 years agoblead is upstream for Math-BigInt
Florian Ragwitz [Thu, 2 Sep 2010 21:11:26 +0000 (23:11 +0200)]
blead is upstream for Math-BigInt

10 years agoIn XS_VERSION_BOOTCHECK, correct the flags argument of get_sv() to 0.
Nicholas Clark [Thu, 2 Sep 2010 15:21:43 +0000 (16:21 +0100)]
In XS_VERSION_BOOTCHECK, correct the flags argument of get_sv() to 0.

It should not be FALSE, because it's a bitmap, not a boolean.

10 years agoChange the first argument of Perl_fetch_cop_label() to COP *
Nicholas Clark [Thu, 2 Sep 2010 14:57:24 +0000 (15:57 +0100)]
Change the first argument of Perl_fetch_cop_label() to COP *

From a suggestion from Ben Morrow.

The first argument used to be struct refcounted_he *, which exposed an
implementation detail - that the COP's labels are (now) stored in this way.

Google Code Search and an unpacked CPAN both fail to find any users of this
API, so the impact should be minimal.

10 years agoFor the generated XSLoader.pm, avoid a runtime lexical which is constant.
Nicholas Clark [Thu, 2 Sep 2010 10:44:51 +0000 (11:44 +0100)]
For the generated XSLoader.pm, avoid a runtime lexical which is constant.

XSLoader_pm.PL had been resolving $Config::Config{dlext}, and writing it as
the constant initialiser for a lexical variable in XSLoader.pm. In turn,
that lexical was used only once, in string interpolation. So the interpolation
can be done instead at build time.

10 years agoFix test (see <20100901161607.GB2892@iabyn.com>)
Abigail [Thu, 2 Sep 2010 09:55:07 +0000 (11:55 +0200)]
Fix test (see <20100901161607.GB2892@iabyn.com>)

10 years agoSanity check on Errno values.
Curtis Jewell [Tue, 24 Aug 2010 20:07:51 +0000 (14:07 -0600)]
Sanity check on Errno values.

On a few machines (Win32/gcc using mingw64 headers) Errno.pm
will find a value that is not numeric for a proposed error
key. This change adds a sanity check to discard such keys.

10 years agot/lib/common.pl must convert $^X to an absolute path before changing directory.
Nicholas Clark [Wed, 1 Sep 2010 20:24:54 +0000 (21:24 +0100)]
t/lib/common.pl must convert $^X to an absolute path before changing directory.

Not every operating system has /proc/self/exe

10 years agoTests using t/lib/common.pl need to run in separate directories.
Nicholas Clark [Wed, 1 Sep 2010 18:05:52 +0000 (19:05 +0100)]
Tests using t/lib/common.pl need to run in separate directories.

Commit 8f776eae73090661 turned out to be a bit optimistic with
"should be capable of running in parallel", as the temporary files and
modules written out by the various test scripts have clashing names.
Hence run each test a private subdirectory.

10 years agoRT 74444 - install_lib.pl emits warnings when installperl is run with destdir
Todd Rinaldo [Wed, 1 Sep 2010 16:18:43 +0000 (11:18 -0500)]
RT 74444 - install_lib.pl emits warnings when installperl is run with destdir

running the following produces 7 warnings like this on my system:
'LD_LIBRARY_PATH=/usr/home/build/perl-5.12.0  ./perl installperl --destdir=/var/local/tmp/perl-root'

Use of uninitialized value $dev2 in numeric eq (==) at ./install_lib.pl line 123.

replacing == with ~~ (the smart match operator) seems to be the best DWIM fix.