Skip to content

Commit 796025a

Browse files
authored
upgrade/test_5.36.0_memory (#23)
* apply perl_5.36.0 again Revert "revert/perl_5.36.0 (#22)" This reverts commit dc9add0. * upgrade/test_5.36.0_memory * trigger tests [ci] 2023-09-05 08:22:34
1 parent dc9add0 commit 796025a

File tree

3,091 files changed

+1036688
-1154696
lines changed

Some content is hidden

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

3,091 files changed

+1036688
-1154696
lines changed

bin/c2ph

Lines changed: 0 additions & 1368 deletions
This file was deleted.

bin/corelist

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/home/git/binary-com/perl/bin/perl
22
eval 'exec /home/git/binary-com/perl/bin/perl -S $0 ${1+"$@"}'
3-
if $running_under_some_shell;
3+
if 0; # ^ Run only under a shell
44
#!/usr/bin/perl
55

66
=head1 NAME
@@ -17,6 +17,8 @@ See L<Module::CoreList> for one.
1717
corelist [-a|-d] <ModuleName> | /<ModuleRegex>/ [<ModuleVersion>] ...
1818
corelist [-v <PerlVersion>] [ <ModuleName> | /<ModuleRegex>/ ] ...
1919
corelist [-r <PerlVersion>] ...
20+
corelist --utils [-d] <UtilityName> [<UtilityName>] ...
21+
corelist --utils -v <PerlVersion>
2022
corelist --feature <FeatureName> [<FeatureName>] ...
2123
corelist --diff PerlVersion PerlVersion
2224
corelist --upstream <ModuleName>
@@ -116,6 +118,15 @@ lists all of the perl releases and when they were released
116118
117119
If you pass a perl version you get the release date for that version only.
118120
121+
=item --utils
122+
123+
lists the first version of perl each named utility program was released with
124+
125+
May be used with -d to modify the first release criteria.
126+
127+
If used with -v <version> then all utilities released with that version of perl
128+
are listed, and any utility programs named on the command line are ignored.
129+
119130
=item --feature, -f
120131
121132
lists the first version bundle of each named feature given
@@ -145,7 +156,7 @@ my %Opts;
145156

146157
GetOptions(
147158
\%Opts,
148-
qw[ help|?! man! r|release:s v|version:s a! d diff|D feature|f u|upstream ]
159+
qw[ help|?! man! r|release:s v|version:s a! d diff|D utils feature|f u|upstream ]
149160
);
150161

151162
pod2usage(1) if $Opts{help};
@@ -184,6 +195,12 @@ if(exists $Opts{v} ){
184195
}
185196

186197
my $num_v = numify_version( $Opts{v} );
198+
199+
if ($Opts{utils}) {
200+
utilities_in_version($num_v);
201+
exit 0;
202+
}
203+
187204
my $version_hash = Module::CoreList->find_version($num_v);
188205

189206
if( !$version_hash ) {
@@ -210,7 +227,15 @@ if ($Opts{diff}) {
210227
my ($old_ver, $new_ver) = @ARGV;
211228

212229
my $old = numify_version($old_ver);
230+
if ( !Module::CoreList->find_version($old) ) {
231+
print "\nModule::CoreList has no info on perl $old_ver\n\n";
232+
exit 1;
233+
}
213234
my $new = numify_version($new_ver);
235+
if ( !Module::CoreList->find_version($new) ) {
236+
print "\nModule::CoreList has no info on perl $new_ver\n\n";
237+
exit 1;
238+
}
214239

215240
my %diff = Module::CoreList::changes_between($old, $new);
216241

@@ -230,6 +255,25 @@ if ($Opts{diff}) {
230255
exit(0);
231256
}
232257

258+
if ($Opts{utils}) {
259+
die "\n--utils only available with perl v5.19.1 or greater\n"
260+
if $] < 5.019001;
261+
262+
die "\nprovide at least one utility name to --utils\n"
263+
unless @ARGV;
264+
265+
warn "\n-a has no effect when --utils is used\n" if $Opts{a};
266+
warn "\n--diff has no effect when --utils is used\n" if $Opts{diff};
267+
warn "\n--upstream, or -u, has no effect when --utils is used\n" if $Opts{u};
268+
269+
my $when = maxstr(values %Module::CoreList::released);
270+
print "\n","Data for $when\n";
271+
272+
utility_version($_) for @ARGV;
273+
274+
exit(0);
275+
}
276+
233277
if ($Opts{feature}) {
234278
die "\n--feature is only available with perl v5.16.0 or greater\n"
235279
if $] < 5.016;
@@ -367,6 +411,47 @@ sub module_version {
367411
}
368412
}
369413

414+
sub utility_version {
415+
my ($utility) = @_;
416+
417+
require Module::CoreList::Utils;
418+
419+
my $released = $Opts{d}
420+
? Module::CoreList::Utils->first_release_by_date($utility)
421+
: Module::CoreList::Utils->first_release($utility);
422+
423+
my $removed = $Opts{d}
424+
? Module::CoreList::Utils->removed_from_by_date($utility)
425+
: Module::CoreList::Utils->removed_from($utility);
426+
427+
if ($released) {
428+
print "$utility was first released with perl ", format_perl_version($released);
429+
print " and later removed in ", format_perl_version($removed)
430+
if $removed;
431+
print "\n";
432+
} else {
433+
print "$utility was not in CORE (or so I think)\n";
434+
}
435+
}
436+
437+
sub utilities_in_version {
438+
my ($version) = @_;
439+
440+
require Module::CoreList::Utils;
441+
442+
my @utilities = Module::CoreList::Utils->utilities($version);
443+
444+
if (not @utilities) {
445+
print "\nModule::CoreList::Utils has no info on perl $version\n\n";
446+
exit 1;
447+
}
448+
449+
print "\nThe following utilities were in perl ",
450+
format_perl_version($version), " CORE\n";
451+
print "$_\n" for sort { lc($a) cmp lc($b) } @utilities;
452+
print "\n";
453+
}
454+
370455

371456
sub max_mod_len {
372457
my $versions = shift;

bin/cpan

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
#!/home/git/binary-com/perl/bin/perl
22
eval 'exec /home/git/binary-com/perl/bin/perl -S $0 ${1+"$@"}'
3-
if $running_under_some_shell;
3+
if 0; # ^ Run only under a shell
44
#!/usr/local/bin/perl
55

66
BEGIN { pop @INC if $INC[-1] eq '.' }
77
use strict;
88
use vars qw($VERSION);
99

10-
use App::Cpan '1.64';
10+
use App::Cpan;
11+
use CPAN::Version;
12+
my $minver = '1.64';
13+
if ( CPAN::Version->vlt($App::Cpan::VERSION, $minver) ) {
14+
warn "WARNING: your version of App::Cpan is $App::Cpan::VERSION while we would expect at least $minver";
15+
}
1116
$VERSION = '1.64';
1217

1318
my $rc = App::Cpan->run( @ARGV );
@@ -249,9 +254,9 @@ The build tools, L<ExtUtils::MakeMaker> and L<Module::Build> use some,
249254
while others matter to the levels above them. Some of these are specified
250255
by the Perl Toolchain Gang:
251256

252-
Lancaster Concensus: L<https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md>
257+
Lancaster Consensus: L<https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md>
253258

254-
Oslo Concensus: L<https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/oslo-consensus.md>
259+
Oslo Consensus: L<https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/oslo-consensus.md>
255260

256261
=over 4
257262

@@ -268,7 +273,7 @@ to C<1> unless it already has a value (even if that value is false).
268273

269274
=item CPAN_OPTS
270275

271-
As with C<PERL5OPTS>, a string of additional C<cpan(1)> options to
276+
As with C<PERL5OPT>, a string of additional C<cpan(1)> options to
272277
add to those you specify on the command line.
273278

274279
=item CPANSCRIPT_LOGLEVEL

bin/cpanm

Lines changed: 9 additions & 6 deletions
Large diffs are not rendered by default.

bin/enc2xs

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/home/git/binary-com/perl/bin/perl
22
eval 'exec /home/git/binary-com/perl/bin/perl -S $0 ${1+"$@"}'
3-
if $running_under_some_shell;
3+
if 0; # ^ Run only under a shell
44
#!./perl
55
BEGIN {
66
# @INC poking no longer needed w/ new MakeMaker and Makefile.PL's
@@ -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.20 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
17+
our $VERSION = do { my @r = (q$Revision: 2.24 $ =~ /\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
@@ -147,6 +147,7 @@ getopts('CM:SQqOo:f:n:v',\%opt);
147147
$opt{M} and make_makefile_pl($opt{M}, @ARGV);
148148
$opt{C} and make_configlocal_pm($opt{C}, @ARGV);
149149
$opt{v} ||= $ENV{ENC2XS_VERBOSE};
150+
$opt{q} ||= $ENV{ENC2XS_NO_COMMENTS};
150151

151152
sub verbose {
152153
print STDERR @_ if $opt{v};
@@ -251,7 +252,12 @@ if ($cname =~ /\.(c|xs)$/i) # VMS may have upcased filenames with DECC$ARGV_PARS
251252
END
252253
}
253254

254-
if ($cname =~ /(\w+)\.xs$/)
255+
if ($cname =~ /\.c$/i && $Config{ccname} eq "gcc")
256+
{
257+
print C qq(#pragma GCC diagnostic ignored "-Wc++-compat"\n);
258+
}
259+
260+
if ($cname =~ /\.xs$/i)
255261
{
256262
print C "#define PERL_NO_GET_CONTEXT\n";
257263
print C "#include <EXTERN.h>\n";
@@ -261,15 +267,15 @@ END
261267
print C "#include \"encode.h\"\n\n";
262268

263269
}
264-
elsif ($cname =~ /\.enc$/)
270+
elsif ($cname =~ /\.enc$/i)
265271
{
266272
$doEnc = 1;
267273
}
268-
elsif ($cname =~ /\.ucm$/)
274+
elsif ($cname =~ /\.ucm$/i)
269275
{
270276
$doUcm = 1;
271277
}
272-
elsif ($cname =~ /\.pet$/)
278+
elsif ($cname =~ /\.pet$/i)
273279
{
274280
$doPet = 1;
275281
}
@@ -917,24 +923,7 @@ sub decode_U
917923
}
918924

919925
my @uname;
920-
sub char_names
921-
{
922-
my $s = do "unicore/Name.pl";
923-
die "char_names: unicore/Name.pl: $!\n" unless defined $s;
924-
pos($s) = 0;
925-
while ($s =~ /\G([0-9a-f]+)\t([0-9a-f]*)\t(.*?)\s*\n/igc)
926-
{
927-
my $name = $3;
928-
my $s = hex($1);
929-
last if $s >= 0x10000;
930-
my $e = length($2) ? hex($2) : $s;
931-
for (my $i = $s; $i <= $e; $i++)
932-
{
933-
$uname[$i] = $name;
934-
# print sprintf("U%04X $name\n",$i);
935-
}
936-
}
937-
}
926+
sub char_names{} # cf. https://rt.cpan.org/Ticket/Display.html?id=132471
938927

939928
sub output_ucm_page
940929
{
@@ -1041,8 +1030,7 @@ sub find_e2x{
10411030

10421031
sub make_makefile_pl
10431032
{
1044-
eval { require Encode; };
1045-
$@ and die "You need to install Encode to use enc2xs -M\nerror: $@\n";
1033+
eval { require Encode } or die "You need to install Encode to use enc2xs -M\nerror: $@\n";
10461034
# our used for variable expansion
10471035
$_Enc2xs = $0;
10481036
$_Version = $VERSION;
@@ -1066,8 +1054,7 @@ use vars qw(
10661054
);
10671055

10681056
sub make_configlocal_pm {
1069-
eval { require Encode; };
1070-
$@ and die "Unable to require Encode: $@\n";
1057+
eval { require Encode } or die "Unable to require Encode: $@\n";
10711058
eval { require File::Spec; };
10721059

10731060
# our used for variable expantion
@@ -1087,8 +1074,7 @@ sub make_configlocal_pm {
10871074
$mod =~ s/.*\bEncode\b/Encode/o;
10881075
$mod =~ s/\.pm\z//o;
10891076
$mod =~ s,/,::,og;
1090-
eval qq{ require $mod; };
1091-
return if $@;
1077+
eval qq{ require $mod; } or return;
10921078
warn qq{ require $mod;\n};
10931079
for my $enc ( Encode->encodings() ) {
10941080
no warnings;
@@ -1122,8 +1108,7 @@ sub _mkversion{
11221108
}
11231109

11241110
sub _print_expand{
1125-
eval { require File::Basename; };
1126-
$@ and die "File::Basename needed. Are you on miniperl?;\nerror: $@\n";
1111+
eval { require File::Basename } or die "File::Basename needed. Are you on miniperl?;\nerror: $@\n";
11271112
File::Basename->import();
11281113
my ($src, $dst, $clobber) = @_;
11291114
if (!$clobber and -e $dst){

bin/encguess

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/home/git/binary-com/perl/bin/perl
22
eval 'exec /home/git/binary-com/perl/bin/perl -S $0 ${1+"$@"}'
3-
if $running_under_some_shell;
3+
if 0; # ^ Run only under a shell
44
#!./perl
55
use 5.008001;
66
BEGIN { pop @INC if $INC[-1] eq '.' }
@@ -64,7 +64,7 @@ encguess - guess character encodings of files
6464
6565
=head1 VERSION
6666
67-
$Id: encguess,v 0.2 2016/08/04 03:15:58 dankogai Exp $
67+
$Id: encguess,v 0.3 2020/12/02 01:28:17 dankogai Exp $
6868
6969
=head1 SYNOPSIS
7070
@@ -81,7 +81,7 @@ show this message and exit.
8181
=item -s
8282
8383
specify a list of "suspect encoding types" to test,
84-
seperated by either C<:> or C<,>
84+
separated by either C<:> or C<,>
8585
8686
=item -S
8787

bin/h2ph

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/home/git/binary-com/perl/bin/perl
22
eval 'exec /home/git/binary-com/perl/bin/perl -S $0 ${1+"$@"}'
3-
if $running_under_some_shell;
3+
if 0; # ^ Run only under a shell
44

55
BEGIN { pop @INC if $INC[-1] eq '.' }
66

bin/h2xs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/home/git/binary-com/perl/bin/perl
22
eval 'exec /home/git/binary-com/perl/bin/perl -S $0 ${1+"$@"}'
3-
if $running_under_some_shell;
3+
if 0; # ^ Run only under a shell
44

55
BEGIN { pop @INC if $INC[-1] eq '.' }
66

@@ -250,7 +250,7 @@ Note that some types of arguments/return-values for functions may
250250
result in XSUB-declarations/typemap-entries which need
251251
hand-editing. Such may be objects which cannot be converted from/to a
252252
pointer (like C<long long>), pointers to functions, or arrays. See
253-
also the section on L<LIMITATIONS of B<-x>>.
253+
also the section on L</LIMITATIONS of B<-x>>.
254254
255255
=back
256256
@@ -1904,7 +1904,7 @@ WriteMakefile(
19041904
AUTHOR => '$author <$email>',
19051905
#LICENSE => 'perl',
19061906
#Value must be from legacy list of licenses here
1907-
#http://search.cpan.org/perldoc?Module%3A%3ABuild%3A%3AAPI
1907+
#https://metacpan.org/pod/Module::Build::API
19081908
END
19091909
if (!$opt_X) { # print C stuff, unless XS is disabled
19101910
$opt_F = '' unless defined $opt_F;
@@ -1966,7 +1966,7 @@ $generate_code
19661966
__END__
19671967
gave unexpected error $@
19681968
Please report the circumstances of this bug in h2xs version $H2XS_VERSION
1969-
using the perlbug script.
1969+
using the issue tracker at https://github.com/Perl/perl5/issues.
19701970
EOM
19711971
} else {
19721972
my $fail;
@@ -1987,7 +1987,7 @@ the files $ext$modpname/$constscfname and $ext$modpname/$constsxsfname
19871987
correctly.
19881988
19891989
Please report the circumstances of this bug in h2xs version $H2XS_VERSION
1990-
using the perlbug script.
1990+
using the issue tracker at https://github.com/Perl/perl5/issues.
19911991
EOM
19921992
} else {
19931993
unlink $constscfname, $constsxsfname;

bin/instmodsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/home/git/binary-com/perl/bin/perl
22
eval 'exec /home/git/binary-com/perl/bin/perl -S $0 ${1+"$@"}'
3-
if $running_under_some_shell;
3+
if 0; # ^ Run only under a shell
44
#!/usr/bin/perl -w
55

66
BEGIN { pop @INC if $INC[-1] eq '.' }

0 commit comments

Comments
 (0)