Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13106 - SpamAssassin modules not placed in directory seen by @INC
Summary: SpamAssassin modules not placed in directory seen by @INC
Status: RESOLVED DUPLICATE of bug 9067
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-02 12:11 UTC by Greg Jednaszewski
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Jednaszewski 2003-01-02 12:11:45 UTC
With the recent unmasking of perl 5.8.0 (and subsequent reversion back to 
5.6.1), I noticed that spamassassin stopped working.  When I ran spamassassin 
from the command line, I got the following result:

[greg@horus usr]$spamassassin
Can't locate Mail/SpamAssassin/NoMailAudit.pm in @INC (@INC 
contains: /var/tmp/portage/Mail-SpamAssassin-2.43-
r2/image//usr/lib/site_perl/5.6.1 /usr/lib/perl5/5.6.1/i686-
linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-
linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl /usr/lib/perl5/ven
dor_perl/5.6.1/i686-
linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) 
at /usr/bin/spamassassin line 127.
BEGIN failed--compilation aborted at /usr/bin/spamassassin line 127.

It appeared as if the SpamAssassin modules were in the wrong location.  (They 
were in /usr/lib/site_perl/5.6.1/Mail/SpamAssassin) Most site_perl modules were 
located in /usr/lib/perl5/site_perl.  /usr/lib/site_perl/ indeed was not in 
@INC:

[greg@horus greg]$perl -e 'foreach (@INC) { print "$_\n" }'
/usr/lib/perl5/5.6.1/i686-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i686-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i686-linux
/usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl
.

So, perhaps the ebuild for Mail-SpamAssassin should be placing the perl modules 
in /usr/lib/perl5/site_perl, rather than /usr/lib/site_perl.  As a temporary 
workaround, I created symlinks in the correct places 
in /usr/lib/perl5/site_perl/5.6.1/Mail.

Thanks for taking the time to look at this.
Greg Jednaszewski <greg@attenuated.org>
Comment 1 Greg Jednaszewski 2003-01-02 12:27:52 UTC
I just looked at bug #9756.  I tried emerging Mail-SpamAssassin-2.43-r3.ebuild, 
but this still places all the files under /usr/lib/site_perl, rather 
than /usr/lib/perl5/site_perl.
Comment 2 Roman Majer 2003-01-03 04:08:50 UTC
try reemerging of ExtUtils-MakeMaker and then SpamAssassin again

ExtUtils-MakeMaker should put the modules to right place...
Comment 3 SpanKY gentoo-dev 2003-01-03 06:23:16 UTC

*** This bug has been marked as a duplicate of 9067 ***
Comment 4 Greg Jednaszewski 2003-01-03 08:36:11 UTC
Excellent.  That seemed to work.  Thanks!