[game-data-packager] 09/12: Makefile: Use SOURCE_DATE_EPOCH

Simon McVittie smcv at debian.org
Mon Jul 3 22:42:14 UTC 2017


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

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

commit 7b298a530ca7094619b89f7d85ef46d91bce8d07
Author: Simon McVittie <smcv at debian.org>
Date:   Mon Jul 3 11:17:19 2017 +0100

    Makefile: Use SOURCE_DATE_EPOCH
---
 Makefile         | 4 ++--
 debian/changelog | 1 +
 debian/rules     | 6 ------
 3 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index 138175b..b37d8bb 100644
--- a/Makefile
+++ b/Makefile
@@ -84,8 +84,8 @@ $(json_from_data): out/vfs/%.json: data/%.yaml tools/compile_yaml.py out/CACHEDI
 out/vfs.zip: $(json_from_data)
 	rm -f out/vfs.zip
 	chmod 0644 out/vfs/*
-	if [ -n "$(BUILD_DATE)" ]; then \
-		touch --date='$(BUILD_DATE)' out/vfs/*; \
+	if [ -n "$(SOURCE_DATE_EPOCH)" ]; then \
+		touch --date='@$(SOURCE_DATE_EPOCH)' out/vfs/*; \
 	fi
 	cd out/vfs && ls -1 | LC_ALL=C sort | \
 		env TZ=UTC zip ../vfs.zip -9 -X -q -@
diff --git a/debian/changelog b/debian/changelog
index eaeae73..a5099fc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,7 @@ game-data-packager (53) UNRELEASED; urgency=medium
     - Build-depend on dbus and wrap dh_auto_build in dbus-run-session,
       so that Inkscape stops warning about inability to access the
       session bus [smcv]
+    - Makefile: Use SOURCE_DATE_EPOCH [smcv]
 
  -- Simon McVittie <smcv at debian.org>  Mon, 12 Jun 2017 13:05:12 +0200
 
diff --git a/debian/rules b/debian/rules
index abda1ac..8f3a7d1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,10 +10,6 @@ include /usr/share/dpkg/pkg-info.mk
 	mkdir -p $(HOME)
 	dh $@ --with python3,bash-completion
 
-options := \
-	BUILD_DATE="$$(dpkg-parsechangelog --show-field=Date)" \
-	$(NULL)
-
 # Redirect Inkscape log files, etc. to a temporary directory
 export HOME = $(CURDIR)/debian/temp-home
 export XDG_CACHE_HOME = $(CURDIR)/debian/temp-home/.cache
@@ -33,13 +29,11 @@ override_dh_auto_configure:
 override_dh_auto_build:
 	dbus-run-session -- dh_auto_build \
 		-- \
-		$(options) \
 		$(NULL)
 
 override_dh_auto_install:
 	dh_auto_install \
 		-- \
-		$(options) \
 		$(NULL)
 
 override_dh_auto_clean:

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



More information about the Pkg-games-commits mailing list