Skip Menu |

This queue is for tickets about the AnyEvent-I3 CPAN distribution.

Report information
The Basics
Id: 120943
Status: resolved
Priority: 0/
Queue: AnyEvent-I3

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Makefile.PL broken without "." in @INC
5.25.11+ w/ -Ddefault_inc_excludes_dot and PERL_USE_UNSAFE_INC=0 in ENV:



Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.25.11/x86_64-linux /usr/local/lib64/perl5/5.25.11 /usr/lib64/perl5/vendor_perl/5.25.11/x86_64-linux /usr/lib64/perl5/vendor_perl/5.25.11 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.25.11 /usr/lib64/perl5/vendor_perl/5.22.3 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.25.11/x86_64-linux /usr/lib64/perl5/5.25.11) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.

-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Am Di 04. Apr 2017, 16:05:44, KENTNL schrieb: Show quoted text
> 5.25.11+ w/ -Ddefault_inc_excludes_dot and PERL_USE_UNSAFE_INC=0 in ENV: > > > > Can't locate inc/Module/Install.pm in @INC (you may need to install the > inc::Module::Install module) (@INC contains: /etc/perl > /usr/local/lib64/perl5/5.25.11/x86_64-linux /usr/local/lib64/perl5/5.25.11 > /usr/lib64/perl5/vendor_perl/5.25.11/x86_64-linux > /usr/lib64/perl5/vendor_perl/5.25.11 /usr/local/lib64/perl5 > /usr/lib64/perl5/vendor_perl/5.25.11 /usr/lib64/perl5/vendor_perl/5.22.3 > /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.25.11/x86_64-linux > /usr/lib64/perl5/5.25.11) at Makefile.PL line 1. > BEGIN failed--compilation aborted at Makefile.PL line 1. > > -- > - CPAN kentnl@cpan.org > - Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Thanks for the report. Do you have a suggestion as to how to fix the issue?

On 2017-04-09 06:13:49, MSTPLBG wrote:
> Am Di 04. Apr 2017, 16:05:44, KENTNL schrieb:
> > 5.25.11+ w/ -Ddefault_inc_excludes_dot and PERL_USE_UNSAFE_INC=0 in ENV:
> >
> >
> >
> > Can't locate inc/Module/Install.pm in @INC (you may need to install the
> > inc::Module::Install module) (@INC contains: /etc/perl
> > /usr/local/lib64/perl5/5.25.11/x86_64-linux /usr/local/lib64/perl5/5.25.11
> > /usr/lib64/perl5/vendor_perl/5.25.11/x86_64-linux
> > /usr/lib64/perl5/vendor_perl/5.25.11 /usr/local/lib64/perl5
> > /usr/lib64/perl5/vendor_perl/5.25.11 /usr/lib64/perl5/vendor_perl/5.22.3
> > /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.25.11/x86_64-linux
> > /usr/lib64/perl5/5.25.11) at Makefile.PL line 1.
> > BEGIN failed--compilation aborted at Makefile.PL line 1.
> >
> > --
> > - CPAN kentnl@cpan.org
> > - Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
>
>
> Thanks for the report. Do you have a suggestion as to how to fix the issue?


There's some draft write up here: http://www.nntp.perl.org/group/perl.perl5.porters/2017/04/msg243878.html

 

But for Module::Install, the sensible thing is generally do just `use lib '.'` in Makefile.PL

Make sure you test the changes on perl 5.25.11 or newer, with PERL_USE_UNSAFE_INC=0 explicitly set in your environment.

If however if tests and friends are similarly affected by this problem, more caution should be used as per http://www.nntp.perl.org/group/perl.perl5.porters/2017/04/msg243881.html

Wherin you load requirements with more care without resurrected the implict cwd mechanic.

You can do this for Makefile.PL as well, technically, but its more effort than most people bargain on:

https://metacpan.org/source/KENTNL/Parse-Method-Signatures-1.003018_01/Makefile.PL#L1-6


-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
 

Am Sa 08. Apr 2017, 18:24:15, KENTNL schrieb: Show quoted text
> On 2017-04-09 06:13:49, MSTPLBG wrote:
> > Am Di 04. Apr 2017, 16:05:44, KENTNL schrieb:
> > > 5.25.11+ w/ -Ddefault_inc_excludes_dot and PERL_USE_UNSAFE_INC=0 in > > > ENV: > > > > > > > > > > > > Can't locate inc/Module/Install.pm in @INC (you may need to install > > > the > > > inc::Module::Install module) (@INC contains: /etc/perl > > > /usr/local/lib64/perl5/5.25.11/x86_64-linux > > > /usr/local/lib64/perl5/5.25.11 > > > /usr/lib64/perl5/vendor_perl/5.25.11/x86_64-linux > > > /usr/lib64/perl5/vendor_perl/5.25.11 /usr/local/lib64/perl5 > > > /usr/lib64/perl5/vendor_perl/5.25.11 > > > /usr/lib64/perl5/vendor_perl/5.22.3 > > > /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.25.11/x86_64-linux > > > /usr/lib64/perl5/5.25.11) at Makefile.PL line 1. > > > BEGIN failed--compilation aborted at Makefile.PL line 1. > > > > > > -- > > > - CPAN kentnl@cpan.org > > > - Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
> > > > > > Thanks for the report. Do you have a suggestion as to how to fix the > > issue?
> > > There's some draft write up here: > http://www.nntp.perl.org/group/perl.perl5.porters/2017/04/msg243878.html > > But for Module::Install, the sensible thing is generally do just `use > lib '.'` > in Makefile.PL > > Make sure you test the changes on perl 5.25.11 or newer, with > PERL_USE_UNSAFE_INC=0 explicitly set in your environment. > > If however if tests and friends are similarly affected by this > problem, more > caution should be used as per > http://www.nntp.perl.org/group/perl.perl5.porters/2017/04/msg243881.html > > Wherin you load requirements with more care without resurrected the > implict cwd > mechanic. > > You can do this for Makefile.PL as well, technically, but its more > effort than > most people bargain on: > > https://metacpan.org/source/KENTNL/Parse-Method-Signatures- > 1.003018_01/Makefile.PL#L1-6 > > > -- > - CPAN kentnl@cpan.org > - Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Thanks. I couldn’t reproduce the issue with Perl 5.24.1 (from Debian), neither with nor without PERL_USE_UNSAFE_INC=0, so I went ahead and did a blind fix. AnyEvent::I3 0.17 includes “use lib '.'”. If this doesn’t suffice, please send a tested patch (or, even better, a pull request on https://github.com/i3/AnyEvent-I3) and I’ll gladly merge it.