[fiona] 07/08: Use SOURCE_DATE_EPOCH variable instead of dpkg-parsechangelog output.

Bas Couwenberg sebastic at debian.org
Mon Jun 19 05:57:37 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository fiona.

commit bea4085dcdf8766930d9436a860fc494be9646dd
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon Jun 19 07:45:11 2017 +0200

    Use SOURCE_DATE_EPOCH variable instead of dpkg-parsechangelog output.
---
 debian/changelog | 1 +
 debian/rules     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d72646e..d6e79b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ fiona (1.7.7-1) UNRELEASED; urgency=medium
   * Add autopkgtest to test installability.
   * Bump Standards-Version to 4.0.0, no changes.
   * Enable PIE hardening buildflags.
+  * Use SOURCE_DATE_EPOCH variable instead of dpkg-parsechangelog output.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 19 Jun 2017 07:41:06 +0200
 
diff --git a/debian/rules b/debian/rules
index 17d631f..3731ed2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,8 +5,8 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 export LC_ALL=C.UTF-8
 export LANG=C.UTF-8
-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)")
 
 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/fiona.git



More information about the Pkg-grass-devel mailing list