[Pkg-octave-commit] [octave-pkg-dev] 01/01: octave-pkg.mk: Ensure that doc-cache files are built reproducibly
Rafael Laboissière
rlaboiss-guest at moszumanska.debian.org
Fri Feb 13 14:15:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
rlaboiss-guest pushed a commit to branch master
in repository octave-pkg-dev.
commit 7a9c4d95311f6cfea6e85318d3bf828ed34ccfe3
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date: Fri Feb 13 12:11:37 2015 -0200
octave-pkg.mk: Ensure that doc-cache files are built reproducibly
Replace the time stamp and email address in the doc-cache files by the
information present in the last entry of debian/changelog, such that
the package build is reproducible.
---
octave-pkg.mk | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/octave-pkg.mk b/octave-pkg.mk
index 7158151..2eac8ab 100644
--- a/octave-pkg.mk
+++ b/octave-pkg.mk
@@ -69,6 +69,7 @@ install/$(package):: \
clean-files \
install-docs \
check-pkg \
+ fix-doc-cache \
remove-dirs
.PHONY: check-version
@@ -176,6 +177,21 @@ else
check-pkg:
endif
+
+# Replace the time stamp and email address in the doc-cache files by
+# the information present in the last entry of debian/changelog, such
+# that the package build is reproducible
+# (see https://reproducible.debian.net/reproducible.html).
+
+maintainer_email = $(shell dpkg-parsechangelog | grep ^Maintainer: | sed 's/^Maintainer: //' | sed 's/^[^<]\+ //')
+changelog_date = $(shell dpkg-parsechangelog | grep ^Date: | sed 's/^Date: //;s/,//')
+
+.PHONY: fix-doc-cache
+fix-doc-cache:
+ for i in $$(find debian/ -name doc-cache) ; do \
+ sed -i -e 's/^\(# Created by Octave [0-9.]\+,\).*/\1 $(changelog_date) $(maintainer_email)/' $$i ; \
+ done
+
.PHONY: remove-dirs
remove-dirs:
rmdir --ignore-fail-on-non-empty -p \
--
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-pkg-dev.git
More information about the Pkg-octave-commit
mailing list