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

Bug 762469

Summary: mail-filter/MailScanner is broken by 17.1 profiles on amd64
Product: Gentoo Linux Reporter: kfm
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: CONFIRMED ---    
Severity: normal CC: sabel, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description kfm 2020-12-29 20:50:04 UTC
I don't use MailScanner but am reporting this because a prospective user recently asked why it failed to start. Following installation, /usr/sbin/MailScanner contains the following shebang.

  #!/usr/bin/perl -I/usr/lib/MailScanner

However, the ebuild contains four expansions of "$(get_libdir)", meaning that the library code ends up being installed in /usr/lib64. The code is not architecture-specific, so the ebuild should specify "lib" instead.
Comment 1 Philip Taffner 2021-01-09 18:09:33 UTC
This hit me today.

In addition to the mentioned $(get_libdir) issue, also the path to sendmail needs to be adapted in the ebuild.

The ebuild patches /etc/MailScanner/MailScanner.conf to use /usr/lib/sendmail, but it should be /usr/lib64/sendmail instead.

To workaround both issues, I did:

1) ln -s /usr/lib64/MailScanner /usr/lib/MailScanner

2) Changed the path to /usr/lib64/sendmail for both options "Sendmail" and "Sendmail2" in /etc/MailScanner/MailScanner.conf