Bug#999691: reprotest: Version check in debian/rules breaks down-stream distro versioning

Stefano Rivera stefanor at debian.org
Sun Nov 14 23:45:54 GMT 2021

Source: reprotest
Version: 0.7.18
Severity: normal
Tags: patch

Adding a suffix is pretty common in a downstream distro. For example,
Ubuntu adds ubuntu1 when modifying a package, or build1 when doing a
no-change upload (Ubuntu doesn't have binNMUs).

Is the expectation that setup.py should have it's version updated in
this situation? I assume not from the + check, which would exclude
Debian NMUs and binNMUs.

Maybe just check the numeric bit? e.g.
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,7 @@ export PYBUILD_NAME = reprotest
 export REPROTEST_TEST_DONTVARY = fileordering,user_group,domain_host$(if $(shell nproc | grep --color=no -Fx 1),$(,)num_cpus,)

-       test $$(python3 setup.py --version) = $$(echo $(DEB_VERSION) | cut -f1 -d'+')
+       test $$(python3 setup.py --version) = $$(echo $(DEB_VERSION) | sed 's/[^0-9.].*//')



More information about the Reproducible-builds mailing list