Your message dated Sun, 17 Jan 2016 12:48:36 +0100
with message-id <20160117114836.GA24105@loar>
and subject line Re: Bug#787125: pachi: please make the build reproducible
has caused the Debian Bug report #787125,
regarding pachi: please make the build 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.)
--
787125: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787125
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: pachi
Version: 1:1.0-7
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
Hi!
While working on the “reproducible builds” effort [1], we have noticed
that pachi could not be built reproducibly.
The attached patch fixes the files mtime before building the binary
packages. Once applied, pachi can be built reproducibly in our current
experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
--
Dhole
diff --git a/pachi-1.0/debian/rules b/pachi-1.0/debian/rules
index 007b608..a6c09f1 100755
--- a/pachi-1.0/debian/rules
+++ b/pachi-1.0/debian/rules
@@ -17,6 +17,8 @@ export CPPFLAGS
export CXXFLAGS
export LDFLAGS
+BUILD_DATE=$(shell dpkg-parsechangelog --show-field Date)
+
clean:
$(testdir)
rm -f build-stamp debian/files debian/substvars
@@ -69,6 +71,8 @@ endif
chmod -R go=u-w debian/pachi
chown root:games debian/pachi/usr/games/pachi
chmod 2755 debian/pachi/usr/games/pachi
+ find debian/pachi -depth -newermt '$(BUILD_DATE)' -print0 | \
+ xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
dpkg --build debian/pachi ..
binary-indep: build
@@ -92,6 +96,8 @@ binary-indep: build
dpkg-gencontrol -isp -ppachi-data -Pdebian/pachi-data
chown -R root:root debian/pachi-data
chmod -R go=u-w debian/pachi-data
+ find debian/pachi-data -depth -newermt '$(BUILD_DATE)' -print0 | \
+ xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
dpkg --build debian/pachi-data ..
.PHONY: clean build build-arch build-indep binary binary-arch binary-indep
--- End Message ---
--- Begin Message ---
Dhole:
> The attached patch fixes the files mtime before building the binary
> packages.
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 ---