Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541100 - =mail-filter/spamassassin-3.4.0: patch for >=dev-perl/Net-DNS-0.76 compatibility
Summary: =mail-filter/spamassassin-3.4.0: patch for >=dev-perl/Net-DNS-0.76 compatibility
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-23 08:48 UTC by Markus Walter
Modified: 2015-02-27 23:31 UTC (History)
3 users (show)

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


Attachments
patch apply to spamassassin (spamassassin.patch,905 bytes, patch)
2015-02-23 08:48 UTC, Markus Walter
Details | Diff
spamassassin-3.4.0-r1.ebuild (spamassassin-3.4.0-r1.ebuild,6.40 KB, text/plain)
2015-02-25 01:16 UTC, Michael Orlitzky
Details
metadata.xml (metadata.xml,441 bytes, text/xml)
2015-02-25 01:16 UTC, Michael Orlitzky
Details
net-dns-0.76_compatibility.patch (net-dns-0.76_compatibility.patch,1.91 KB, patch)
2015-02-25 01:17 UTC, Michael Orlitzky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2015-02-23 08:48:37 UTC
Created attachment 397294 [details, diff]
patch apply to spamassassin

Please consider applying the attached patch which works around a renaming in Net::DNS. Otherwise I get the following in my logs:

Feb 23 08:00:06 linux spamd[4086]: rules: failed to run NO_DNS_FOR_FROM RBL test, skipping:
Feb 23 08:00:06 linux spamd[4086]:  (available_nameservers: [...] No DNS servers available!)

Here are the relevant links:

[1] https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7057 (Spamassassin bug report)
[2] https://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm?r1=1603518&r2=1603517&pathrev=1603518 (origin of patch)
[3] https://major.io/2014/06/20/fixing-broken-dns-lookups-in-spamassassin/ (first google hit for the topic)
Comment 1 Michael Orlitzky gentoo-dev 2015-02-25 01:16:09 UTC
I've updated the ebuild, the new patch should go in the "files" directory.

I've also made a change to the REQUIRED_USE variable: previously, you were forced to choose at least one database backend. That wasn't necessary if you weren't using the bayes functionality, so I changed USE="+berkdb" to USE=berkdb (disabled on-by-default), and added a new local "bayes" flag which defaults to on. When USE=bayes, you need to choose a database backend like before.

Please test if you can, especially with the new Net-DNS.
Comment 2 Michael Orlitzky gentoo-dev 2015-02-25 01:16:34 UTC
Created attachment 397450 [details]
spamassassin-3.4.0-r1.ebuild
Comment 3 Michael Orlitzky gentoo-dev 2015-02-25 01:16:48 UTC
Created attachment 397452 [details]
metadata.xml
Comment 4 Michael Orlitzky gentoo-dev 2015-02-25 01:17:16 UTC
Created attachment 397454 [details, diff]
net-dns-0.76_compatibility.patch
Comment 5 Markus Walter 2015-02-25 10:05:13 UTC
(In reply to Michael Orlitzky from comment #1)
> Please test if you can, especially with the new Net-DNS.

Works fine for me (with Net-DNS-0.810.0). :)
Comment 6 Michael Orlitzky gentoo-dev 2015-02-27 23:31:32 UTC
Alright, thanks!

 27 Feb 2015; Michael Orlitzky <mjo@gentoo.org>
  +files/net-dns-0.76_compatibility.patch, +spamassassin-3.4.0-r1.ebuild,
  metadata.xml:
  Revbump to fix bug #541100. Thanks to Markus Oehme for the report and the fix.