Project

General

Profile

action #52736

Make it obvious why we call cpanm with an invalid mirror URL (was: error in package build about wrong use of cpanm)

Added by okurz about 2 years ago. Updated 12 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Concrete Bugs
Target version:
Start date:
2019-06-07
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

[   71s] + cpanm --installdeps --with-feature=test .
[   73s] !
[   73s] ! Can't write to /usr/lib/perl5/site_perl/5.28.1 and /usr/bin: Installing modules to /home/abuild/perl5
[   73s] ! To turn off this warning, you have to do one of the following:
[   73s] !   - run me as a root or with --sudo option (to install to /usr/lib/perl5/site_perl/5.28.1 and /usr/bin)
[   73s] !   - Configure local::lib in your existing shell to set PERL_MM_OPT etc.
[   73s] !   - Install local::lib by running the following commands
[   73s] !
[   73s] !         cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
[   73s] !

Suggestion

I guess we can just configure cpanm call with --local-lib

History

#1 Updated by okurz about 2 years ago

  • Subject changed from error in package build about wrong use of cpanm to Make it obvious why we call cpanm with an invalid mirror URL (was: error in package build about wrong use of cpanm)

I think I was just being confused by what that cpanm call should do. There seems to be nothing wrong but the intention of this call in the tests could be made more obvious, e.g. that cpanm is called only to ensure that we have all dependencies already properly covered with the installed packages.

#2 Updated by okurz 12 months ago

  • Target version set to future

Also available in: Atom PDF