Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 62276

Summary: mail-filter/spamassassin-2.64 stores absolute perl binary path in build
Product: Gentoo Linux Reporter: Spider (RETIRED) <spider>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: fuzzyray, gentoo-bugger, rockoo, tisphie
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch against spamassassin-2.64.ebuild

Description Spider (RETIRED) gentoo-dev 2004-08-30 10:46:32 UTC
spider@Darkmere> head -n3  /usr/bin/spamassassin
#!/usr/bin/perl5.8.4 -w



spider@Darkmere> ls -la /usr/bin/perl*
lrwxrwxrwx  1 root root       9 Aug 29 05:50 /usr/bin/perl -> perl5.8.5
-rwxr-xr-x  1 root root 1147464 Aug 29 05:50 /usr/bin/perl5.8.5
-rwxr-xr-x  1 root root   37274 Aug 29 05:50 /usr/bin/perlbug
-rwxr-xr-x  1 root root   17953 Aug 29 05:50 /usr/bin/perlcc
-rwxr-xr-x  1 root root     224 Aug 29 05:50 /usr/bin/perldoc
-rwxr-xr-x  1 root root   11661 Aug 29 05:50 /usr/bin/perlivp



This breaks mailfiltering on all systems that upgrade perl.
Comment 1 Paul Varner (RETIRED) gentoo-dev 2004-08-30 15:36:10 UTC
I ran into this one as well.
Comment 2 Malte S. Stretz 2004-09-15 08:05:06 UTC
Patch in progress...
Comment 3 Malte S. Stretz 2004-09-15 08:17:22 UTC
Created attachment 39646 [details, diff]
patch against spamassassin-2.64.ebuild

Here's the patch which works around the issue.	I'll see if I can make the
detection a bit more intelligent for 3.1.0.
Comment 4 Malte S. Stretz 2004-09-15 08:27:10 UTC
Reassigning to rac so he can commit the fix :)
Comment 5 Malte S. Stretz 2004-11-10 13:23:49 UTC
Reassigning to the Perl herd, maybe somebody wants to create a 2.64-r1 ebuild with this fix to bridge the time till 3.0 is marked stable?
Comment 6 Malte S. Stretz 2004-12-10 16:48:41 UTC
*** Bug 73612 has been marked as a duplicate of this bug. ***
Comment 7 David Röhr 2004-12-18 09:31:25 UTC
Not just the perl-binary path get wrong, but also the lib-path.

use lib '/usr/lib/perl5/vendor_perl/5.8.4';  # substituted at 'make' time

A re-emerge solves both issues.. Hoping 3.x will make it to stable soon.
Comment 8 Malte S. Stretz 2004-12-20 05:25:27 UTC
The lib path is correct.  If you install a perl module, it will go into the versioned path for the perl version you used to install it.  Later versions will also look into "older" libs.  This is true for every perl module.  (And the SpamAssassin apps are bound very tight to their libs.)
Comment 9 Malte S. Stretz 2004-12-21 16:46:41 UTC
Due to bug 64133 SpamAssassin 3.0.2 is on its way to be marked as stable and the bug is fixed in the 3.x ebuild.