From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Cross-distro reproducible build patches Date: Thu, 05 Jan 2017 10:00:48 +0100 Message-ID: <87mvf5x4n3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cP3ur-000186-8x for guix-devel@gnu.org; Thu, 05 Jan 2017 04:00:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cP3um-0002s5-Ni for guix-devel@gnu.org; Thu, 05 Jan 2017 04:00:57 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cP3um-0002rq-KY for guix-devel@gnu.org; Thu, 05 Jan 2017 04:00:52 -0500 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:46780 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cP3ul-0003Cd-Vt for guix-devel@gnu.org; Thu, 05 Jan 2017 04:00:52 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel Hello Guix! A new initiative to share repro-build patches has started as a followup to the Reproducible Build Summit: http://lists.reproducible-builds.org/pipermail/rb-general/2017-January/00= 0222.html https://github.com/distropatches/reproducible-builds If anyone would like to help out by posting the patches that we have to this repo, that would be nice. It would scale better if we could easily list repro-build patches and snippets from the patches that we have. A quick hack gives this: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use(ice-9 ftw) scheme@(guile-user)> (define (grep file) (call-with-input-file file (lambda (port) (let ((contents (read-string port))) (or (string-contains-ci contents "reproducib") (string-contains-ci contents "deterministic")))))) ;;; :138:43: warning: possibly unbound variable `read-string' scheme@(guile-user)> ,use(ice-9 rdelim) scheme@(guile-user)> (chdir "/home/ludo/src/guix/gnu/packages/patches") scheme@(guile-user)> (scandir "." (lambda (file) (and (string-suffix? ".patch" file) (grep file)))) $3 =3D ("awesome-reproducible-png.patch" "hdf4-reproducibility.patch" "libb= onobo-activation-test-race.patch" "libxslt-generated-ids.patch" "metabat-re= move-compilation-date.patch" "nasm-no-ps-pdf.patch" "perl-deterministic-ord= ering.patch" "python-2-deterministic-build-info.patch" "python-3-determinis= tic-build-info.patch" "tcl-mkindex-deterministic.patch" "unzip-remove-build= -date.patch") scheme@(guile-user)> (length $3) $4 =3D 11 --8<---------------cut here---------------end--------------->8--- =E2=80=A6 but I think a number things are written as snippets rather than a= ctual patches. Thoughts? Ludo=E2=80=99.