[openarena-data] 06/07: Use SOURCE_DATE_EPOCH for timestamps, and build-depend on the debhelper version that defines it

Simon McVittie smcv at debian.org
Tue Jun 28 11:51:10 UTC 2016


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

smcv pushed a commit to branch master
in repository openarena-data.

commit 0cb5030ac7b832afda10bd6b320c65e6ab316e9f
Author: Simon McVittie <smcv at debian.org>
Date:   Tue Jun 28 10:19:07 2016 +0100

    Use SOURCE_DATE_EPOCH for timestamps, and build-depend on the debhelper version that defines it
---
 debian/changelog | 2 ++
 debian/control   | 2 +-
 debian/rules     | 3 +--
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index bff5973..9cfbfd2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,8 @@ openarena-data (0.8.5split-8) UNRELEASED; urgency=medium
   * Standards-Version: 3.9.8 (no changes needed)
   * Pass CPPFLAGS to C compiler for QVM-synthesizing program, avoiding
     warnings from build-log checks
+  * Use SOURCE_DATE_EPOCH for timestamps, and build-depend on the
+    debhelper version that defines it
 
  -- Simon McVittie <smcv at debian.org>  Tue, 28 Jun 2016 09:58:34 +0100
 
diff --git a/debian/control b/debian/control
index 4fd69ab..15b89c2 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Uploaders:
  Bruno "Fuddl" Kleinert <fuddl at tauware.de>,
  Simon McVittie <smcv at debian.org>,
 Build-Depends:
- debhelper (>= 9),
+ debhelper (>= 9.20151004~),
 Build-Depends-Indep:
  libarchive-zip-perl,
  zip,
diff --git a/debian/rules b/debian/rules
index 0ded450..45de857 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,6 @@ include /usr/share/dpkg/default.mk
 	dh $@
 
 paks := $(shell cat debian/$(DEB_SOURCE).paks)
-build_date := $(shell dpkg-parsechangelog --show-field=Date)
 
 # We cannot apply dh_strip_nondeterminism to the PK3 files because
 # it would sort the files inside the archive, and the idTech3 engine
@@ -41,7 +40,7 @@ build/%: debian/%.pk3.qvms debian/%.pk3.filenames debian/%.pk3.contents.raw
 				debian/$(*F)-$$crc.qvm; \
 			install -d $*/vm; \
 			install -v -m644 debian/$(*F)-$$crc.qvm $*/$$filename.qvm; \
-			touch --date='$(build_date)' $*/$$filename.qvm; \
+			touch --date='@$(SOURCE_DATE_EPOCH)' $*/$$filename.qvm; \
 		done < debian/$*.pk3.qvms
 	rm -f $*.pk3
 	( set -e; cd $*; while read crc filename; do \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openarena-data.git



More information about the Pkg-games-commits mailing list