Hello,
In theory, from version number numbering point of view only, yes less than
0.0 is valid. But in practice, as they are used in Debian OVAL definitions,
I don't think they are. I think these state values might be incorrect,
probably unintentionally. And there are many, thousands, of these less than
0.0 versions, I don't think they are actually intended to test for pre
version 0 releases.
For example, who could be using a pre version 0 release of glibc?
<dpkginfo_test check="all" check_existence="at_least_one_exists" comment="glibc is earlier than 0" id="oval:org.debian.oval:tst:22102" version="1" xmlns="
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:org.debian.oval:obj:3"/>
<state state_ref="oval:org.debian.oval:ste:14418"/>
</dpkginfo_test>
...
<dpkginfo_test check="all" check_existence="at_least_one_exists" comment="golang-1.11
is earlier than 0" id="oval:org.debian.oval:tst:22067" version="1" xmlns="
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:org.debian.oval:obj:2202"/>
<state state_ref="oval:org.debian.oval:ste:14410"/>
</dpkginfo_test>
...
<dpkginfo_test check="all" check_existence="at_least_one_exists" comment="rustc is earlier than 0" id="oval:org.debian.oval:tst:22068" version="1" xmlns="
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:org.debian.oval:obj:1670"/>
<state state_ref="oval:org.debian.oval:ste:14410"/>
</dpkginfo_test>
...
<dpkginfo_test check="all" check_existence="at_least_one_exists" comment="sqlcipher
is earlier than 0" id="oval:org.debian.oval:tst:22069" version="1" xmlns="
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:org.debian.oval:obj:2614"/>
<state state_ref="oval:org.debian.oval:ste:14410"/>
</dpkginfo_test>
On Mon, 17 May 2021 at 09:40, Holger Levsen <
holger@layer-acht.org> wrote:
On Sun, May 16, 2021 at 05:21:50PM +0300, Serkan Özkan wrote:
We are using Debian OVAL definitions but there are many tests, and
states,
that test for dpkg versions being less than 0.0 which is impossible in practice (right?).
no, it's possible:
0~1 is a valid version. It's smaller than zero, yet it's not a negative number.
It's usually used for versions like 1.0~0alpha1-1 to allow the next
version to be 1.0-1... but 0~1 is a legal and valid version too.
--
cheers,
Holger
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org
⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
⠈⠳⣄
I'm looking forward to Corona being a beer again and Donald a duck.
<div dir="ltr">Hello,<div>In theory, from version number numbering point of view only, yes less than 0.0 is valid. But in practice, as they are used in Debian OVAL definitions, I don't think they are. I think these state values might be incorrect,
probably unintentionally. And there are many, thousands, of these less than 0.0 versions, I don't think they are actually intended to test for pre version 0 releases.</div><div>For example, who could be using a pre version 0 release of glibc?</div><
<br></div><div><div style="color:rgb(0,0,0);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div style="line-height:18px"><div> <span style="color:rgb(128,0,0)"><dpkginfo_test</span> <
span style="color:rgb(255,0,0)">check</span>=<span style="color:rgb(0,0,255)">"all"</span> <span style="color:rgb(255,0,0)">check_existence</span>=<span style="color:rgb(0,0,255)">"at_least_one_exists"</span> <span style="color:rgb(
255,0,0)">comment</span>=<span style="color:rgb(0,0,255)">"<span style="background-color:rgb(255,255,0)">glibc is earlier than 0</span>"</span> <span style="color:rgb(255,0,0)">id</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.
oval:tst:22102"</span> <span style="color:rgb(255,0,0)">version</span>=<span style="color:rgb(0,0,255)">"1"</span> <span style="color:rgb(255,0,0)">xmlns</span>=<span style="color:rgb(0,0,255)">"<a href="
http://oval.mitre.org/
XMLSchema/oval-definitions-5#linux">
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux</a>"</span><span style="color:rgb(128,0,0)">></span></div><div> <span style="color:rgb(128,0,0)"><object</span> <span style="color:rgb(255,0,0)">
object_ref</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:obj:3"</span><span style="color:rgb(128,0,0)">/></span></div><div> <span style="color:rgb(128,0,0)"><state</span> <span style="color:rgb(255,0,0)">state_ref</
span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:ste:14418"</span><span style="color:rgb(128,0,0)">/></span></div><div> <span style="color:rgb(128,0,0)"></dpkginfo_test></span></div><div><span style="color:rgb(128,0,0)">.
..</span></div><div></div></div><div> <span style="color:rgb(128,0,0)"><dpkginfo_test</span> <span style="color:rgb(255,0,0)">check</span>=<span style="color:rgb(0,0,255)">"all"</span> <span style="color:rgb(255,0,0)">check_existence</
span>=<span style="color:rgb(0,0,255)">"at_least_one_exists"</span> <span style="color:rgb(255,0,0)">comment</span>=<span style="color:rgb(0,0,255)">"<span style="background-color:rgb(255,255,0)">golang-1.11 is earlier than 0</span>"</
span> <span style="color:rgb(255,0,0)">id</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:tst:22067"</span> <span style="color:rgb(255,0,0)">version</span>=<span style="color:rgb(0,0,255)">"1"</span> <span style="color:
rgb(255,0,0)">xmlns</span>=<span style="color:rgb(0,0,255)">"<a href="
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">http://oval.mitre.org/XMLSchema/oval-definitions-5#linux</a>"</span><span style="color:rgb(128,0,0)">></span><br><
/div><div> <span style="color:rgb(128,0,0)"><object</span> <span style="color:rgb(255,0,0)">object_ref</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:obj:2202"</span><span style="color:rgb(128,0,0)">/></span></div><div>
<span style="color:rgb(128,0,0)"><state</span> <span style="color:rgb(255,0,0)">state_ref</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:ste:14410"</span><span style="color:rgb(128,0,0)">/></span></div><div> <span
style="color:rgb(128,0,0)"></dpkginfo_test></span></div><div><span style="color:rgb(128,0,0)">...</span></div><div> <span style="color:rgb(128,0,0)"><dpkginfo_test</span> <span style="color:rgb(255,0,0)">check</span>=<span style="color:rgb(0,
0,255)">"all"</span> <span style="color:rgb(255,0,0)">check_existence</span>=<span style="color:rgb(0,0,255)">"at_least_one_exists"</span> <span style="color:rgb(255,0,0)">comment</span>=<span style="color:rgb(0,0,255)">"<span
style="background-color:rgb(255,255,0)">rustc is earlier than 0</span>"</span> <span style="color:rgb(255,0,0)">id</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:tst:22068"</span> <span style="color:rgb(255,0,0)">version</
span>=<span style="color:rgb(0,0,255)">"1"</span> <span style="color:rgb(255,0,0)">xmlns</span>=<span style="color:rgb(0,0,255)">"<a href="
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">http://oval.mitre.org/XMLSchema/oval-
definitions-5#linux</a>"</span><span style="color:rgb(128,0,0)">></span></div><div> <span style="color:rgb(128,0,0)"><object</span> <span style="color:rgb(255,0,0)">object_ref</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.
oval:obj:1670"</span><span style="color:rgb(128,0,0)">/></span></div><div> <span style="color:rgb(128,0,0)"><state</span> <span style="color:rgb(255,0,0)">state_ref</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:ste:
14410"</span><span style="color:rgb(128,0,0)">/></span></div><div> <span style="color:rgb(128,0,0)"></dpkginfo_test></span></div><div><span style="color:rgb(128,0,0)">...</span></div><div> <span style="color:rgb(128,0,0)"><dpkginfo_
test</span> <span style="color:rgb(255,0,0)">check</span>=<span style="color:rgb(0,0,255)">"all"</span> <span style="color:rgb(255,0,0)">check_existence</span>=<span style="color:rgb(0,0,255)">"at_least_one_exists"</span> <span style="
color:rgb(255,0,0)">comment</span>=<span style="color:rgb(0,0,255)">"<span style="background-color:rgb(255,255,0)">sqlcipher is earlier than 0</span>"</span> <span style="color:rgb(255,0,0)">id</span>=<span style="color:rgb(0,0,255)">"oval:
org.debian.oval:tst:22069"</span> <span style="color:rgb(255,0,0)">version</span>=<span style="color:rgb(0,0,255)">"1"</span> <span style="color:rgb(255,0,0)">xmlns</span>=<span style="color:rgb(0,0,255)">"<a href="
http://oval.mitre.
org/XMLSchema/oval-definitions-5#linux">
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux</a>"</span><span style="color:rgb(128,0,0)">></span></div><div> <span style="color:rgb(128,0,0)"><object</span> <span style="color:rgb(255,0,
0)">object_ref</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:obj:2614"</span><span style="color:rgb(128,0,0)">/></span></div><div> <span style="color:rgb(128,0,0)"><state</span> <span style="color:rgb(255,0,0)">state_
ref</span>=<span style="color:rgb(0,0,255)">"oval:org.debian.oval:ste:14410"</span><span style="color:rgb(128,0,0)">/></span></div><div> <span style="color:rgb(128,0,0)"></dpkginfo_test></span></div><div></div></div></div></div><br><
div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 17 May 2021 at 09:40, Holger Levsen <<a href="mailto:
holger@layer-acht.org">
holger@layer-acht.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;
border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, May 16, 2021 at 05:21:50PM +0300, Serkan Özkan wrote:<br>
> We are using Debian OVAL definitions but there are many tests, and states,<br>
> that test for dpkg versions being less than 0.0 which is impossible in<br> > practice (right?).<br>
no, it's possible:<br>
0~1 is a valid version. It's smaller than zero, yet it's not a negative<br>
number.<br>
It's usually used for versions like 1.0~0alpha1-1 to allow the next<br> version to be 1.0-1... but 0~1 is a legal and valid version too.<br>
-- <br>
cheers,<br>
Holger<br>
⢀⣴⠾⠻⢶⣦⠀<br>
⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org<br>
⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C<br>
⠈⠳⣄<br>
I'm looking forward to Corona being a beer again and Donald a duck.<br> </blockquote></div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)