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

            Bug ID: 7462
           Summary: spamassassin fails tests without '.' in @INC (Can't
                    locate SATest.pm in @INC)
           Product: Spamassassin
           Version: 3.4.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: spamassassin
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

Created attachment 5461
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5461&action=edit
Patch to add . to @INC so SATest.pm can be found

When setting PERL_USE_UNSAFE_INC=0 in their environment to smoke out runtime
issues ( for terrible reasons explained in
https://wiki.gentoo.org/wiki/Project:Perl/Dot-In-INC-Removal#Counter_Balance )

The following tests will fail

===========================
basic_meta.t
body_mod.t
config_errs.t
debug.t
get_headers.t
idn_dots.t
missing_hb_separator.t
priorities.t
regexp_valid.t
relative_scores.t
reuse.t
uri_html.t
uri.t
uri_text.t
===========================

with errors like:

===========================
Can't locate SATest.pm in @INC (you may need to install the SATest module)
(@INC contains: ../blib/lib
/var/tmp/portage/mail-filter/spamassassin-3.4.1-r12/work/Mail-SpamAssassin-3.4.1/blib/lib
/var/tmp/portage/mail-filter/spamassassin-3.4.1-r12/work/Mail-SpamAssassin-3.4.1/blib/arch
/etc/perl /usr/local/lib64/perl5/5.26.0/x86_64-linux
/usr/local/lib64/perl5/5.26.0 /usr/lib64/perl5/vendor_perl/5.26.0/x86_64-linux
/usr/lib64/perl5/vendor_perl/5.26.0 /usr/local/lib64/perl5
/usr/lib64/perl5/vendor_perl/5.26.0-RC1 /usr/lib64/perl5/vendor_perl/5.25.12
/usr/lib64/perl5/vendor_perl/5.25.11 /usr/lib64/perl5/vendor_perl/5.22.3
/usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.26.0/x86_64-linux
/usr/lib64/perl5/5.26.0) at t/uri_text.t line 21.
BEGIN failed--compilation aborted at t/uri_text.t line 21.
===========================

Fix is to ape what the other tests do any "use lib '.'" before "use SATest" is
called.

Originally noticed in Gentoo Linux:
https://bugs.gentoo.org/show_bug.cgi?id=627678

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

Reply via email to