summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorsmccroskey <smccroskey@cumulusnetworks.com>2017-04-27 23:27:09 +0200
committerMartin Winter <mwinter@opensourcerouting.org>2017-11-18 02:55:30 +0100
commit47607bcaa0feb17d65ef931f8dd61c4ad0110fa3 (patch)
treed3b29729d5e52ed02feac881986039f8b75c36a6 /debian
parentdebian: Fix some incorrect references to Quagga instead of FRR (diff)
downloadfrr-47607bcaa0feb17d65ef931f8dd61c4ad0110fa3.tar.xz
frr-47607bcaa0feb17d65ef931f8dd61c4ad0110fa3.zip
backports: error out on upstream/downstream version mismatch
The quilt source format expects the upstream tarball's version to correspond roughly to the debian version of the package, and errors will be thrown (at unpack time, in our case) if it doesn't. Do a sanity check when we're building the source package to make sure they match up. Signed-off-by: Silas McCroskey <smccroskey@cumulusnetworks.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/backports/rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/backports/rules b/debian/backports/rules
index 4d082af1b..63bbedf77 100644
--- a/debian/backports/rules
+++ b/debian/backports/rules
@@ -84,6 +84,14 @@ ifeq ($$(SOURCEFORMAT_$(1)),3.0 (quilt))
# this target depends on the orig.tar.gz file, for which there is no target in
# this makefile. It is assumed to either already exist or be built by a target
# provided elsewhere in debian/rules (e.g. via pristine-tar)
+$$(if $$(findstring $(ORIG_VERSION),$$(DEBIAN_VERSION_$(1))), \
+ $$(info downstream version matches upstream version (good)), \
+ $$(error quilt format expects downstream version \
+ ($$(DEBIAN_VERSION_$(1))) to contain upstream version \
+ ($(ORIG_VERSION)). Make a new debian/changelog entry \
+ to reflect the new upstream release) \
+)
+
$(TARBALLDIR)/$(SRCPKG)_$$(DEBIAN_VERSION_$(1)).dsc: \
$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz \
$(TARBALLDIR)/$(SRCPKG)_$$(DEBIAN_VERSION_$(1)).debian.tar.xz