Skip to content

Commit

Permalink
Apply E-MM patch from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
atoomic committed Aug 3, 2020
1 parent d19f643 commit fd89fe2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3232,7 +3232,9 @@ PPD_PERLVERS
}

my $archname = $Config{archname};
if ("$]" >= 5.008) {
if( "$]" >= 5.010) {
$archname .= "-$^V->{version}->[0].$^V->{version}->[1]"; # v5.32.5 => 5.32
} elsif ("$]" >= 5.008) {
# archname did not change from 5.6 to 5.8, but those versions may
# not be not binary compatible so now we append the part of the
# version that changes when binary compatibility may change
Expand Down
5 changes: 4 additions & 1 deletion cpan/ExtUtils-MakeMaker/t/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ like( $ppd_html, qr{^\s*<REQUIRE NAME="strict::" />}m, ' <REQUIRE>' );
unlike( $ppd_html, qr{^\s*<REQUIRE NAME="warnings::" />}m, 'no <REQUIRE> for build_require' );

my $archname = $Config{archname};
if( "$]" >= 5.008 ) {
if( "$]" >= 5.010) {
$archname .= "-$^V->{version}->[0].$^V->{version}->[1]";
}
elsif( "$]" >= 5.008 ) {
# XXX This is a copy of the internal logic, so it's not a great test
$archname .= "-$Config{PERL_REVISION}.$Config{PERL_VERSION}";
}
Expand Down

0 comments on commit fd89fe2

Please sign in to comment.