Skip Menu |

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

Report information
The Basics
Id: 66857
Status: open
Priority: 0/
Queue: Module-Build

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

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



Subject: installdeps --cpan_client does not find a local client
The following command fails because it fails to find 'cpanm': $ perl Build.PL --install_base ~/.perl $ ./Build install_deps --cpan_client cpanm cpan_client 'cpanm' is not executable My App::cpanminus client is installed in ~/.perl/bin which is in PATH, but M::B::Base seems a bit too strict on the path where it looks for. My environment: PERL5LIB="$HOME/.perl/lib/perl5" PATH="$HOME/.perl/bin:$PATH" PERL_CPANM_OPT="-l $HOME/.perl" -- Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/
The documentation is very specific that the cpan client is relative to the perl that executed Build.PL. This ensures that a similarly named client (which could have the wrong shebang line) isn't executed because of where it lies within $PATH. The risk of installing to the wrong perl outweighs the convenience of a broader PATH search.
Subject: Change --cpan_client error message to show ./relative/path
On Fri Jul 08 11:34:50 2011, DAGOLDEN wrote: Show quoted text
> The documentation is very specific that the cpan client is relative to > the perl that executed Build.PL. This ensures that a similarly named > client (which could have the wrong shebang line) isn't executed because > of where it lies within $PATH. The risk of installing to the wrong perl > outweighs the convenience of a broader PATH search.
I think the error message could be made more clear. If the user is expecting $PATH to be searched. That sensible assumption can be countered by making it clear it is instead a relative path. Changing "relative/path" to "./relative/path" would do that. "cpan_client './cpanm' does not exist"