https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7005

Bill Cole <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |cconsult.com

--- Comment #7 from Bill Cole <[email protected]> ---
I think the problem is/was with more than one directory. Running 'port -d test
p5.16-mail-spamassassin' with 3.4.0 fails in t/sa_compile.t with this:

[...]
a Mail-SpamAssassin-3.4.0/build/parse-rules-for-masses
a Mail-SpamAssassin-3.4.0/build/preprocessor
a Mail-SpamAssassin-3.4.0/build/sha1sum.pl
cannot write
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-mail-spamassassin/p5.16-mail-spamassassin/work/Mail-SpamAssassin-3.4.0/t/log/d.sa_compile/inst.basic/foo/etc/mail/spamassassin/v330.pre
at t/sa_compile.t line 85.
t/sa_compile.t .................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 5/5 subtests 

While the same command after cleaning & updating the Portfile to fetch and
build 3.4.1 yields this:

[...]
a Mail-SpamAssassin-3.4.1/build/parse-rules-for-masses
a Mail-SpamAssassin-3.4.1/build/preprocessor
a Mail-SpamAssassin-3.4.1/build/sha1sum.pl
sa-compile: cannot write to /var/opt/spamassassin/compiled/5.016/3.004001,
aborting
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-mail-spamassassin/p5.16-mail-spamassassin/work/Mail-SpamAssassin-3.4.1/t/log/d.sa_compile/inst.basic/foo//libexec/perl5.16/sitebin/sa-compile
--keep-tmps' failed: exit 2 at t/SATest.pm line 991.
t/sa_compile.t .................... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/5 subtests 


Note that 3.4.1 apparently gets further (2 tests passed) and is for some reason
trying to write in /var/opt/spamassassin, *WHICH SHOULDN'T EXIST*

If you actually use MacPorts to install either version -- both of which do work
-- the fact that MacPorts sets LOCALSTATEDIR=/opt/local/var/spamassassin to
build the Makefile means that you get:

# ls -l /opt/local/var/spamassassin/
total 0
drwxr-xr-x  3 root  admin  136 Jul 13  2014 3.003002
drwxr-xr-x  3 root  admin  136 Apr 23 12:49 3.004000
drwxr-xr-x  3 root  admin  136 May  1 18:55 3.004001
drwxr-xr-x  3 root  admin  102 May  1 23:35 compiled

But this hint isn't making it to the test rig. The "MakeMaker ARGV" line in the
Makefile created in sa_compile.t is a smoking gun. 

In short: replace line 129 of t/sa_compile.t with something that doesn't assume
PREFIX is the only directory anyone will customize.

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

Reply via email to