arsv / perl-cross

configure and cross-compile perl
Other
81 stars 29 forks source link

Handle (Scalar::)?List::Util in make testpack #69

Closed kiwiroy closed 5 years ago

kiwiroy commented 6 years ago

List::Util is not in the cpan/List-Util directory, but under cpan/Scalar-List-Utils for perl-5.26.2. I assume this changed sometime between 5.18.0 and 5.26.2, so should handle both.

arsv commented 6 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

arsv commented 5 years ago

Merged.