Bug 201741 - mail/spamassassin: Fix DNS resolving incompatibility with Net::DNS 1.01
Summary: mail/spamassassin: Fix DNS resolving incompatibility with Net::DNS 1.01
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 12:30 UTC by Mark.Martinec
Modified: 2015-07-21 13:01 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (perl)


Attachments
files/patch-DnsResolver.pm (468 bytes, patch)
2015-07-21 12:30 UTC, Mark.Martinec
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark.Martinec 2015-07-21 12:30:12 UTC
Created attachment 159045 [details]
files/patch-DnsResolver.pm

Now that a port dns/p5-Net-DNS has been upgraded to version 1.01,
this revealed an incompatibility with DNS resolving in SpamAssassin.

In short: Net::DNS::Packet->new no longer sets the RD (recursion
desired) bit in new packets, so essentially DNS queries no longer
work. Details at:
  https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7223

To bridge the time until SpamAssassin 3.4.2 gets released,
the attached patch is needed ( equivalent to
  https://svn.apache.org/viewvc?view=rev&rev=1691992 ).

For earlier version of dns/p5-Net-DNS this patch is redundant,
but does no harm.
Comment 1 Mark.Martinec 2015-07-21 12:31:30 UTC
Somehow I left out the affected port name, which is: mail/spamassassin
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2015-07-21 12:49:47 UTC
testing @work
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-07-21 12:57:27 UTC
A commit references this bug:

Author: pi
Date: Tue Jul 21 12:56:54 UTC 2015
New revision: 392630
URL: https://svnweb.freebsd.org/changeset/ports/392630

Log:
  mail/spamassassin, japanese/spamassassin: fix bug with dns/p5-Net-DNS change

  Now that a port dns/p5-Net-DNS has been upgraded to version 1.01,
  this revealed an incompatibility with DNS resolving in SpamAssassin.

  In short: Net::DNS::Packet->new no longer sets the RD (recursion
  desired) bit in new packets, so essentially DNS queries no longer
  work. Details at:
    https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7223

  To bridge the time until SpamAssassin 3.4.2 gets released,
  the attached patch is needed ( equivalent to
    https://svn.apache.org/viewvc?view=rev&rev=1691992 ).

  For earlier version of dns/p5-Net-DNS this patch is redundant,
  but does no harm.

  PR:		201741
  Submitted by:	Mark.Martinec@ijs.si

Changes:
  head/japanese/spamassassin/Makefile
  head/mail/spamassassin/Makefile
  head/mail/spamassassin/files/patch-DnsResolver.pm
Comment 4 Kurt Jaeger freebsd_committer freebsd_triage 2015-07-21 13:01:39 UTC
Build worked on 10.1a, 9.3a, 10.1i.

japanese/spamassassin was already marked BROKEN. Volunteers ?