<div dir="ltr">Hi Chris,<div><br></div><div>Thanks. I looked at how distributions handle this, and have a follow-up with one correction to my own first count.</div><div><br></div><div>nixpkgs does check. For Python modules, pythonMetadataCheckHook is on by default and fails the build when .dist-info/METADATA disagrees with the derivation version; versionCheckHook does the same for a program's --version. The escape hatch, pyprojectVersionPatchHook, refuses to run when the versions already agree, so its 195 uses are all cases where they differed. At the pinned GitHub tag, 51 declare a different real version. But 29 of those 51 have a publish job that writes the version from the tag (uv version "${GITHUB_REF_NAME#v}" and similar): the file at the tag is stale on purpose and the PyPI artifact is right. That leaves 22 with no such step visible, as a floor still to be confirmed one by one. The rest are placeholders (0.0.0), versions from VCS, or cases the data cannot decide.</div><div><br></div><div>The other distributions I looked at, with the same three-way split, do not compare the declared version: Debian (lintian compares debian/watch with the changelog), Arch (devtools compares pkgver with nvchecker), Fedora (only a zero-version guard), Gentoo and Guix. Homebrew leaves it to an optional assert_match version in about 28% of formulae. Some upstreams are patched by more than one distribution independently (caio in Debian and Arch, cross-web in nixpkgs and Debian).</div><div><br></div><div>Everything is public with the scripts and raw data, so it can be reproduced without me. I'd welcome an independent reproduction, from you or anyone on the list, especially on the Debian side, where my sample was the first 19 patches in alphabetical order, not a random draw:</div><div><a href="https://github.com/luizfnsilva/distro-version-survey-2026-11">https://github.com/luizfnsilva/distro-version-survey-2026-11</a></div><div><br></div><div>Luiz</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Em seg., 9 de nov. de 2026 às 20:05, Chris Lamb <<a href="mailto:lamby@debian.org">lamby@debian.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey Luiz,<br>
<br>
> 1. Do rebuilders or distributions that build from upstream tags check <br>
>    that the tag and the declared version agree, or is that left to the<br>
>    upstream?<br>
<br>
I'd be curious about the situation for the rolling/functional Linux distributions.<br>
No doubt in Debian (and other distributions with the "source tarball" model) there<br>
are a handful of binary packages of version X that are ~incorrectly declaring<br>
themselves as X+1 internally by some mechanism. <br>
<br>
Funnily enough, our own reprotest has a related check to ensure that the<br>
version number in debian/changelog cannot get out of sync with the Python<br>
package's version [0].<br>
<br>
 [0] <a href="https://salsa.debian.org/reproducible-builds/reprotest/-/blob/main/debian/rules#L23" rel="noreferrer" target="_blank">https://salsa.debian.org/reproducible-builds/reprotest/-/blob/main/debian/rules#L23</a><br>
<br>
<br>
Regards,<br>
<br>
-- <br>
      ,''`.<br>
     : :'  :     Chris Lamb<br>
     `. `'`      <a href="mailto:lamby@debian.org" target="_blank">lamby@debian.org</a> 🍥 <a href="http://chris-lamb.co.uk" rel="noreferrer" target="_blank">chris-lamb.co.uk</a><br>
       `-<br>
</blockquote></div>