You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2023/11/27 00:10:26 UTC

[Bug 8199] New: sa-compile crashes when used with local::lib env variable PERL_MM_OPT

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: dev@spamassassin.apache.org
          Reporter: sidney@sidney.com
  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.

[Bug 8199] sa-compile crashes when used with local::lib env variable PERL_MM_OPT

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8199

Sidney Markowitz <si...@sidney.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Sidney Markowitz <si...@sidney.com> ---
Same fix was needed in t/sa_compile.t which also runs Makefile.PL with the
PREFIX option

$ svn ci -m "bug 8891 ENV var PERL_MM_OPT conflicts with sa-compile"
sa-compile.raw t/sa_compile.t 
Sending        sa-compile.raw
Sending        t/sa_compile.t
Transmitting file data ..done
Committing transaction...
Committed revision 1914143.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8199] sa-compile crashes when used with local::lib env variable PERL_MM_OPT

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8199

Sidney Markowitz <si...@sidney.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sidney@sidney.com
   Target Milestone|Undefined                   |4.0.1

-- 
You are receiving this mail because:
You are the assignee for the bug.