Patchwork [hardy,meta] UBUNTU: Allow passing version for dpkg-genchanges to dpkg-buildpackage

mail settings
Submitter Herton Ronaldo Krzesinski
Date April 16, 2012, 6:30 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/152966/
State New
Headers show


Herton Ronaldo Krzesinski - April 16, 2012, 6:30 p.m.
dpkg-genchanges includes the changelog only for the last version.
Sometimes we want to include the changes up to more previous versions,
like when packages have some version in -proposed and another version
bump happens before it goes to -updates, and we need the changelog to
contain more entries up to the previous version in -updates.

Add a LAST_VERSION variable that can be used in command line to allow
specifying a different version for dpkg-genchanges to choose what gets
included in the package changelog.

Signed-off-by: Herton Ronaldo Krzesinski <>
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Makefile b/Makefile
index 7b73b19..b6a2707 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@ 
 LOG		:= meta-source/debian/changelog
 META_VERSION	:= $(shell head -1 $(LOG)|sed 's/.*(\(.*\)).*/\1/')
 all: source
 source: clean
 	ln -s meta-source linux-$(META_VERSION)
 	cd linux-$(META_VERSION); \
-	dpkg-buildpackage -S -sa -rfakeroot -I.git -I.gitignore -i'\.git.*'
+	dpkg-buildpackage -S -sa -rfakeroot -I.git -I.gitignore -i'\.git.*' -v$(LAST_VERSION)
 binary: clean
 	ln -s meta-source linux-$(META_VERSION)