Control: tags -1 + patch

On Thu, 2012-10-18 at 04:50:24 +0200, Guillem Jover wrote:
> But in any case gadfly is also buggy, as it's using the substvar
> ${source:Version} as the base for the binary version, which should
> not include the binNMU version part. And using ${binary:Version}
> which is what would appear to be correct is wrong as it will produce
> recursive nested substitutions. The correct fix is to get the binary
> version from dpkg-parsechangelog, prepend the epoch and pass that
> to «dpkg-gencontrol -v», but that depends on a fixed dpkg 1.16.9.

Something like the attached would do it.

thanks,
guillem
diff --git a/debian/rules b/debian/rules
index 77a37b6..0a9a4dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@ VER := $(shell /usr/bin/python -c 'import sys; print sys.version[:3]')
 
 DEFAULT_PYTHON = python$(VER)
 
-kjb_version=1:$${source:Version}
+kjb_version=1:$(shell dpkg-parsechangelog | sed -n 's/Version: //p')
 
 include /usr/share/python/python.mk
 

Reply via email to