Your message dated Mon, 31 Aug 2015 17:35:19 +0000
with message-id <[email protected]>
and subject line Bug#797425: Removed package(s) from unstable
has caused the Debian Bug report #792978,
regarding nec: 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.)
--
792978: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792978
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: nec
Version: 2-16
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 nec 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.
Cheers,
akira
[1]: https://wiki.debian.org/ReproducibleBuilds
diff -u nec-2/debian/changelog nec-2/debian/changelog
--- nec-2/debian/changelog
+++ nec-2/debian/changelog
@@ -1,3 +1,10 @@
+nec (2-16.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix mtimes before building binary packages to produce reproducible output
+
+ -- akira <[email protected]> Tue, 14 Jul 2015 21:55:17 +0200
+
nec (2-16) unstable; urgency=low
* fix spelling error in nec2small binary
* remove duplicate priority field in control file
diff -u nec-2/debian/rules nec-2/debian/rules
--- nec-2/debian/rules
+++ nec-2/debian/rules
@@ -16,7 +16,9 @@
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
-endif
+endif
+
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
build:
$(checkdir)
@@ -99,6 +101,8 @@
dh_md5sums --tmpdir=debian/tmp
chown -R root.root debian/tmp
chmod -R go=rX debian/tmp
+ find debian/tmp -newermt '$(BUILD_DATE)' -print0 | \
+ xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
dpkg --build debian/tmp ..
define checkdir
--- End Message ---
--- Begin Message ---
Version: 2-16+rm
Dear submitter,
as the package nec has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/797425
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---