Skip Menu |

This queue is for tickets about the Module-Install CPAN distribution.

Report information
The Basics
Id: 39929
Status: resolved
Priority: 0/
Queue: Module-Install

People
Owner: Nobody in particular
Requestors: thomas.erskine [...] gmail.com
Cc:
AdminCc:

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



Subject: doesn't seem to deal with objects in @INC
Environment: Module::Install 0.64 perl 5.8.8 linux Symptoms: $ perl Makefile.PL include /user/e/erskinet/src/MyLibrary/inc/Module/Install.pm Operation "eq": no method found, left argument in overloaded package MSDW::Version::Handler::Readdir, right argument has no overloaded magic at //ms/dist/perl5/PROJ/Module-Install/0.64/lib/perl5/Module/Install/Admin.pm line 121. BEGIN failed--compilation aborted at Makefile.PL line 7. The problem appears to be caused by our local installation using objects in @INC (which is documented, in case you've not encountered it before). I hacked a local copy of the init method to change: unshift @INC, $self->{prefix} unless grep { $_ eq $self->{prefix} } @INC; to unshift @INC, $self->{prefix}; which helped. Now I get: $ perl Makefile.PL include /user/e/erskinet/src/MyLibrary/inc/Module/Install.pm Operation "eq": no method found, left argument in overloaded package MSDW::Version::Handler::Readdir, right argument has no overloaded magic at //ms/dist/perl5/PROJ/Module-Install/0.64/lib/perl5/Module/Install/Admin.pm line 170. BEGIN failed--compilation aborted at Makefile.PL line 13. This problem occurs in load_all_extensions. I changed: next if $inc eq $self->{prefix} or ref($inc); to look like: next if ref($inc) or $inc eq $self->{prefix}; and got by that. However, now I've got to deal with the problem that Module::Install has copied unpatched versions of these into my application. I won't say that it's unimportant, but it's not likely to bother many people.
Subject: Re: [rt.cpan.org #39929] doesn't seem to deal with objects in @INC
Date: Fri, 10 Oct 2008 20:58:35 +1100
To: bug-Module-Install [...] rt.cpan.org
From: Paul Fenwick <pjf [...] perltraining.com.au>
G'day Thomas and MI folks, Thomas Erskine via RT wrote: Show quoted text
> The problem appears to be caused by our local installation using objects > in @INC (which is documented, in case you've not encountered it before).
I've written a fix for this based upon your description, so M::I should no longer look too hard at objects inside @INC. However I'm currently on a train and have only an older copy of the module in my working area, so it may take a day or two to reach the main svn repo. Feel free to nudge me if it doesn't appear by Monday. Provided Adam and the other M::I maintainers don't spot any problems with my work, you should see the fix in the next M::I release. All the best, Paul -- Paul Fenwick <pjf@perltraining.com.au> | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia | Fax: +61 3 9354 2681
Subject: Re: [rt.cpan.org #39929] doesn't seem to deal with objects in @INC
Date: Sat, 11 Oct 2008 11:57:45 +1100
To: bug-Module-Install [...] rt.cpan.org
From: Paul Fenwick <pjf [...] perltraining.com.au>
Just a quick note to say that my changes have been committed in revision 4339. Cheerio, Paul -- Paul Fenwick <pjf@perltraining.com.au> | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia | Fax: +61 3 9354 2681
Closed this ticket as this was fixed in 0.78. Thanks.