Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615856 - mail-filter/spamassassin-3.4.1-r8: upgrade from perl-5.22.3_rc4 to perl-5.24.1-r1 doesn't trigger rebuild of spamassassin
Summary: mail-filter/spamassassin-3.4.1-r8: upgrade from perl-5.22.3_rc4 to perl-5.24....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Philippe Chaintreuil
URL:
Whiteboard:
Keywords:
: 618596 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-04-17 14:21 UTC by i.Dark_Templar
Modified: 2017-05-16 12:46 UTC (History)
5 users (show)

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


Attachments
spamassassin-3.4.1-r8.ebuild (spamassassin-3.4.1-r8.ebuild,6.85 KB, text/plain)
2017-04-18 05:36 UTC, i.Dark_Templar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2017-04-17 14:21:23 UTC
Upgrade of perl triggers rebuilds of some of packages depending on it, but it didn't trigger rebuild of spamassassin while it should.

Reproducible: Always

Steps to Reproduce:
1. downgrade to dev-lang/perl-5.22.3_rc4
2. emerge =mail-filter/spamassassin-3.4.1-r8
3. upgrade to dev-lang/perl-5.24.1-r1

Actual Results:  
mail-filter/spamassassin rebuild is not triggered. perl-cleaner shows it as leftover files.

Expected Results:  
mail-filter/spamassassin should be rebuilt automatically

# perl-cleaner --leftovers    

 * The following files remain. These were either installed by hand
 * or edited.

 *     /usr/lib64/perl5/vendor_perl/5.22.3/spamassassin-run.pod
 *     /usr/lib64/perl5/vendor_perl/5.22.3/Mail/SpamAssassin.pm
 *     /usr/lib64/perl5/vendor_perl/5.22.3/Mail/SpamAssassin/PerMsgLearner.pm
... A LOT OF LINES SKIPPED ...
 *     /usr/lib64/perl5/vendor_perl/5.22.3/Mail/SpamAssassin/MailingList.pm
 *     /usr/lib64/perl5/vendor_perl/5.22.3/x86_64-linux/auto/Mail/SpamAssassin/.packlist
 *     /usr/lib64/perl5/vendor_perl/5.22.3/XML/SAX/ParserDetails.ini  : known, can be deleted
Comment 1 i.Dark_Templar 2017-04-18 05:36:02 UTC
Created attachment 470292 [details]
spamassassin-3.4.1-r8.ebuild

Modified ebuild which should fix reported issue.

diff:
--- /usr/portage/mail-filter/spamassassin/spamassassin-3.4.1-r8.ebuild  2017-02-28 22:50:50.000000000 +0300
+++ ./spamassassin-3.4.1-r8.ebuild      2017-04-18 08:26:33.824042034 +0300
@@ -22,7 +22,7 @@
 # The Makefile.PL script checks for dependencies, but only fails if a
 # required (i.e. not optional) dependency is missing. We therefore
 # require most of the optional modules only at runtime.
-REQDEPEND="dev-lang/perl
+REQDEPEND="dev-lang/perl:=
        dev-perl/HTML-Parser
        dev-perl/Net-DNS
        dev-perl/NetAddr-IP
Comment 2 Michael Orlitzky gentoo-dev 2017-04-23 12:43:46 UTC
Hey perl team.. is this the right thing to do?
Comment 3 Michael Orlitzky gentoo-dev 2017-04-24 01:41:49 UTC
Thanks, I've fixed this in -r11.

commit 3dd9f4f0d1d30ed1e47ac185ecd5267b6088ad28
Author: Michael Orlitzky <mjo@gentoo.org>
Date:   Sun Apr 23 21:25:30 2017 -0400

    mail-filter/spamassassin: new revision fixing bugs 590338 and 615856.

    The first fix in this revision adds a slot-operator dependency on
    dev-lang/perl. This should force SpamAssassin to rebuild in response
    to future major upgrades of perl (bug 615856).

    The second fix includes a backported patch to support newer versions
    of dev-perl/Net-DNS. This should avoid the problems experienced with
    the URIDNSBL plugin (bug 590338).

    Gentoo-Bug: 590338
    Gentoo-Bug: 615856

    Package-Manager: Portage-2.3.3, Repoman-2.3.1
Comment 4 Michael Orlitzky gentoo-dev 2017-05-16 12:46:03 UTC
*** Bug 618596 has been marked as a duplicate of this bug. ***