On Mon, 23 Sep 2024 11:47:30 +0300, Andrius Merkys wrote:
When running lintian on wannier90_3.1.0+ds-9.dsc which I have just uploaded,
I got the following warning:
Warning in processable ./wannier90_3.1.0+ds-9.dsc: Argument "v0.902.0" isn't
numeric in numeric lt (<) at
/usr/share/lintian/lib/Lintian/Check/Debian/Upstream/Metadata.pm line 106.
Ha, I just wanted to report the same bug :)
Looking at Metadata.pm line 106, it seems that the version string in
$YAML::XS::VERSION is not parsed before comparing with $HAS_LOAD_BLESSED. It
might be that YAML::XS has recently switched to SemVer instead of Perl's
floating point version type.
Indeed, YAML::XS switched from 0.90 to v0.902.0:
https://metacpan.org/dist/YAML-LibYAML/changes
A simple fix would be to parse both versions
using Perl version package from libversion-perl and then compare.
Ack.
An example can be seen at
https://salsa.debian.org/perl-team/modules/packages/libdebian-dep12-perl/-/blob/master/debian/patches/yaml-xs-version.patch?ref_type=heads