Skip Menu |

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 87897
Status: open
Priority: 0/
Queue: App-perlbrew

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

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



Subject: [patch] special handling of Cwd breaks on Fedora's perl
The "special" handling of Cwd breaks on Fedora's perl. In Fedora, dual-life modules that come from the CPAN rather than system perl get installed to vendor locations. Simple fix is to include vendorlib & vendorarch in the "special" @INC for Cwd.
Subject: perlbrew-vendor.patch
diff -up App-perlbrew-0.66/lib/App/perlbrew.pm.orig App-perlbrew-0.66/lib/App/perlbrew.pm --- App-perlbrew-0.66/lib/App/perlbrew.pm.orig 2013-08-02 16:27:44.000000000 -0600 +++ App-perlbrew-0.66/lib/App/perlbrew.pm 2013-08-16 08:20:11.360091992 -0600 @@ -12,7 +12,7 @@ BEGIN { @INC = ( $Config{sitelibexp}."/".$Config{archname}, $Config{sitelibexp}, - @Config{qw<archlibexp privlibexp>}, + @Config{qw<vendorlibexp vendorarchexp archlibexp privlibexp>}, ); require Cwd;
Subject: Re: [rt.cpan.org #87897] [patch] special handling of Cwd breaks on Fedora's perl
Date: Fri, 16 Aug 2013 21:05:36 +0200
To: bug-App-perlbrew [...] rt.cpan.org
From: Kang-min Liu <gugod [...] gugod.org>
On 13/8/16 下午4:43, Iain Arnell via RT wrote: Show quoted text
> Fri Aug 16 10:43:44 2013: Request 87897 was acted upon. > Transaction: Ticket created by iarnell > Queue: App-perlbrew > Subject: [patch] special handling of Cwd breaks on Fedora's perl > Broken in: 0.66 > Severity: Normal > Owner: Nobody > Requestors: iarnell@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=87897 > > > > The "special" handling of Cwd breaks on Fedora's perl. In Fedora, dual-life modules that come from the CPAN rather than system perl get installed to vendor locations. Simple fix is to include vendorlib & vendorarch in the "special" @INC for Cwd.
Big thanks for fixing this for Fedora uses. I've applied the patch to the git repos. Cheers, Kang-min Liu
Subject: [patch] resetting of @INC breaks on RHEL 7 and CentOS 7 due to missing vendorlibexp and vendorarchexp
I just hit a similar problem while upgrading to CentOS 7. Can't locate Getopt/Long.pm in @INC (@INC contains: FatPacked::13430888=HASH(0xccf068) /usr/share/perl5 /usr/lib64/perl5 /usr/local/share/perl5 /usr/local/lib64/perl5) perl -V reports @INC as: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 What's missing are the vendorlibexp and vendorarchexp directories, where RedHat, in its infinite wisdom, puts modules like Getopt::Long. Here's the fix: --- a/perlbrew/bin/perlbrew +++ b/perlbrew/bin/perlbrew @@ -1,6 +1,6 @@ #!/usr/bin/perl -BEGIN { use Config; @INC = @Config{qw(privlibexp archlibexp sitelibexp sitearchexp)} }; +BEGIN { use Config; @INC = @Config{qw(privlibexp archlibexp vendorlibexp vendorarchexp sitelibexp sitearchexp)} }; # This chunk of stuff was generated by App::FatPacker. To find the original
在 2015-三月-11 10:42:33 星期三 時,TIMB 寫到: Show quoted text
> I just hit a similar problem while upgrading to CentOS 7. > > Can't locate Getopt/Long.pm in @INC (@INC contains: > FatPacked::13430888=HASH(0xccf068) /usr/share/perl5 /usr/lib64/perl5 > /usr/local/share/perl5 /usr/local/lib64/perl5) > > perl -V reports @INC as: > > /usr/local/lib64/perl5 > /usr/local/share/perl5 > /usr/lib64/perl5/vendor_perl > /usr/share/perl5/vendor_perl > /usr/lib64/perl5 > /usr/share/perl5 > > What's missing are the vendorlibexp and vendorarchexp directories, > where RedHat, in its infinite wisdom, puts modules like Getopt::Long. > > Here's the fix: > > --- a/perlbrew/bin/perlbrew > +++ b/perlbrew/bin/perlbrew > @@ -1,6 +1,6 @@ > #!/usr/bin/perl > > -BEGIN { use Config; @INC = @Config{qw(privlibexp archlibexp > sitelibexp sitearchexp)} }; > +BEGIN { use Config; @INC = @Config{qw(privlibexp archlibexp > vendorlibexp vendorarchexp sitelibexp sitearchexp)} };
hi Tim, Thank you for reporting the issue. The earlier patch in this ticket has already been applied (and including vendor libs): https://raw.githubusercontent.com/gugod/App-perlbrew/master/perlbrew I noticed that the order of them seems to be different and that might be an issue... but would you mind trying that and see if it already fix your case ? Cheers, Kang-min Liu