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...@bugzilla.spamassassin.org on 2015/11/09 19:44:09 UTC

[Bug 7262] New: test suite ignores INSTALLSITELIB

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

            Bug ID: 7262
           Summary: test suite ignores INSTALLSITELIB
           Product: Spamassassin
           Version: 3.4.1
          Hardware: PC
                OS: Windows 7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Building & Packaging
          Assignee: dev@spamassassin.apache.org
          Reporter: quanah@zimbra.com

When building mail::spamassassin to go into a custom location, many tests fail
due to the inability to find dependent modules that are also in the custom
location.  There seems to be a failed substitution occuring:

t/sa_awl.t ........................ Can't locate NetAddr/IP.pm in @INC (you may
need to install the NetAddr::IP module) (@INC contains: ../blib/lib
@@INSTALLSITELIB@@ /etc/perl /usr/local/lib/perl/5.18.2
/usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
/usr/share/perl/5.18 /usr/local/lib/site_perl) at
../blib/lib/Mail/SpamAssassin/Util.pm line 76.


Note the @@INSTALLSITELIB@@ instead of the actual location specified (In my
case, /opt/zimbra/common/lib/perl5)

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

[Bug 7262] test suite ignores INSTALLSITELIB

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

Kevin A. McGrail <km...@apache.org> changed:

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

--- Comment #6 from Kevin A. McGrail <km...@apache.org> ---
Unless make test indicates a failure in the code, using it with custom
locations, etc. seems like a bad test.

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

[Bug 7262] test suite ignores INSTALLSITELIB

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

--- Comment #4 from Quanah Gibson-Mount <qu...@zimbra.com> ---
(In reply to Kevin A. McGrail from comment #3)
> I wonder if that's related to bug 7188...

After hacking my site lib into a number of the files, I finally got the test
suite to run.  So it seems the replacement should happen during "make" rather
than at "make install" time, if it is expected to be able to run the test
suite.

I had various other failures once that was done.  Not sure if you want further
reports on those issues. ;)

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

[Bug 7262] test suite ignores INSTALLSITELIB

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

--- Comment #5 from Kevin A. McGrail <km...@pccc.com> ---
It's an interesting question.  make test is something I primarily use to
indicate if a release is ready.  Should it work in other instances, I would say
yes but it's likely a lower priority.

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

[Bug 7262] test suite ignores INSTALLSITELIB

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

Kevin A. McGrail <km...@pccc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kmcgrail@pccc.com

--- Comment #3 from Kevin A. McGrail <km...@pccc.com> ---
I wonder if that's related to bug 7188...

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

[Bug 7262] test suite ignores INSTALLSITELIB

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

--- Comment #2 from Quanah Gibson-Mount <qu...@zimbra.com> ---
And NetAddr::IP is indeed present:

build@u1490:~/p4/zimbra/main/ThirdParty/Perl/tmp/UBUNTU14_64/zimbra-perl-mail-spamassassin$
ls /opt/zimbra/common/lib/perl5/x86_64-linux-gnu-thread-multi/NetAddr/
IP  IP.pm

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

[Bug 7262] test suite ignores INSTALLSITELIB

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

Quanah Gibson-Mount <qu...@zimbra.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |quanah@zimbra.com

--- Comment #1 from Quanah Gibson-Mount <qu...@zimbra.com> ---
Reference, here's my make test:

build@u1490:~/p4/zimbra/main/ThirdParty/Perl/tmp/UBUNTU14_64/zimbra-perl-mail-spamassassin$
PERL5LIB=/opt/zimbra/common/lib/perl5 make test
/usr/bin/perl build/mkrules --exit_on_no_src --src rulesrc --out rules
--manifest MANIFEST --manifestskip MANIFEST.SKIP
no source directory found: exiting
/usr/bin/perl build/preprocessor  -Mvars -DVERSION="3.004001"
-DPREFIX="/opt/zimbra/common"
-DDEF_RULES_DIR="/opt/zimbra/data/spamassassin/rules"
-DLOCAL_RULES_DIR="/opt/zimbra/data/spamassassin/localrules"
-DLOCAL_STATE_DIR="/opt/zimbra/data/spamassassin/state"
-DINSTALLSITELIB="/opt/zimbra/common/lib/perl5" -DCONTACT_ADDRESS=""
-Msharpbang -Mconditional -DPERL_BIN="/usr/bin/perl" -DPERL_WARN=""
-DPERL_TAINT="" -m755 -isa-update.raw -osa-update
cp sa-update blib/script/sa-update
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sa-update
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/autolearn.t ..................... Can't locate NetAddr/IP.pm in @INC (you may
need to install the NetAddr::IP module) (@INC contains: ../blib/lib
@@INSTALLSITELIB@@ /etc/perl /usr/local/lib/perl/5.18.2
/usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
/usr/share/perl/5.18 /usr/local/lib/site_perl) at
../blib/lib/Mail/SpamAssassin/Util.pm line 76.
BEGIN failed--compilation aborted at ../blib/lib/Mail/SpamAssassin/Util.pm line
76.
Compilation failed in require at ../blib/lib/Mail/SpamAssassin/Conf.pm line 85.
BEGIN failed--compilation aborted at ../blib/lib/Mail/SpamAssassin/Conf.pm line
85.
Compilation failed in require at ../blib/lib/Mail/SpamAssassin.pm line 71.
BEGIN failed--compilation aborted at ../blib/lib/Mail/SpamAssassin.pm line 71.
Compilation failed in require at ../spamassassin.raw line 78.
BEGIN failed--compilation aborted at ../spamassassin.raw line 78.
t/autolearn.t ..................... 1/2 # Failed test 1 in t/autolearn.t at
line 53
#  t/autolearn.t line 53 is: ok (sarun ("-L -t < data/nice/001",
\&patterns_run_cb));
        Not found: autolearned as spam =  autolearn=spam  at t/autolearn.t line
54.
# Failed test 2 in t/SATest.pm at line 755

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