Your message dated Sun, 17 Jan 2016 12:31:28 +0100
with message-id <20160117113128.GA22869@loar>
and subject line Re: Bug#792994: angband-doc: please make the build reproducible
has caused the Debian Bug report #792994,
regarding angband-doc: please make the mtimes reproducible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
792994: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792994
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: angband-doc
Version: 3.0.3.5
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi!
While working on the “reproducible builds” effort [1], we have noticed
that angband-doc could not be built reproducibly.
The attached patch sets the mtimes of all files which are modified
during the built to the date of the last changelog entry in order to
produce files with reproducible metadata. Once applied, angband-doc can
be built reproducibly in our current experimental framework.
Cheers,
akira
[1]: https://wiki.debian.org/ReproducibleBuilds
diff -Nru angband-doc-3.0.3.5/debian/changelog
angband-doc-3.0.3.5+nmu1/debian/changelog
--- angband-doc-3.0.3.5/debian/changelog 2009-06-25 16:25:54.000000000
+0200
+++ angband-doc-3.0.3.5+nmu1/debian/changelog 2015-07-14 15:23:55.000000000
+0200
@@ -1,3 +1,10 @@
+angband-doc (3.0.3.5+nmu1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix mtimes before building binary packages to make reproducible output
+
+ -- akira <[email protected]> Tue, 14 Jul 2015 15:23:14 +0200
+
angband-doc (3.0.3.5) unstable; urgency=low
* New bug fixing release
diff -Nru angband-doc-3.0.3.5/debian/local.mk
angband-doc-3.0.3.5+nmu1/debian/local.mk
--- angband-doc-3.0.3.5/debian/local.mk 2008-11-30 04:51:09.000000000 +0100
+++ angband-doc-3.0.3.5+nmu1/debian/local.mk 2015-07-14 15:23:12.000000000
+0200
@@ -21,10 +21,11 @@
debian/stamp/INST/angband-doc: debian/stamp/install/angband-doc
debian/stamp/BIN/angband-doc: debian/stamp/binary/angband-doc
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
CLEAN/angband-doc::
-rm -rf $(TMPTOP)
-
debian/stamp/install/angband-doc:
$(checkdir)
$(REASON)
@@ -59,6 +60,8 @@
$(create_md5sum) $(TMPTOP)
chown -R root $(TMPTOP)
chmod -R u+w,go=rX $(TMPTOP)
+ find $(TMPTOP) -newermt '$(BUILD_DATE)' -print0 | \
+ xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
dpkg --build $(TMPTOP) ..
@test -d debian/stamp/binary || mkdir -p debian/stamp/binary
@echo done > $@
--- End Message ---
--- Begin Message ---
Maria Valentina Marin:
> The attached patch sets the mtimes of all files which are modified
> during the built to the date of the last changelog entry in order to
> produce files with reproducible metadata.
We are now solving this directly in dpkg-deb. This change is not
required anymore.
--
Lunar .''`.
[email protected] : :Ⓐ : # apt-get install anarchism
`. `'`
`-
signature.asc
Description: Digital signature
--- End Message ---