Skip Menu |

This queue is for tickets about the Geo-Coder-Many CPAN distribution.

Report information
The Basics
Id: 91283
Status: resolved
Priority: 0/
Queue: Geo-Coder-Many

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

Bug Information
Severity: (no value)
Broken in:
  • 0.43
  • 0.44
Fixed in: (no value)



Subject: Hack for conditional dependencies not working?
On my system Geo::Coder::Bing is installed, but Geo::Coder::Many is not (yet). Trying to run Build.PL fails here: Can't locate Geo/Coder/Many/Bing.pm in @INC (@INC contains: /var/tmp/cpansmoker-1023/CPAN-Reporter-lib-gEH5 /usr/perl5.8.9t/lib/5.8.9/amd64-freebsd-thread-multi /usr/perl5.8.9t/lib/5.8.9 /usr/perl5.8.9t/lib/site_perl/5.8.9/amd64-freebsd-thread-multi /usr/perl5.8.9t/lib/site_perl/5.8.9 .) at /usr/perl5.8.9t/lib/site_perl/5.8.9/Module/Load.pm line 27. Can't locate Geo/Coder/Many/Bing in @INC (@INC contains: /var/tmp/cpansmoker-1023/CPAN-Reporter-lib-gEH5 /usr/perl5.8.9t/lib/5.8.9/amd64-freebsd-thread-multi /usr/perl5.8.9t/lib/5.8.9 /usr/perl5.8.9t/lib/site_perl/5.8.9/amd64-freebsd-thread-multi /usr/perl5.8.9t/lib/site_perl/5.8.9 .) at /usr/perl5.8.9t/lib/site_perl/5.8.9/Module/Load.pm line 27. BEGIN failed--compilation aborted at Build.PL line 54. Problem is probably that load_module() in Build.PL operates only on @INC, and this fails if Geo::Coder::Many is not yet installed. I think this can be fixed by adding local @INC = (@INC, "libs"); before calling load_module() (or so, untested). Regards, Slaven
Hi Slaven, Thanks for the report. I've committed a fix on a branch here: https://github.com/lokku/Geo-Coder-Many/tree/rt-91283 Could you try that out and let me know if it solves your problem? If it does I will merge it to master and push out a 0.45 release. - Alex On Mon Dec 09 13:44:08 2013, SREZIC wrote: Show quoted text
> On my system Geo::Coder::Bing is installed, but Geo::Coder::Many is > not (yet). Trying to run Build.PL fails here: > > Can't locate Geo/Coder/Many/Bing.pm in @INC (@INC contains: > /var/tmp/cpansmoker-1023/CPAN-Reporter-lib-gEH5 > /usr/perl5.8.9t/lib/5.8.9/amd64-freebsd-thread-multi > /usr/perl5.8.9t/lib/5.8.9 /usr/perl5.8.9t/lib/site_perl/5.8.9/amd64- > freebsd-thread-multi /usr/perl5.8.9t/lib/site_perl/5.8.9 .) at > /usr/perl5.8.9t/lib/site_perl/5.8.9/Module/Load.pm line 27. > Can't locate Geo/Coder/Many/Bing in @INC (@INC contains: > /var/tmp/cpansmoker-1023/CPAN-Reporter-lib-gEH5 > /usr/perl5.8.9t/lib/5.8.9/amd64-freebsd-thread-multi > /usr/perl5.8.9t/lib/5.8.9 /usr/perl5.8.9t/lib/site_perl/5.8.9/amd64- > freebsd-thread-multi /usr/perl5.8.9t/lib/site_perl/5.8.9 .) at > /usr/perl5.8.9t/lib/site_perl/5.8.9/Module/Load.pm line 27. > BEGIN failed--compilation aborted at Build.PL line 54. > > Problem is probably that load_module() in Build.PL operates only on > @INC, and this fails if Geo::Coder::Many is not yet installed. I think > this can be fixed by adding > > local @INC = (@INC, "libs"); > > before calling load_module() (or so, untested). > > Regards, > Slaven
Hi Alex, yes, the branch looks better. Build.PL does not die anymore. Regards, Slaven On 2013-12-10 07:05:41, KAORU wrote: Show quoted text
> Hi Slaven, > > Thanks for the report. > > I've committed a fix on a branch here: > > https://github.com/lokku/Geo-Coder-Many/tree/rt-91283 > > Could you try that out and let me know if it solves your problem? > > If it does I will merge it to master and push out a 0.45 release. > > - Alex > > On Mon Dec 09 13:44:08 2013, SREZIC wrote:
> > On my system Geo::Coder::Bing is installed, but Geo::Coder::Many is > > not (yet). Trying to run Build.PL fails here: > > > > Can't locate Geo/Coder/Many/Bing.pm in @INC (@INC contains: > > /var/tmp/cpansmoker-1023/CPAN-Reporter-lib-gEH5 > > /usr/perl5.8.9t/lib/5.8.9/amd64-freebsd-thread-multi > > /usr/perl5.8.9t/lib/5.8.9 /usr/perl5.8.9t/lib/site_perl/5.8.9/amd64- > > freebsd-thread-multi /usr/perl5.8.9t/lib/site_perl/5.8.9 .) at > > /usr/perl5.8.9t/lib/site_perl/5.8.9/Module/Load.pm line 27. > > Can't locate Geo/Coder/Many/Bing in @INC (@INC contains: > > /var/tmp/cpansmoker-1023/CPAN-Reporter-lib-gEH5 > > /usr/perl5.8.9t/lib/5.8.9/amd64-freebsd-thread-multi > > /usr/perl5.8.9t/lib/5.8.9 /usr/perl5.8.9t/lib/site_perl/5.8.9/amd64- > > freebsd-thread-multi /usr/perl5.8.9t/lib/site_perl/5.8.9 .) at > > /usr/perl5.8.9t/lib/site_perl/5.8.9/Module/Load.pm line 27. > > BEGIN failed--compilation aborted at Build.PL line 54. > > > > Problem is probably that load_module() in Build.PL operates only on > > @INC, and this fails if Geo::Coder::Many is not yet installed. I think > > this can be fixed by adding > > > > local @INC = (@INC, "libs"); > > > > before calling load_module() (or so, untested). > > > > Regards, > > Slaven
Nice, thanks Slaven! Merged into master[0] and 0.45 live on CPAN[1] :-) - Alex [0] https://github.com/lokku/Geo-Coder-Many/commits/master [1] https://metacpan.org/release/Geo-Coder-Many