summaryrefslogtreecommitdiff
path: root/extra/spamassassin/net-dns.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/spamassassin/net-dns.patch')
-rw-r--r--extra/spamassassin/net-dns.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/spamassassin/net-dns.patch b/extra/spamassassin/net-dns.patch
new file mode 100644
index 000000000..84db0c598
--- /dev/null
+++ b/extra/spamassassin/net-dns.patch
@@ -0,0 +1,27 @@
+Fix FS#40707 by disabling the failing version check. We don't ship versions that old anyway.
+
+---
+diff -Nur a/lib/Mail/SpamAssassin/Dns.pm b/lib/Mail/SpamAssassin/Dns.pm
+--- a/lib/Mail/SpamAssassin/Dns.pm 2014-06-05 19:34:56.299391918 +0200
++++ b/lib/Mail/SpamAssassin/Dns.pm 2014-06-05 19:35:56.816256160 +0200
+@@ -518,7 +518,7 @@
+ }
+ }
+ else {
+- if ($Net::DNS::VERSION < 0.34) {
++ if (0) {
+ warn("dns: Net::DNS version is $Net::DNS::VERSION, but need 0.34");
+ return $IS_DNS_AVAILABLE;
+ }
+diff -Nur a/lib/Mail/SpamAssassin/Plugin/AskDNS.pm Mail-SpamAssassin-3.4.0/lib/Mail/SpamAssassin/Plugin/AskDNS.pm
+--- a/lib/Mail/SpamAssassin/Plugin/AskDNS.pm 2014-06-05 19:34:56.302725263 +0200
++++ b/lib/Mail/SpamAssassin/Plugin/AskDNS.pm 2014-06-05 19:35:30.086168916 +0200
+@@ -211,7 +211,7 @@
+
+ $self->set_config($sa_main->{conf});
+
+- $txtdata_can_provide_a_list = Net::DNS->VERSION >= 0.69;
++ $txtdata_can_provide_a_list = 1;
+
+ return $self;
+ }