Project

General

Profile

Actions

action #52736

open

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 almost 5 years ago. Updated over 3 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Regressions/Crashes
Target version:
Start date:
2019-06-07
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by okurz almost 5 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.

Actions #2

Updated by okurz over 3 years ago

  • Target version set to future
Actions

Also available in: Atom PDF