Make sure 'if' compiled before Pod::Simple

3.36 of Pod::Simple requires 'if', and this makes sure it works.
This commit is contained in:
Karl Williamson 2019-05-27 12:07:25 -06:00
parent b83fde9727
commit 926760a67e
2 changed files with 8 additions and 4 deletions

View File

@ -197,6 +197,7 @@ done
dynamic_list=' '
dynamic_ext_re="lib/auto/re/re.$dlext"
extra_dep='
cpan/Pod-Simple/pm_to_blib: dist/if/pm_to_blib
ext/Pod-Functions/pm_to_blib: cpan/Pod-Simple/pm_to_blib cpan/Pod-Escapes/pm_to_blib pod/perlfunc.pod
cpan/IO-Compress/pm_to_blib: dist/lib/pm_to_blib
'

View File

@ -217,18 +217,21 @@ elsif (IS_VMS) {
{ # XXX hack for dependency ordering
# Cwd needs to be built before Encode recurses into subdirectories.
# Pod::Simple needs to be built before Pod::Functions
# Pod::Simple needs to be built before Pod::Functions, but after 'if'
# lib needs to be built before IO-Compress
# This seems to be the simplest way to ensure this ordering:
my (@first, @other);
my (@first, @second, @other);
foreach (@extspec) {
if ($_ eq 'Cwd' || $_ eq 'Pod/Simple' || $_ eq 'lib') {
if ($_ eq 'Cwd' || $_ eq 'if' || $_ eq 'lib') {
push @first, $_;
}
elsif ($_ eq 'Pod/Simple') {
push @second, $_;
} else {
push @other, $_;
}
}
@extspec = (@first, @other);
@extspec = (@first, @second, @other);
}
if ($Config{osname} eq 'catamount' and @extspec) {