Skip Menu |
 

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 65397
Status: open
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: softdev [...] leandrohermida.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.9007
  • 0.9008
  • 0.9009
  • 0.9010
  • 0.9011
Fixed in: (no value)



Subject: CPANPLUS always looks at $HOME/.cpanplus even if you change base
Download (untitled) / with headers
text/plain 431b
Hi, CPANPLUS seems to have hardcoded somewhere to always look for $HOME/.cpanplus even if you change base using s conf. This makes it a pain to manage multiple CPANPLUS installs when you are managing more than one Perl installation (e.g. different versions) as they both want to use the same $HOME/.cpanplus. It would be nice if CPANPLUS could use $base/.cpanplus instead then nothing would clobber anything else. best, Leandro
Subject: Re: [rt.cpan.org #65397] CPANPLUS always looks at $HOME/.cpanplus even if you change base
Date: Thu, 3 Feb 2011 16:29:02 +0000
To: Leandro Hermida via RT <bug-CPANPLUS [...] rt.cpan.org>
From: "Chris 'BinGOs' Williams" <chris [...] bingosnet.co.uk>
Download (untitled) / with headers
text/plain 1.3k
On Thu, Feb 03, 2011 at 09:13:32AM -0500, Leandro Hermida via RT wrote: Show quoted text
> Thu Feb 03 09:13:31 2011: Request 65397 was acted upon. > Transaction: Ticket created by softdev@leandrohermida.com > Queue: CPANPLUS > Subject: CPANPLUS always looks at $HOME/.cpanplus even if you change base > Broken in: 0.9007, 0.9008, 0.9009, 0.9010, 0.9011 > Severity: Important > Owner: Nobody > Requestors: softdev@leandrohermida.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=65397 > > > > Hi, > > CPANPLUS seems to have hardcoded somewhere to always look for > $HOME/.cpanplus even if you change base using s conf. This makes it a > pain to manage multiple CPANPLUS installs when you are managing more > than one Perl installation (e.g. different versions) as they both want > to use the same $HOME/.cpanplus. It would be nice if CPANPLUS could use > $base/.cpanplus instead then nothing would clobber anything else. >
This is a chicken and egg situation. base is stored in the configuration file, so how do we find the configuration file to find where we should find the configuration file. Exactly. You can take advantage of the APPDATA environment variable to change where it locates the .cpanplus directory. or see CPANPLUS::Config::BaseEnv module on CPAN. Cheers, -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

From: softdev [...] leandrohermida.com
Download (untitled) / with headers
text/plain 1.4k
On Thu Feb 03 11:29:17 2011, chris@bingosnet.co.uk wrote: Show quoted text
> On Thu, Feb 03, 2011 at 09:13:32AM -0500, Leandro Hermida via RT > wrote:
> > Hi, > > > > CPANPLUS seems to have hardcoded somewhere to always look for > > $HOME/.cpanplus even if you change base using s conf. This makes it
> a
> > pain to manage multiple CPANPLUS installs when you are managing more > > than one Perl installation (e.g. different versions) as they both
> want
> > to use the same $HOME/.cpanplus. It would be nice if CPANPLUS could
> use
> > $base/.cpanplus instead then nothing would clobber anything else. > >
> > This is a chicken and egg situation. > > base is stored in the configuration file, so how do we find the > configuration > file to find where we should find the configuration file. > > Exactly. > > You can take advantage of the APPDATA environment variable to change > where > it locates the .cpanplus directory. > > or see CPANPLUS::Config::BaseEnv module on CPAN. > > Cheers,
Hi Chris, Thank you very much what you suggested works. To solve the chicken-egg problem maybe doing it the way CPAN does it would work? With CPAN you don't have this problem because the default global configuration file is located with the library e.g. /home/hermida/soft/perl/5.12.3/lib/5.12.3/CPAN/Config.pm so it doesn't need to read the config file to get cpan_home to find the location of config file. Then you could have a user-specific CPAN configs with $cpan_home/CPAN/MyConfig.pm


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.