[Reproducible-builds] Bug#776576: polygen: please make the build reproducible

2015-01-29 Thread Chris Lamb
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
 `. `'`  la...@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 
+
+++ polygen/polygen-1.0.6.ds2/debian/rules  2015-01-29 13:22:28.293057129 
+
@@ -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
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

[Reproducible-builds] Bug#776603: triplane: please make the build reproducible

2015-01-29 Thread Chris Lamb
Source: triplane
Version: 1.0.8-1
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 triplane could not be built reproducibly.

The attached patch removes randomess from the build system caused by an
uninitialised array. Once applied, triplane can be built reproducibly in
our current experimental framework.

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


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
diff --git a/src/tools/dksbuild/dksbuild.cc b/src/tools/dksbuild/dksbuild.cc
index 8537704..bc29e43 100644
--- a/src/tools/dksbuild/dksbuild.cc
+++ b/src/tools/dksbuild/dksbuild.cc
@@ -68,7 +68,7 @@ int filelength(FILE *faili)
 int main(int argc,char **argv)
 {
   FILE *in,*out;
-  char tekstia[20];
+  char tekstia[20] = {0};
   int kohtien_lukumaara=0;
   char ch;
   char file_to_be[80];
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds