[Reproducible-commits] [notes] 01/01: Modified the description of not_using_dh_builddeb to use $SOURCE_DATE_EPOCH instead of $BUILD_DATE
Maria Valentina Marin Rodrigues
akira-guest at moszumanska.debian.org
Sun Jul 26 09:09:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
akira-guest pushed a commit to branch master
in repository notes.
commit 7e8b9733a76e28f4545da4823fd3dcf68da99933
Author: akira <marivalenm at gmail.com>
Date: Sun Jul 26 11:03:25 2015 +0200
Modified the description of not_using_dh_builddeb to use $SOURCE_DATE_EPOCH instead of $BUILD_DATE
---
issues.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/issues.yml b/issues.yml
index b3a7cf8..11ea6db 100644
--- a/issues.yml
+++ b/issues.yml
@@ -123,10 +123,10 @@ not_using_dh_builddeb:
description: |
We currently adjust the file mtimes in dh_builddeb. Packages which
calls `dpkg --build` directly should have a prior call to:
- `BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)`
+ `export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s)`
and
- `find debian/tmp -newermt '$(BUILD_DATE)' -print0 | \
- xargs -0r touch --no-dereference --date='$(BUILD_DATE)'`
+ `find debian/tmp -newermt "@$$SOURCE_DATE_EPOCH" -print0 | \
+ xargs -0r touch --no-dereference --date="@$$SOURCE_DATE_EPOCH"`
Another option is to convert the build system to `dh`.
url: https://wiki.debian.org/ReproducibleBuilds/Howto#Members_of_control.tar_and_data.tar_have_varying_mtimes
timestamps_in_gzip_headers:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/notes.git
More information about the Reproducible-commits
mailing list