<p dir="ltr">I think it makes most sense for a distro to pick one thing and stick to it. Otherwise there's no good way to compare packages (i.e. imagine a custom build of libfoo relying on osVersion but the distro build relying on osVersionCodename - you can't programmatically tell if both packages are compatible with the same OS version).</p>
<p dir="ltr">The "typically" seems to imply that distros ultimately have flexibility here. If it makes most sense for Ubuntu to use codenames, you should use codenames there IMO.</p>
<p dir="ltr">Best,<br>
Adrian </p>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 17, 2024, 08:32 Benjamin Drung <<a href="mailto:bdrung@ubuntu.com">bdrung@ubuntu.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Ubuntu started to implement the ELF package metadata spec. It encodes<br>
the VERSION_ID from os-release in the osVersion field. Using VERSION_ID<br>
was objected to because the version is only set in stone once the<br>
release is done. It could change during the development cycle. See<br>
<a href="https://lists.ubuntu.com/archives/ubuntu-devel/2024-June/043027.html" rel="noreferrer noreferrer" target="_blank">https://lists.ubuntu.com/archives/ubuntu-devel/2024-June/043027.html</a><br>
and <a href="https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2069599" rel="noreferrer noreferrer" target="_blank">https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2069599</a><br>
<br>
The proposal is to use VERSION_CODENAME from os-release instead.<br>
<br>
To me it is not clear enough what is the best approach regarding the<br>
spec <a href="https://systemd.io/ELF_PACKAGE_METADATA/" rel="noreferrer noreferrer" target="_blank">https://systemd.io/ELF_PACKAGE_METADATA/</a> here.<br>
<br>
The key description says "typically"? So could we just use <br>
VERSION_CODENAME for osVersion?<br>
<br>
Or should be use a different key like osVersionCodename to allow third-<br>
party users to still use VERSION_ID for osVersion? In that case<br>
osVersionCodename should probably added to the well-known keys.<br>
<br>
What's your take on it?<br>
<br>
-- <br>
Benjamin Drung<br>
Debian & Ubuntu Developer<br>
</blockquote></div>