Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762469 - mail-filter/MailScanner is broken by 17.1 profiles on amd64
Summary: mail-filter/MailScanner is broken by 17.1 profiles on amd64
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
Depends on:
Reported: 2020-12-29 20:50 UTC by RumpletonBongworth
Modified: 2021-01-09 18:12 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description RumpletonBongworth 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