On 2024-11-03 17:45:16 +0100, Andre Noll wrote: > On Sat, Nov 02, 13:03, Sebastian Ramacher wrote > > new git version: 1.0.5-1+b1) sid; urgency=low, binary > > m4 -DGIT_VERSION=1.0.5-1+b1) sid; urgency=low, binary -DDATE="November > > 2024" lopsub-suite.5.m4 | gzip -fn9 > lopsub-suite.5.gz > > /bin/sh: 1: Syntax error: ")" unexpected > > make[1]: *** [Makefile:76: lopsub-suite.5.gz] Error 2 > > This is caused by the weird trailing "+b1) of the version string. When > compiling without a git source tree the version string is extracted > from debian/changelog with > > sed -ne '1s/.*(\(.*\)-.*/\1/1; tx; d; :x; p' debian/changelog
So that doesn't support binNMUs then. Instead of handling that with custom code, please check dpkg's /usr/share/dpkg/pkg-info.mk which does all of that and can handle binNMU versions. Cheers > Can you please check the output of this command on your system? On > mine it prints "1.0.5". > > Best > Andre > -- > Max Planck Institute for Biology > Tel: (+49) 7071 601 829 > Max-Planck-Ring 5, 72076 Tübingen, Germany > http://people.tuebingen.mpg.de/maan/ -- Sebastian Ramacher