Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit e0581d5

Browse files
author
Reini Urban
committed
CPAN: skip cperl builtin prereqs
1 parent 450ea8b commit e0581d5

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

Porting/Maintainers.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ package Maintainers;
364364
),
365365
],
366366
'CUSTOMIZED' => [
367-
qw( lib/CPAN.pm lib/CPAN/FirstTime.pm lib/CPAN/Distribution.pm ),
367+
qw( lib/CPAN.pm lib/CPAN/FirstTime.pm lib/CPAN/Distribution.pm
368+
lib/CPAN/Version.pm ),
368369
],
369370
},
370371

cpan/CPAN/lib/CPAN/Distribution.pm

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use CPAN::InfoObj;
88
use File::Path ();
99
@CPAN::Distribution::ISA = qw(CPAN::InfoObj);
1010
use vars qw($VERSION);
11-
$VERSION = "2.14_01";
11+
$VERSION = "2.14_02"; # with cperl fixes
1212

1313
# no prepare, because prepare is not a command on the shell command line
1414
# TODO: clear instance cache on reload
@@ -1292,6 +1292,7 @@ Could not determine which directory to use for looking at $dist.
12921292
local $ENV{PERL5OPT} = defined $ENV{PERL5OPT} ? $ENV{PERL5OPT} : "";
12931293
$CPAN::META->set_perl5lib;
12941294
local $ENV{MAKEFLAGS}; # protect us from outer make calls
1295+
local $ENV{PERL_USE_UNSAFE_INC} = 1;
12951296

12961297
unless (system($shell) == 0) {
12971298
my $code = $? >> 8;
@@ -2608,6 +2609,12 @@ sub follow_prereqs {
26082609
my(@good_prereq_tuples);
26092610
for my $p (@prereq_tuples) {
26102611
# e.g. $p = ['Devel::PartialDump', 'r', 1]
2612+
# skip builtins without .pm
2613+
if ($Config::Config{usecperl}
2614+
and $p->[0] =~ /^(DynaLoader|XSLoader|strict|coretypes)$/) {
2615+
CPAN->debug("$p->[0] builtin") if $CPAN::DEBUG;
2616+
next;
2617+
}
26112618
# promote if possible
26122619
if ($p->[1] =~ /^(r|c)$/) {
26132620
push @good_prereq_tuples, $p;
@@ -2622,6 +2629,7 @@ sub follow_prereqs {
26222629
die "Panic: in follow_prereqs: reqtype[$p->[1]] seen, should never happen";
26232630
}
26242631
}
2632+
return unless @good_prereq_tuples;
26252633
my $pretty_id = $self->pretty_id;
26262634
my %map = (
26272635
b => "build_requires",
@@ -3644,6 +3652,10 @@ sub _make_test_illuminate_prereqs {
36443652
) {
36453653
# lex Class::Accessor::Chained::Fast which has no $VERSION
36463654
CPAN->debug("m[$m] have available_file[$available_file]")
3655+
if $CPAN::DEBUG;
3656+
} elsif ($Config::Config{usecperl}
3657+
and $m =~ /^(DynaLoader|XSLoader|strict|coretypes)$/) {
3658+
CPAN->debug("m[$m] builtin available_version[$available_version]")
36473659
if $CPAN::DEBUG;
36483660
} else {
36493661
push @prereq, $m

cpan/CPAN/lib/CPAN/Version.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package CPAN::Version;
22

33
use strict;
44
use vars qw($VERSION);
5-
$VERSION = "5.5003";
5+
$VERSION = "5.5003_01"; # strip cperl c suffices
66

77
# CPAN::Version::vcmp courtesy Jost Krieger
88
sub vcmp {
@@ -18,6 +18,7 @@ sub vcmp {
1818

1919
for ($l,$r) {
2020
s/_//g;
21+
s/c$//;
2122
}
2223
CPAN->debug("l[$l] r[$r]") if $CPAN::DEBUG;
2324
for ($l,$r) {

pod/perlcdelta.pod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ fixed UTF-8 issues, passes now all Test-CPAN-Meta tests.
159159

160160
=item CPAN 2.14c
161161

162+
reapply most of our patches.
163+
162164
=item Archive::Tar 2.10
163165

164166
=item Cpanel::JSON::XS 3.0218

t/porting/customized.dat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
B::C cpan/B-C/t/test10 0b3ab672868ee49e8539649aad1ad8c940c4c420
22
CPAN cpan/CPAN/lib/CPAN.pm 3c18561fe8a6947135c5208d968890b41e1b0dc3
3-
CPAN cpan/CPAN/lib/CPAN/Distribution.pm 4a09afeda1854ccdabeb8cdc900735403df32703
3+
CPAN cpan/CPAN/lib/CPAN/Distribution.pm 6aecd5eb65cd65fc49019a8283cf6d6131971cf5
44
CPAN cpan/CPAN/lib/CPAN/FirstTime.pm bc6f59c30cf7dbb7180270d673c3b152ea93f6c2
5+
CPAN cpan/CPAN/lib/CPAN/Version.pm 4f70abb999f1dba524ffd66ee8ac055cd335e1b8
56
CPAN::Meta cpan/CPAN-Meta/lib/CPAN/Meta.pm 5e1d1466cbdb58d00e3a94661d2871f41efc4761
67
CPAN::Meta cpan/CPAN-Meta/lib/CPAN/Meta/History/Meta_1_4.pod 3a1ae20933b955b5f1e538ea35b502517a3ae391
78
CPAN::Meta cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm bcee4a5a8412c8ecc90c7ec3ccbabf622de3b56c

0 commit comments

Comments
 (0)