Bug#1082612: lintian: Argument "v0.902.0" isn't numeric in numeric lt (<) at /usr/share/lintian/lib/Lintian/Check/Debian/Upstream/Metadata.pm line 106
Package: lintian
Version: 2.118.2
Hello,
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.
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. A simple fix would 
be to parse both versions using Perl version package from 
libversion-perl and then compare.
I am not sure about the severity of this. AFAIR, Perl converts strings 
to 0, thus the remaining YAML processing is now always skipped for 
safety reasons to avoid loading blessed YAMLs.
Andrius
Reply to: