SA Bugzilla – Bug 7095
Don't assume versions are numeric
Last modified: 2018-08-22 04:41:50 UTC
warn: Argument "0.80_2" isn't numeric in numeric lt (<) at Mail/SpamAssassin/Dns.pm line 521. warn: Argument "0.80_2" isn't numeric in numeric ge (>=) at Mail/SpamAssassin/Plugin/AskDNS.pm line 214.
It seems there are Net::DNS tarballs published accidentally, and the Net::DNS authors actually consider them pre-release beta. See http://perldoc.perl.org/perlmodstyle.html section Release Considerations, Version Numbering: "A correct CPAN version number is a floating point number with at least 2 digits after the decimal." "If you want to release a 'beta' or 'alpha' version of a module but don't want CPAN.pm to list it as most recent use an '_' after the regular version number followed by at least 2 digits, eg. 1.20_01." Even search.cpan.org gets confused by this, showing an inconsistent mix of 0.80 and 0.80_2 in URIs and text. I believe this should be raises with the Net::DNS team instead. Looking at the archive of their previous tarballs, they did follow the two digits rule before.
Well all I can say is if you feel they are wrong, feel free to file a bug with them.
The Net::DNS project's site net-dns.org currently states the "current release version of Net::DNS is: 0.80". Moreover, their blog post as of Oct 24 mentions a release candidate for Net::DNS 0.81, linked to the 0.80_2 tarball. Closing RESOLVED INVALID.
FWIW, despite some textual version confusion, CPAN still links to the latest stable 0.80 source. This issue is caused by Debian packaging a pre-release tarball on Oct 24, whereas they exclusively packaged stable releases before. See https://packages.qa.debian.org/libn/libnet-dns-perl.html In particular note the 0.80.2-x releases and compare to all previous versions not including a micro version number. libnet-dns-perl_0.80.2 actually contains pre-release Net::DNS 0.80_2, an 0.80.2 version as the deb claims does not exist.
the minor fix from Damyan Ivanov <dam@debian.org> seems like a valid and robust fix for this issue. likely already fixed in libnet-dns-perl too but it's a minor change Even if I think this is a non-issue it's a simple fix. Committed revision 1838604. Committed revision 1838605.