Ebuild install /etc/cron.daily/update-spamassassin-rules that run sa-update that cause this errors: ------- plugin: failed to parse plugin (from @INC): Can't locate BSD/Resource.pm in @INC (you may need to install the BSD::Resource module) (@INC contains: lib /usr/lib64/perl5/vendor_perl/5.24.3/x86_64-linux /usr/lib64/perl5/vendor_perl/5.24.3 /etc/perl /usr/local/lib64/perl5/5.24.3/x86_64-linux /usr/local/lib64/perl5/5.24.3 /usr/local/lib64/perl5/5.24.1/x86_64-linux /usr/local/lib64/perl5/5.24.1 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.24.1/x86_64-linux /usr/lib64/perl5/vendor_perl/5.24.1 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.24.3/x86_64-linux /usr/lib64/perl5/5.24.3) at /usr/lib64/perl5/vendor_perl/5.24.3/Mail/SpamAssassin/Plugin/ResourceLimits.pm line 79. BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.24.3/Mail/SpamAssassin/Plugin/ResourceLimits.pm line 79. Compilation failed in require at (eval 170) line 1. plugin: failed to parse plugin (from @INC): Attempt to reload Mail/SpamAssassin/Plugin/ResourceLimits.pm aborted. Compilation failed in require at (eval 252) line 1. ------- How to check: ------- # sa-update -D 2>&1 |grep fail >>> Nov 12 11:58:43.923 [29700] dbg: diag: [...] module not installed: BSD::Resource ('require' failed) # grep Resource [pathtoporagetree]/mail-filter/spamassassin/* >>> [empty] ------- The problem occurs only when the sa-update downloads new rules, which is relatively rare.
Actually it's sa-compile that's outputting the error and only when the resource limit's plugin is enabled. ========================================================= # ResourceLimits - assure your spamd child processes # do not exceed specified CPU or memory limit loadplugin Mail::SpamAssassin::Plugin::ResourceLimits ========================================================= I'll submit a PR with the dependency. Thanks for the report Vladimir.
PR submitted: https://github.com/gentoo/gentoo/pull/10460 Also, bug #619052 stabilized dev-perl/BSD-Resource for most arches. We might want to reopen that for arm, ppc, & ppc64 at some point.
Friendly ping: Github PR is two weeks old. Any reason it can't be accepted and merged in?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a6eade3eb6f87702d2673cc2751c56a1c5f0f90 commit 1a6eade3eb6f87702d2673cc2751c56a1c5f0f90 Author: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> AuthorDate: 2018-11-21 19:30:15 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2019-02-17 17:49:38 +0000 mail-filter/spamassassin: Add BSD-Resource as a dependency dev-perl/BSD-Resource is needed by the ResourceLimits plugin. Closes: https://bugs.gentoo.org/670988 Closes: https://github.com/gentoo/gentoo/pull/10460 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Michael Orlitzky <mjo@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 .../spamassassin/spamassassin-3.4.2-r4.ebuild | 284 +++++++++++++++++++++ 1 file changed, 284 insertions(+)