Skip to content

Commit 321dab4

Browse files
committed
Install perl-5.26.2
Build with rebuild.sh on a clean-room Debian 7 environment.
1 parent e5e11b4 commit 321dab4

File tree

2,389 files changed

+1245037
-31630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,389 files changed

+1245037
-31630
lines changed

bin/corelist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,10 @@ sub module_version {
352352
print $msg,"\n";
353353

354354
if( defined $ret and exists $Opts{u} ) {
355-
my $upsream = $Module::CoreList::upstream{$mod};
356-
$upsream = 'undef' unless $upsream;
357-
print "upstream: $upsream\n";
358-
if ( $upsream ne 'blead' ) {
355+
my $upstream = $Module::CoreList::upstream{$mod};
356+
$upstream = 'undef' unless $upstream;
357+
print "upstream: $upstream\n";
358+
if ( $upstream ne 'blead' ) {
359359
my $bugtracker = $Module::CoreList::bug_tracker{$mod};
360360
$bugtracker = 'unknown' unless $bugtracker;
361361
print "bug tracker: $bugtracker\n";

bin/cpan

Lines changed: 64 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ BEGIN { pop @INC if $INC[-1] eq '.' }
77
use strict;
88
use vars qw($VERSION);
99

10-
use App::Cpan '1.60_02';
11-
$VERSION = '1.61';
10+
use App::Cpan '1.64';
11+
$VERSION = '1.64';
1212

1313
my $rc = App::Cpan->run( @ARGV );
1414

@@ -25,7 +25,13 @@ cpan - easily interact with CPAN from the command line
2525
cpan module_name [ module_name ... ]
2626

2727
# with switches, installs modules with extra behavior
28-
cpan [-cfgimtTw] module_name [ module_name ... ]
28+
cpan [-cfFimtTw] module_name [ module_name ... ]
29+
30+
# use local::lib
31+
cpan -I module_name [ module_name ... ]
32+
33+
# one time mirror override for faster mirrors
34+
cpan -p ...
2935

3036
# with just the dot, install from the distribution in the
3137
# current directory
@@ -34,20 +40,8 @@ cpan - easily interact with CPAN from the command line
3440
# without arguments, starts CPAN.pm shell
3541
cpan
3642

37-
# force install modules (usually those that fail tests)
38-
cpan -f module_name [ module_name ... ]
39-
40-
# install modules but without testing them
41-
cpan -T module_name [ module_name ... ]
42-
43-
# dump the configuration
44-
cpan -J
45-
46-
# load a different configuration to install Module::Foo
47-
cpan -j some/other/file Module::Foo
48-
4943
# without arguments, but some switches
50-
cpan [-ahrvACDlLO]
44+
cpan [-ahpruvACDLOPX]
5145

5246
=head1 DESCRIPTION
5347

@@ -77,7 +71,10 @@ Show the F<Changes> files for the specified modules
7771

7872
=item -D module [ module ... ]
7973

80-
Show the module details.
74+
Show the module details. This prints one line for each out-of-date module
75+
(meaning, modules locally installed but have newer versions on CPAN).
76+
Each line has three columns: module name, local version, and CPAN
77+
version.
8178

8279
=item -f
8380

@@ -114,13 +111,15 @@ distribution.
114111
Print a help message and exit. When you specify C<-h>, it ignores all
115112
of the other options and arguments.
116113

117-
=item -i
114+
=item -i module [ module ... ]
118115

119-
Install the specified modules.
116+
Install the specified modules. With no other switches, this switch
117+
is implied.
120118

121119
=item -I
122120

123-
Load C<local::lib> (think like C<-I> for loading lib paths).
121+
Load C<local::lib> (think like C<-I> for loading lib paths). Too bad
122+
C<-l> was already taken.
124123

125124
=item -j Config.pm
126125

@@ -146,23 +145,38 @@ List the modules by the specified authors.
146145

147146
Make the specified modules.
148147

148+
=item -M mirror1,mirror2,...
149+
150+
A comma-separated list of mirrors to use for just this run. The C<-P>
151+
option can find them for you automatically.
152+
153+
=item -n
154+
155+
Do a dry run, but don't actually install anything. (unimplemented)
156+
149157
=item -O
150158

151159
Show the out-of-date modules.
152160

153161
=item -p
154162

155-
Ping the configured mirrors
163+
Ping the configured mirrors and print a report
156164

157165
=item -P
158166

159-
Find the best mirrors you could be using (but doesn't configure them just yet)
167+
Find the best mirrors you could be using and use them for the current
168+
session.
160169

161170
=item -r
162171

163172
Recompiles dynamically loaded modules with CPAN::Shell->recompile.
164173

165-
=item -t
174+
=item -s
175+
176+
Drop in the CPAN.pm shell. This command does this automatically if you don't
177+
specify any arguments.
178+
179+
=item -t module [ module ... ]
166180

167181
Run a `make test` on the specified modules.
168182

@@ -190,6 +204,16 @@ UNIMPLEMENTED
190204
Turn on cpan warnings. This checks various things, like directory permissions,
191205
and tells you about problems you might have.
192206

207+
=item -x module [ module ... ]
208+
209+
Find close matches to the named modules that you think you might have
210+
mistyped. This requires the optional installation of Text::Levenshtein or
211+
Text::Levenshtein::Damerau.
212+
213+
=item -X
214+
215+
Dump all the namespaces to standard output.
216+
193217
=back
194218

195219
=head2 Examples
@@ -215,9 +239,10 @@ and tells you about problems you might have.
215239
# force install modules ( must use -i )
216240
cpan -fi CGI::Minimal URI
217241

218-
=head1 ENVIRONMENT VARIABLES
242+
# install modules but without testing them
243+
cpan -Ti CGI::Minimal URI
219244

220-
=over 4
245+
=head2 Environment variables
221246

222247
There are several components in CPAN.pm that use environment variables.
223248
The build tools, L<ExtUtils::MakeMaker> and L<Module::Build> use some,
@@ -230,11 +255,21 @@ Oslo Concensus: L<https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/mas
230255

231256
=over 4
232257

258+
=item NONINTERACTIVE_TESTING
259+
260+
Assume no one is paying attention and skips prompts for distributions
261+
that do that correctly. C<cpan(1)> sets this to C<1> unless it already
262+
has a value (even if that value is false).
263+
264+
=item PERL_MM_USE_DEFAULT
265+
266+
Use the default answer for a prompted questions. C<cpan(1)> sets this
267+
to C<1> unless it already has a value (even if that value is false).
268+
233269
=item CPAN_OPTS
234270

235-
C<cpan> splits this variable on whitespace and prepends that list to C<@ARGV>
236-
before it processes the command-line arguments. For instance, if you always
237-
want to use C<local:lib>, you can set C<CPAN_OPTS> to C<-I>.
271+
As with C<PERL5OPTS>, a string of additional C<cpan(1)> options to
272+
add to those you specify on the command line.
238273

239274
=item CPANSCRIPT_LOGLEVEL
240275

@@ -248,19 +283,6 @@ C<ERROR>, and C<FATAL>. The default is C<INFO>.
248283
The path to the C<git> binary to use for the Git features. The default
249284
is C</usr/local/bin/git>.
250285

251-
=item NONINTERACTIVE_TESTING
252-
253-
Assume no one is paying attention and skips prompts for distributions
254-
that do that correctly. C<cpan(1)> sets this to C<1> unless it already
255-
has a value (even if that value is false).
256-
257-
=item PERL_MM_USE_DEFAULT
258-
259-
Use the default answer for a prompted questions. C<cpan(1)> sets this
260-
to C<1> unless it already has a value (even if that value is false).
261-
262-
=back
263-
264286
=back
265287

266288
=head1 EXIT VALUES
@@ -316,7 +338,7 @@ brian d foy, C<< <[email protected]> >>
316338

317339
=head1 COPYRIGHT
318340

319-
Copyright (c) 2001-2014, brian d foy, All Rights Reserved.
341+
Copyright (c) 2001-2015, brian d foy, All Rights Reserved.
320342

321343
You may redistribute this under the same terms as Perl itself.
322344

bin/enc2xs

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use warnings;
1414
use Getopt::Std;
1515
use Config;
1616
my @orig_ARGV = @ARGV;
17-
our $VERSION = do { my @r = (q$Revision: 2.18 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
17+
our $VERSION = do { my @r = (q$Revision: 2.20 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
1818

1919
# These may get re-ordered.
2020
# RAW is a do_now as inserted by &enter
@@ -126,7 +126,10 @@ my %encode_types = (U => \&encode_U,
126126
);
127127

128128
# Win32 does not expand globs on command line
129-
eval "\@ARGV = map(glob(\$_),\@ARGV)" if ($^O eq 'MSWin32');
129+
if ($^O eq 'MSWin32' and !$ENV{PERL_CORE}) {
130+
eval "\@ARGV = map(glob(\$_),\@ARGV)";
131+
@ARGV = @orig_ARGV unless @ARGV;
132+
}
130133

131134
my %opt;
132135
# I think these are:
@@ -137,6 +140,8 @@ my %opt;
137140
# -o <output> to specify the output file name (else it's the first arg)
138141
# -f <inlist> to give a file with a list of input files (else use the args)
139142
# -n <name> to name the encoding (else use the basename of the input file.
143+
#Getopt::Long::Configure("bundling");
144+
#GetOptions(\%opt, qw(C M=s S Q q O o=s f=s n=s v));
140145
getopts('CM:SQqOo:f:n:v',\%opt);
141146

142147
$opt{M} and make_makefile_pl($opt{M}, @ARGV);
@@ -199,19 +204,25 @@ sub compiler_info {
199204
# This really should go first, else the die here causes empty (non-erroneous)
200205
# output files to be written.
201206
my @encfiles;
202-
if (exists $opt{'f'}) {
207+
if (exists $opt{f}) {
203208
# -F is followed by name of file containing list of filenames
204-
my $flist = $opt{'f'};
209+
my $flist = $opt{f};
205210
open(FLIST,$flist) || die "Cannot open $flist:$!";
206211
chomp(@encfiles = <FLIST>);
207212
close(FLIST);
208213
} else {
209214
@encfiles = @ARGV;
210215
}
211216

212-
my $cname = (exists $opt{'o'}) ? $opt{'o'} : shift(@ARGV);
217+
my $cname = $opt{o} ? $opt{o} : shift(@ARGV);
218+
unless ($cname) { #debuging a win32 nmake error-only. works via cmdline
219+
print "\nARGV:";
220+
print "$_ " for @ARGV;
221+
print "\nopt:";
222+
print " $_ => ",defined $opt{$_}?$opt{$_}:"undef","\n" for keys %opt;
223+
}
213224
chmod(0666,$cname) if -f $cname && !-w $cname;
214-
open(C,">$cname") || die "Cannot open $cname:$!";
225+
open(C,">", $cname) || die "Cannot open $cname:$!";
215226

216227
my $dname = $cname;
217228
my $hname = $cname;
@@ -223,10 +234,10 @@ if ($cname =~ /\.(c|xs)$/i) # VMS may have upcased filenames with DECC$ARGV_PARS
223234
$doC = 1;
224235
$dname =~ s/(\.[^\.]*)?$/.exh/;
225236
chmod(0666,$dname) if -f $cname && !-w $dname;
226-
open(D,">$dname") || die "Cannot open $dname:$!";
237+
open(D,">", $dname) || die "Cannot open $dname:$!";
227238
$hname =~ s/(\.[^\.]*)?$/.h/;
228239
chmod(0666,$hname) if -f $cname && !-w $hname;
229-
open(H,">$hname") || die "Cannot open $hname:$!";
240+
open(H,">", $hname) || die "Cannot open $hname:$!";
230241

231242
foreach my $fh (\*C,\*D,\*H)
232243
{
@@ -472,7 +483,9 @@ sub compile_ucm
472483
$erep = $attr{'subchar'};
473484
$erep =~ s/^\s+//; $erep =~ s/\s+$//;
474485
}
475-
print "Reading $name ($cs)\n";
486+
print "Reading $name ($cs)\n"
487+
unless defined $ENV{MAKEFLAGS}
488+
and $ENV{MAKEFLAGS} =~ /\b(s|silent|quiet)\b/;
476489
my $nfb = 0;
477490
my $hfb = 0;
478491
while (<$fh>)
@@ -758,9 +771,17 @@ sub addstrings
758771
if ($a->{'Forward'})
759772
{
760773
my ($cpp, $static, $sized) = compiler_info(1);
761-
my $var = $static ? 'static const' : 'extern';
762774
my $count = $sized ? scalar(@{$a->{'Entries'}}) : '';
763-
print $fh "$var encpage_t $name\[$count];\n";
775+
if ($static) {
776+
# we cannot ask Config for d_plusplus since we can override CC=g++-6 on the cmdline
777+
print $fh "#ifdef __cplusplus\n"; # -fpermissive since g++-6
778+
print $fh "extern encpage_t $name\[$count];\n";
779+
print $fh "#else\n";
780+
print $fh "static const encpage_t $name\[$count];\n";
781+
print $fh "#endif\n";
782+
} else {
783+
print $fh "extern encpage_t $name\[$count];\n";
784+
}
764785
}
765786
$a->{'DoneStrings'} = 1;
766787
foreach my $b (@{$a->{'Entries'}})
@@ -851,9 +872,16 @@ sub outtable
851872
outtable($fh,$t,$bigname) unless $t->{'Done'};
852873
}
853874
my ($cpp, $static) = compiler_info(0);
854-
my $var = $static ? 'static const ' : '';
855-
print $fh "\n${var}encpage_t $name\[",
856-
scalar(@{$a->{'Entries'}}), "] = {\n";
875+
my $count = scalar(@{$a->{'Entries'}});
876+
if ($static) {
877+
print $fh "#ifdef __cplusplus\n"; # -fpermissive since g++-6
878+
print $fh "encpage_t $name\[$count] = {\n";
879+
print $fh "#else\n";
880+
print $fh "static const encpage_t $name\[$count] = {\n";
881+
print $fh "#endif\n";
882+
} else {
883+
print $fh "\nencpage_t $name\[$count] = {\n";
884+
}
857885
foreach my $b (@{$a->{'Entries'}})
858886
{
859887
my ($sc,$ec,$out,$t,$end,$l,$fb) = @$b;
@@ -1107,7 +1135,7 @@ sub _print_expand{
11071135
if ((my $d = dirname($dst)) ne '.'){
11081136
-d $d or mkdir $d, 0755 or die "mkdir $d : $!";
11091137
}
1110-
open my $out, ">$dst" or die "$!";
1138+
open my $out, ">", $dst or die "$!";
11111139
my $asis = 0;
11121140
while (<$in>){
11131141
if (/^#### END_OF_HEADER/){

bin/encguess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ encguess - guess character encodings of files
6464
6565
=head1 VERSION
6666
67-
$Id: encguess,v 0.1 2015/02/05 10:34:19 dankogai Exp $
67+
$Id: encguess,v 0.2 2016/08/04 03:15:58 dankogai Exp $
6868
6969
=head1 SYNOPSIS
7070

bin/h2ph

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ while (defined (my $file = next_file())) {
8585
}
8686
}
8787

88-
open(IN,"$file") || (($Exit = 1),(warn "Can't open $file: $!\n"),next);
89-
open(OUT,">$Dest_dir/$outfile") || die "Can't create $outfile: $!\n";
88+
open(IN, "<", "$file") || (($Exit = 1),(warn "Can't open $file: $!\n"),next);
89+
open(OUT, ">", "$Dest_dir/$outfile") || die "Can't create $outfile: $!\n";
9090
}
9191

9292
print OUT
@@ -703,7 +703,7 @@ sub queue_includes_from
703703

704704
return if ($file eq "-");
705705

706-
open HEADER, $file or return;
706+
open HEADER, "<", $file or return;
707707
while (defined($line = <HEADER>)) {
708708
while (/\\$/) { # Handle continuation lines
709709
chop $line;
@@ -743,7 +743,7 @@ sub build_preamble_if_necessary
743743
# Can we skip building the preamble file?
744744
if (-r $preamble) {
745745
# Extract version number from first line of preamble:
746-
open PREAMBLE, $preamble or die "Cannot open $preamble: $!";
746+
open PREAMBLE, "<", $preamble or die "Cannot open $preamble: $!";
747747
my $line = <PREAMBLE>;
748748
$line =~ /(\b\d+\b)/;
749749
close PREAMBLE or die "Cannot close $preamble: $!";
@@ -754,7 +754,7 @@ sub build_preamble_if_necessary
754754

755755
my (%define) = _extract_cc_defines();
756756

757-
open PREAMBLE, ">$preamble" or die "Cannot open $preamble: $!";
757+
open PREAMBLE, ">", $preamble or die "Cannot open $preamble: $!";
758758
print PREAMBLE "# This file was created by h2ph version $VERSION\n";
759759
# Prevent non-portable hex constants from warning.
760760
#

0 commit comments

Comments
 (0)