Your message dated Mon, 4 Apr 2016 01:08:56 +0200
with message-id <20160403230856.GA16059@loar>
and subject line Re: Bug#792967: fgetty: please make the build reproducible
has caused the Debian Bug report #792967,
regarding fgetty: 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.)


-- 
792967: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792967
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: fgetty
Version: 0.6-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 fgetty 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 fgetty-0.6/debian/changelog fgetty-0.6/debian/changelog
--- fgetty-0.6/debian/changelog
+++ fgetty-0.6/debian/changelog
@@ -1,3 +1,10 @@
+fgetty (0.6-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix mtimes before building binary packages to produce reproducible output
+
+ -- akira <[email protected]>  Fri, 17 Jul 2015 22:13:05 +0200
+
 fgetty (0.6-5) unstable; urgency=low
 
   * debian/implicit: add proper dependencies to support 'parallel build'
diff -u fgetty-0.6/debian/rules fgetty-0.6/debian/rules
--- fgetty-0.6/debian/rules
+++ fgetty-0.6/debian/rules
@@ -8,6 +8,8 @@
 
 DIR =$(shell pwd)/debian/fgetty
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 patch: deb-checkdir patch-stamp
 patch-stamp:
        for i in `ls -1 debian/diff/*.diff || :`; do \
@@ -55,6 +57,8 @@
 
 binary-arch: install fgetty.deb
        dpkg-gencontrol -isp -pfgetty -P'$(DIR)'
+       find '$(DIR)' -newermt '$(BUILD_DATE)' -print0 | \
+               xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
        dpkg -b '$(DIR)' ..
 
 binary: binary-indep binary-arch

--- 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.

The patch is not needed anymore. Closing this report.

-- 
Lunar                                .''`. 
[email protected]                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to