[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#776576: marked as done (polygen: please make the build reproducible)



Your message dated Sat, 10 Oct 2015 17:05:04 +0000
with message-id <E1ZkxZw-0004hk-Tp@franck.debian.org>
and subject line Bug#776576: fixed in polygen 1.0.6.ds2-14
has caused the Debian Bug report #776576,
regarding polygen: 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 owner@bugs.debian.org
immediately.)


-- 
776576: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776576
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: polygen
Version: 1.0.6.ds2-13
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that polygen could not be built reproducibly.

The attached patch removes randomness from the build system. Once
applied, polygen can be built reproducibly in our current experimental
framework.

(The manpages, etc. are still random, but seeded from the latest
debian/changelog entry.)


 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
diff -urNad polygen.orig/polygen-1.0.6.ds2/debian/rules polygen/polygen-1.0.6.ds2/debian/rules
--- polygen.orig/polygen-1.0.6.ds2/debian/rules	2015-01-29 12:23:55.134601132 +0000
+++ polygen/polygen-1.0.6.ds2/debian/rules	2015-01-29 13:22:28.293057129 +0000
@@ -6,7 +6,9 @@
 
 POLYGEN_BASE=.
 DEB_BUILDDIR=$(POLYGEN_BASE)/src
-POLYGEN=$(DEB_BUILDDIR)/polygen
+POLYGEN_BIN=$(DEB_BUILDDIR)/polygen
+POLYGEN_SEED = $(shell date --date="$(shell dpkg-parsechangelog --show-field Date)" +%s)
+POLYGEN=$(POLYGEN_BIN) -seed $(POLYGEN_SEED)
 export POLYGEN
 
 # set $(NATIVE) to true if this arch has an optimising compiler
@@ -44,7 +46,7 @@
 	find $(POLYGEN_BASE)/grm/ -name \*.grm | debian/make_polygen-data_manpage > polygen-data.6
 
 install/polygen::
-	install -o root -g root -m 755 $(POLYGEN) debian/$(cdbs_curpkg)/usr/games/
+	install -o root -g root -m 755 $(POLYGEN_BIN) debian/$(cdbs_curpkg)/usr/games/
 	install -o root -g root -m 755 -d debian/$(cdbs_curpkg)/usr/share/doc/polygen
 	install -o root -g root -m 644 $(POLYGEN_BASE)/eng/HOWTO-Refman.html debian/$(cdbs_curpkg)/usr/share/doc/polygen/HOWTO-Refman.en.html
 	install -o root -g root -m 644 $(POLYGEN_BASE)/ita/HOWTO-Refman.html debian/$(cdbs_curpkg)/usr/share/doc/polygen/HOWTO-Refman.it.html

--- End Message ---
--- Begin Message ---
Source: polygen
Source-Version: 1.0.6.ds2-14

We believe that the bug you reported is fixed in the latest version of
polygen, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 776576@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mehdi Dogguy <mehdi@debian.org> (supplier of updated polygen package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 10 Oct 2015 18:37:42 +0200
Source: polygen
Binary: polygen polygen-data
Architecture: source all
Version: 1.0.6.ds2-14
Distribution: unstable
Urgency: medium
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Mehdi Dogguy <mehdi@debian.org>
Description:
 polygen    - generator of random sentences from grammar definitions
 polygen-data - grammar definitions for PolyGen
Closes: 776573 776576
Changes:
 polygen (1.0.6.ds2-14) unstable; urgency=medium
 .
   * Team upload.
   * Acknowledge NMU.
   * Make build reproducible (Closes: #776576). Thanks to Chris Lamb for
     the patch.
   * Fix typo in manpage (Closes: #776573).
Checksums-Sha1:
 0d25785ecd6868b17969300db768659c9dea8413 2038 polygen_1.0.6.ds2-14.dsc
 b7cde259d8416773feb5a4587fdb13d5d54fdb35 11838 polygen_1.0.6.ds2-14.diff.gz
 e5ffa4298b83afee61a5814c5d63606d2b2c3686 1175114 polygen-data_1.0.6.ds2-14_all.deb
 4b105ca6a55403aef1cfa7c2dee7d5a3a989762b 88648 polygen_1.0.6.ds2-14_all.deb
Checksums-Sha256:
 1141b67527ca4b870fd4609ec0bb4683c5f8ad453b91a850634a7919c19b5f71 2038 polygen_1.0.6.ds2-14.dsc
 db52dcc754c93699ecc6b0b236bbdfca39d84ee5b42f16881d2cd382d17acf38 11838 polygen_1.0.6.ds2-14.diff.gz
 65606f8ba4e1f0e5e69292ddf2f4a0650c7f6211856ff4a50d5b648ecf750f36 1175114 polygen-data_1.0.6.ds2-14_all.deb
 d1d851f9d700112fd6072c4b5109c39aceb61cd657a8e68e69f68a547d332594 88648 polygen_1.0.6.ds2-14_all.deb
Files:
 39f27ecc80d7cfe100ea8fec9bd98356 2038 games optional polygen_1.0.6.ds2-14.dsc
 e2f709e248e06e3713d6b3c35be8a8b7 11838 games optional polygen_1.0.6.ds2-14.diff.gz
 22ee15ab4229dbd274cb067d6191a587 1175114 games optional polygen-data_1.0.6.ds2-14_all.deb
 690ae4b1775f36a8c52edf28df38c642 88648 games optional polygen_1.0.6.ds2-14_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWGUC9AAoJEDO+GgqMLtj/3ukP/RvEhcxyBqm2W/X/cU1U5OQX
o9Bmzzq9hGsDknp7kpEm42QpeasxBxdLp8mM1wJiXTsNLZQ1atlYOo1pyBShUVen
jKNtpuu5NW8P2bf810p0thpwMRzMaAiuImK0oLJcJsjto+Z/P+9EeMWgv3jEOd9j
D6U+AlFCqjHYuUedHFfjJWrGVznN37PAHV/yfi7R5gla40JbYYtwQFiHGVZvEgXr
6QXOkOJwADPYMge4rJ//Lb1OLYlOHFqLS85V9AIf0XP7+nbpQznM2lhxx7KpBcjy
kcVYxok9JceYQHO36EKHggeL+FmWsizHP9A5lW2MnqHaSgXPwoOoiAaVYfKKigKK
yLdjxFpycPbo8K/6SxebhZD7+Q1gLyMtX8f/O7OLmDsJ73FC6fp++t3ObsxNc55Z
MtIncuPWtfnUxaO9YTR1wgVB7qdrJi5SdVPE34T5OaSPOy5G6NVzzDmKoRipi5oh
mUYgwWqSpT8yJuN6DU+v714b4308Y7KsUcaFeZGJ7oVxMiUAr86PqfDf/B3VTWHj
Dkajh4ThWWH4BQuo0SmGzFM259Cq6d6lnjyg7R5R78wPRf2XHA4zW8paJuyaQV0g
FcCInxGdPTrX5Fn3VR+nMjlf9rkht7275zPA9rmrXiqg91Z4OgeNBwDGZBe1I8Qp
SoF6HWn3fSsl6O4rveq3
=sDk0
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: