Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670988 - mail-filter/spamassassin: missing dependency dev-perl/BSD-Resource
Summary: mail-filter/spamassassin: missing dependency dev-perl/BSD-Resource
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Philippe Chaintreuil
URL:
Whiteboard:
Keywords:
Depends on: 677512
Blocks:
  Show dependency tree
 
Reported: 2018-11-12 09:02 UTC by Vladimir Varlamov
Modified: 2019-02-17 17:50 UTC (History)
3 users (show)

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 Vladimir Varlamov 2018-11-12 09:02:32 UTC
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.
Comment 1 Philippe Chaintreuil 2018-11-12 12:01:47 UTC
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.
Comment 2 Philippe Chaintreuil 2018-11-21 19:38:57 UTC
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.
Comment 3 Philippe Chaintreuil 2018-12-07 22:05:40 UTC
Friendly ping: Github PR is two weeks old.  Any reason it can't be accepted and merged in?
Comment 4 Larry the Git Cow gentoo-dev 2019-02-17 17:50:29 UTC
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(+)