Skip Menu |

This queue is for tickets about the Hijk CPAN distribution.

Report information
The Basics
Id: 98454
Status: resolved
Priority: 0/
Queue: Hijk

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

Bug Information
Severity: Important
Broken in: 0.14
Fixed in:
  • 0.15
  • 0.16



Subject: Install fails w/ " Can't locate Module/CPANfile/Result.pm in @INC "

Looks like MI didn't bundle something, *AND* its not resolvable via cpan API.

Configuring Hijk-0.14

Running Makefile.PL

Can't locate Module/CPANfile/Result.pm in @INC (@INC contains: inc /home/travis/perl5/perlbrew/perls/5.10/lib/5.10.1/x86_64-linux /home/travis/perl5/perlbrew/perls/5.10/lib/5.10.1 /home/travis/perl5/perlbrew/perls/5.10/lib/site_perl/5.10.1/x86_64-linux /home/travis/perl5/perlbrew/perls/5.10/lib/site_perl/5.10.1 .) at inc/Module/CPANfile/Environment.pm line 4.

BEGIN failed--compilation aborted at inc/Module/CPANfile/Environment.pm line 4.

Compilation failed in require at inc/Module/CPANfile.pm line 6.

BEGIN failed--compilation aborted at inc/Module/CPANfile.pm line 6.

Compilation failed in require at inc/Module/Install/CPANfile.pm line 7.

BEGIN failed--compilation aborted at inc/Module/Install/CPANfile.pm line 7.

Compilation failed in require at inc/Module/Install.pm line 307.

Cannot determine perl version info from lib/Hijk.pm

Unknown function is found at Makefile.PL line 6.

Execution of Makefile.PL aborted due to runtime errors.

Subject: Re: [rt.cpan.org #98454] Install fails w/ " Can't locate Module/CPANfile/Result.pm in @INC "
Date: Sat, 30 Aug 2014 13:35:37 +0900
To: bug-Hijk [...] rt.cpan.org
From: Kang-min Liu <gugod [...] gugod.org>
Kent Fredric via RT writes: Show quoted text
> Looks like MI didn't bundle something, *AND* its not resolvable via cpan API. > > Configuring Hijk-0.14 > > Running Makefile.PL > > Can't locate Module/CPANfile/Result.pm in @INC (@INC contains: inc > /home/travis/perl5/perlbrew/perls/5.10/lib/5.10.1/x86_64-linux
This looks odd. But thanks for pasting the stack trace. I'll look into it. -- Cheers, Kang-min Liu

Hm, found a very probable cause, Module::CPANfile::Result doesn't exist on CPAN since 24 hours ago

 

https://metacpan.org/diff/file?target=MIYAGAWA/Module-CPANfile-1.1000/&amp;source=MIYAGAWA/Module-CPANfile-1.0002/#lib/Module/CPANfile/Result.pm

 

The inc'd MI  Module::CPANfile::Environment still depends on it, but does not depend on it.

So you're shipping only half of Module::CPANfile, and secretly requring the other half already installed, which, they no longer are.

So its also relying on the quirk of our install chain that modules that get removed from a dist, don't get removed from the system.
 

rm $(pm_which Module::CPANfile::Result)
cpanm Module::CPANfile@1.0000

cpanm Hijk  # bang

cpanm "Module::CPANfile@1.0002"

cpanm Hijk  # works again.

This appears to have been fixed with the realease of 0.15, and appears to still work in 0.16.  Diff confirms relevant inc/ things did indeed change.
On Fri Aug 29 21:28:43 2014, KENTNL wrote: Show quoted text
> Looks like MI didn't bundle something, *AND* its not resolvable via > cpan API. > > Configuring Hijk-0.14 > > Running Makefile.PL > > Can't locate Module/CPANfile/Result.pm in @INC (@INC contains: inc > /home/travis/perl5/perlbrew/perls/5.10/lib/5.10.1/x86_64-linux > /home/travis/perl5/perlbrew/perls/5.10/lib/5.10.1 > /home/travis/perl5/perlbrew/perls/5.10/lib/site_perl/5.10.1/x86_64- > linux
I failed to reply this mail earlier. But miyagawa did a quick analysis and this is a combination of: - Me not wrapping the call of 'cpanfile()' in a 'if ($Module::Install::AUTHOR) { ... }' block - Module::Install use the "remote" version of Module::CPANfile distribution to decide the list of files to put under "inc/" - miyagawa shipped a new release of Module::CPANfile just before a new version of Hijk It is unrelated to Hijk functionaly in anyways (althogh it was breaking timeout as avar mentioned in the Changelog.) -- Cheers, Kang-min Liu
Subject: Re: [rt.cpan.org #98454] Install fails w/ " Can't locate Module/CPANfile/Result.pm in @INC "
Date: Mon, 1 Sep 2014 02:50:17 +0200
To: bug-Hijk [...] rt.cpan.org
From: Ævar Arnfjörð Bjarmason <avarab [...] gmail.com>
The timeout bug was unrelated. It just happened to be fixed in the same release as this M::I fix. On 1 Sep 2014 02:46, "Kang-min Liu via RT" <bug-Hijk@rt.cpan.org> wrote: Show quoted text
> Queue: Hijk > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=98454 > > > On Fri Aug 29 21:28:43 2014, KENTNL wrote:
> > Looks like MI didn't bundle something, *AND* its not resolvable via > > cpan API. > > > > Configuring Hijk-0.14 > > > > Running Makefile.PL > > > > Can't locate Module/CPANfile/Result.pm in @INC (@INC contains: inc > > /home/travis/perl5/perlbrew/perls/5.10/lib/5.10.1/x86_64-linux > > /home/travis/perl5/perlbrew/perls/5.10/lib/5.10.1 > > /home/travis/perl5/perlbrew/perls/5.10/lib/site_perl/5.10.1/x86_64- > > linux
> > > > I failed to reply this mail earlier. But miyagawa did a quick analysis > and this is a combination of: > > - Me not wrapping the call of 'cpanfile()' in a 'if > ($Module::Install::AUTHOR) { ... }' block > > - Module::Install use the "remote" version of Module::CPANfile > distribution to decide > the list of files to put under "inc/" > > - miyagawa shipped a new release of Module::CPANfile just before a new > version of Hijk > > It is unrelated to Hijk functionaly in anyways (althogh it was breaking > timeout as avar mentioned in the Changelog.) > > -- > Cheers, > Kang-min Liu > >
On Sun Aug 31 20:50:27 2014, avarab@gmail.com wrote: Show quoted text
> The timeout bug was unrelated. It just happened to be fixed in the same > release as this M::I fix.
Show quoted text
> > > > It is unrelated to Hijk functionaly in anyways (althogh it was breaking > > timeout as avar mentioned in the Changelog.) > >
Oh yes. For the sake of correction, I meant to to say "timeout logic was broken in Hijk 0.14"