From 5e72802def98b9b3d22279ac5620d636289a66ca Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 6 Aug 2019 14:48:46 +0100 Subject: Ensure that patchlevel.h always matches the version in debian/changelog. --- debian/rules | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 $@ -- cgit v1.2.3