Closed kiwiroy closed 5 years ago
Yeah that should work fine for any perl version.
One minor note, you don't need the -d 'cpan/...'
checks.
$extensions
gets built at configure time and only lists directories actually present in the source tree.
So just makedir("cpan/Scalar-List-Utils/blib") if $extensions{'cpan/Scalar-List-Utils'};
should be enough.
https://github.com/arsv/perl-cross/blob/master/cnf/configure_mods.sh#L126-L129 https://github.com/arsv/perl-cross/blob/master/cnf/configure_mods.sh#L151-L159
Merged.
List::Util
is not in thecpan/List-Util
directory, but undercpan/Scalar-List-Utils
forperl-5.26.2
. I assume this changed sometime between 5.18.0 and 5.26.2, so should handle both.