From a1c61232aa393761e20667e355c2f43579c769a9 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Thu, 20 Jul 2017 21:58:52 +0200 Subject: [PATCH] Include pkg-info.mk instead of calling dpkg-parsechangelog. --- debian/rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index eaaf6400d..984fda7b1 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/pkg-info.mk + export DEB_CXXFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) export DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed @@ -9,8 +11,7 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) BOOTSTRAP_PARALLEL = --parallel=$(NUMJOBS) endif -LAST_CHANGE = $(shell dpkg-parsechangelog -S Date) -BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)") +BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)") BUILD_FLAGS_FILE = build-flags.cmake