https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8199
Bug ID: 8199
Summary: sa-compile crashes when used with local::lib env
variable PERL_MM_OPT
Product: Spamassassin
Version: 4.0.0
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: sa-compile
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
If local::lib is being used, sa-compile crashes with output like
/usr/bin/perl Makefile.PL PREFIX=/tmp/.spamassassin53206hlLLKXtmp/ignored
INSTALLSITEARCH=/home/sidney/perl5/var/spamassassin/compiled/5.034/4.000001
Only one of PREFIX or INSTALL_BASE can be given. Not both.
command failed: exit 25
The problem is that the setup for local::lib includes setting an environment
variable with
PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; export PERL_MM_OPT;
which is supposed to be seen by every run of Makefile.PL in modules that are
installed by cpan or cpanm.
This conflicts with sa-compile's run of perl Makefile.PL with the PREFIX
option.
Since sa-compile does not do anything that will call a Makefile.PL to install
into the ~/perl5 local lib, this should be able to be fixed by unsetting
PERL_MM_OPT in sa-compile's inherited ENV.
--
You are receiving this mail because:
You are the assignee for the bug.