[iortcw] 01/02: Fix date(1) syntax when using SOURCE_DATE_EPOCH
Simon McVittie
smcv at debian.org
Sun Sep 25 14:50:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository iortcw.
commit f17c1501cbabed06e2e73f052dbd744201c7b579
Author: Simon McVittie <smcv at debian.org>
Date: Thu Sep 22 09:16:52 2016 +0100
Fix date(1) syntax when using SOURCE_DATE_EPOCH
---
debian/changelog | 6 ++++++
.../Pick-up-date-from-SOURCE_DATE_EPOCH-for-reproducible-buil.patch | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 231d159..25a634e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+iortcw (1.42d+dfsg1-5) UNRELEASED; urgency=medium
+
+ * Fix date(1) syntax when using SOURCE_DATE_EPOCH
+
+ -- Simon McVittie <smcv at debian.org> Thu, 22 Sep 2016 09:16:38 +0100
+
iortcw (1.42d+dfsg1-4) unstable; urgency=medium
* Normalize packaging via wrap-and-sort -abst
diff --git a/debian/patches/Pick-up-date-from-SOURCE_DATE_EPOCH-for-reproducible-buil.patch b/debian/patches/Pick-up-date-from-SOURCE_DATE_EPOCH-for-reproducible-buil.patch
index f6942d0..59be8c7 100644
--- a/debian/patches/Pick-up-date-from-SOURCE_DATE_EPOCH-for-reproducible-buil.patch
+++ b/debian/patches/Pick-up-date-from-SOURCE_DATE_EPOCH-for-reproducible-buil.patch
@@ -30,7 +30,7 @@ index a921004..6bda6f7 100644
+# https://reproducible-builds.org/specs/source-date-epoch/
+ifdef SOURCE_DATE_EPOCH
-+ BASE_CFLAGS += -DPRODUCT_DATE=\\\"$(shell date --date="$$SOURCE_DATE_EPOCH" "+%b %_d %Y" | sed -e 's/ /\\\ /'g)\\\"
++ BASE_CFLAGS += -DPRODUCT_DATE=\\\"$(shell date --date="@$$SOURCE_DATE_EPOCH" "+%b %_d %Y" | sed -e 's/ /\\\ /'g)\\\"
+endif
+
BASE_CFLAGS += -DPRODUCT_VERSION=\\\"$(VERSION)\\\"
@@ -120,7 +120,7 @@ index f127b4f..5c2f8a3 100644
+# https://reproducible-builds.org/specs/source-date-epoch/
+ifdef SOURCE_DATE_EPOCH
-+ BASE_CFLAGS += -DPRODUCT_DATE=\\\"$(shell date --date="$$SOURCE_DATE_EPOCH" "+%b %_d %Y" | sed -e 's/ /\\\ /'g)\\\"
++ BASE_CFLAGS += -DPRODUCT_DATE=\\\"$(shell date --date="@$$SOURCE_DATE_EPOCH" "+%b %_d %Y" | sed -e 's/ /\\\ /'g)\\\"
+endif
+
BASE_CFLAGS += -DPRODUCT_VERSION=\\\"$(VERSION)\\\"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list