summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2019-08-06 14:48:46 +0100
committerChris Lamb <lamby@debian.org>2019-08-06 16:15:17 +0100
commit5e72802def98b9b3d22279ac5620d636289a66ca (patch)
tree381fd753eea9fe141fe3a60b1cad4c4542488d94
parent3ff283cc5bdda19acb431d9683ee49ac82dcbe70 (diff)
Ensure that patchlevel.h always matches the version in debian/changelog.
-rwxr-xr-xdebian/rules6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 57d1d2f..8c6893c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,10 +2,14 @@
DPKG_EXPORT_BUILDFLAGS = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/default.mk
CFLAGS += -DSHADOW_PWD
+ifeq (,$(findstring ^$(DEB_VERSION_UPSTREAM),^$(shell cut -d'"' -f2 patchlevel.h)))
+$(error (patchlevel.h out of sync with Debian version))
+endif
+
%:
dh $@