<div dir="ltr">Package: galternatives<div>Version: 1.0.7</div><div>Tags: patch</div><div><br></div><div>debian/rules compares the version from debian/changelog with the version reported by the INFO dict. However, this fails if a binnmu is at play:</div><div><br></div><div>A binnmu adds a changelog entry with +bX (X being an integer), but generally speaking, rebuilds might add almost any +<whatever> suffixes.</div><div><br></div><div>I suggest to change debian/rules as follows to allow for binnmus:</div><div><br></div><div>Add:</div><div><br></div><div>BASE_VERSION=$(shell dpkg-parsechangelog \<br>      sed -rne 's/^Version: ([0-9.]+)(\+.*)?/\1/p')<br></div><div><br></div><div>And compare to that instead of DEB_VERSION_UPSTREAM</div><div><br></div><div>This is similar to what is done for DEB_VERSION_UPSTREAM in <a href="http://pkg-info.mk">pkg-info.mk</a>, but acknowledges the fact that galternatives is a native Debian package and thus the whole version from the changelog is recognized as the upstream version.</div><div><br></div><div>For 1.2-1+b1, DEB_VERSION_UPSTREAM would have 1.2, as it strips the last - and everything after it.</div><div><br></div><div>Patch attached, this time I'll refrain from submitting anything to salsa... I caused too much chaos with the previous commits already (I hope I cleaned it up though).</div><div><br></div><div><br></div></div>