From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.bugs Subject: bug#20272: Support reproducible builds Date: Mon, 14 Nov 2016 22:44:20 +0100 Organization: AvatarAcademy.nl Message-ID: <87shqtwxcb.fsf@gnu.org> References: <87bmxxnjd7.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1479159938 4835 195.159.176.226 (14 Nov 2016 21:45:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Nov 2016 21:45:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: 20272@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Nov 14 22:45:34 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6P3v-0006Yi-TA for guile-bugs@m.gmane.org; Mon, 14 Nov 2016 22:45:12 +0100 Original-Received: from localhost ([::1]:42856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6P3y-0000oU-LL for guile-bugs@m.gmane.org; Mon, 14 Nov 2016 16:45:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6P3q-0000ms-S8 for bug-guile@gnu.org; Mon, 14 Nov 2016 16:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6P3m-0004JA-U0 for bug-guile@gnu.org; Mon, 14 Nov 2016 16:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c6P3m-0004J4-Qd for bug-guile@gnu.org; Mon, 14 Nov 2016 16:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c6P3m-0005Gt-GY for bug-guile@gnu.org; Mon, 14 Nov 2016 16:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 14 Nov 2016 21:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20272 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 20272-submit@debbugs.gnu.org id=B20272.147915989120233 (code B ref 20272); Mon, 14 Nov 2016 21:45:02 +0000 Original-Received: (at 20272) by debbugs.gnu.org; 14 Nov 2016 21:44:51 +0000 Original-Received: from localhost ([127.0.0.1]:57427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6P3X-0005GC-BN for submit@debbugs.gnu.org; Mon, 14 Nov 2016 16:44:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6P3V-0005Fy-ND for 20272@debbugs.gnu.org; Mon, 14 Nov 2016 16:44:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6P3M-0004Eq-LP for 20272@debbugs.gnu.org; Mon, 14 Nov 2016 16:44:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6P39-0004C9-7S; Mon, 14 Nov 2016 16:44:23 -0500 Original-Received: from peder.onsbrabantnet.nl ([88.159.206.46]:43796 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1c6P38-0001Sm-NJ; Mon, 14 Nov 2016 16:44:23 -0500 X-Url: http://AvatarAcademy.nl In-Reply-To: <87bmxxnjd7.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Thu, 03 Nov 2016 07:54:44 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8468 Archived-At: --=-=-= Content-Type: text/plain Jan Nieuwenhuizen writes: I have been building quite some versions of Guile the past week. There re a couple of .go files that keep giving me problems wrt nondeterminism: web/server/http.go (define *timer* (gettimeofday)) seemed suspect, but seems harmless. rnrs/arithmetic/fixnums.go make-implementation-restriction-violation seemed suspect, but commenting it out does not seem to help. After commenting out all of http.scm and fixnums.scm, yesterday I had 3 Guix builds on two machines (GuixSD and one Ubuntu+Guix) that were bit-identical, but one build showed differences in system/repl/commands.go Apparently most of the time this file builds deterministicly, but some times it does not!? Ideas? In the mean time, one more obviously correct and trivial patch attatched that removes a build time stamp. Greetings, Jan --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Reproducible-build-Set-buildstamp-to-EPOCH.patch >From 2050673bffaa0ba18fabb8e92c3bc388f40bcea5 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 4 Nov 2016 16:12:55 +0100 Subject: [PATCH] Reproducible build: Set buildstamp to EPOCH. * libguile/Makefile.am (libpath.h): Set buildstamp to EPOCH. --- libguile/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libguile/Makefile.am b/libguile/Makefile.am index 31cff75..4471d16 100644 --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -743,7 +743,7 @@ libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status >> libpath.tmp @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp @echo ' { "CFLAGS", "@GUILE_CFLAGS@" }, \' >> libpath.tmp - @echo ' { "buildstamp", "'`date -u +'%Y-%m-%d %T'`'" }, \' >> libpath.tmp + @echo ' { "buildstamp", "'`date -u -d@0`'" }, \' >> libpath.tmp @echo '}' >> libpath.tmp $(AM_V_GEN)mv libpath.tmp libpath.h -- 2.10.1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20 --=-=-=--