Control: tags -1 patch

On 2014-11-04, Norbert Lange wrote:
> Hello, I would like to be able to compile the package for Wheezy and this  
> requires a simple change in the rules,

Thanks for the bug report!

This points out that the package currently should have a versioned
"Build-Depends: dpkg-dev (>= 1.17.0)" with the current code in
debian/rules.


> replace the "export DEBIAN_REVISION.." line with:
> export DEBIAN_REVISION ?= $(shell dpkg-parsechangelog | sed -n -e  
> 's/^Version: [^+]*\(+[A-Za-z0-9.~-]*\).*/\1/p')
>
> Please include this change to allow easy compilation on systems with older  
> dpkg tools.

Sorry about that, I generally prefer to have packages be buildable on
stable when it's reasonably easy. Unfortunately, this may not be
important enough to warrant a freeze exception...


A slightly simpler patch that's a smaller (hopefully easier to read)
diff:

diff --git a/debian/rules b/debian/rules
index 86a475a..e893217 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-export DEBIAN_REVISION ?= $(shell dpkg-parsechangelog --show-field Version | 
sed -e 's,.*+dfsg,+dfsg,')
+export DEBIAN_REVISION ?= $(shell dpkg-parsechangelog | sed -n -e 
's,^Version:.*+dfsg,+dfsg,p')

 ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
 export CROSS_COMPILE ?= $(DEB_HOST_GNU_TYPE)-




live well,
  vagrant

Attachment: pgpLdyHCmkGCU.pgp
Description: PGP signature

Reply via email to