tokuhirom / Minilla

Authorizing tool for CPAN modules
https://metacpan.org/release/Minilla
Other
97 stars 65 forks source link

Ignore otherlibdirs in cmd_perl #205

Closed tokuhirom closed 7 years ago

tokuhirom commented 7 years ago

@kazuho san reports following issue. M::B says Can't locate the perl binary used to run this script.

[VTGBHmkp] $ /usr/bin/perl -I/etc/perl -I/usr/lib/x86_64-linux-gnu/perl5/5.22 -I/usr/share/perl5 -I/usr/local/lib/site_perl -I/usr/lib/x86_64-linux-gnu/perl-base -I. Build.PL
> Can't locate the perl binary used to run this script in (/usr/bin /usr/bin /usr/bin /home/kazuho/bin /home/kazuho/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games)
> Giving up.
> Removing /mydev/p5-Server-Starter/.build/VTGBHmkp

It caused by ubuntu's system perl is compiled with otherlibdirs option. And otherlibdirs options contains /usr/lib/x86_64-linux-gnu/perl5/5.22.

> /usr/bin/perl -I/etc/perl -I/usr/lib/x86_64-linux-gnu/perl5/5.22 -I/usr/share/perl5 -I/usr/local/lib/site_perl -I/usr/lib/x86_64-linux-gnu/perl-base -I. -MConfig -le 'print $INC{"Config.pm"}'
/usr/lib/x86_64-linux-gnu/perl-base/Config.pm

> /usr/bin/perl -MConfig -le 'print $INC{"Config.pm"}'
/usr/lib/x86_64-linux-gnu/perl/5.22/Config.pm

Minilla removes standard include paths sitelibexp, sitearchexp, privlibexp and archlibexp. We should remove otherlibdirs too.