From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO3kx-0007Aa-Hj for guix-patches@gnu.org; Sun, 10 Dec 2017 10:43:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO3ks-0002Sd-LY for guix-patches@gnu.org; Sun, 10 Dec 2017 10:43:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46833) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eO3ks-0002SZ-Hj for guix-patches@gnu.org; Sun, 10 Dec 2017 10:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eO3ks-0007Qa-As for guix-patches@gnu.org; Sun, 10 Dec 2017 10:43:02 -0500 Subject: [bug#29646] [PATCH] skalibs reproducible issue (reopen) Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO3kb-0007A8-UH for guix-patches@gnu.org; Sun, 10 Dec 2017 10:42:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO3kX-0002I0-1v for guix-patches@gnu.org; Sun, 10 Dec 2017 10:42:45 -0500 Received: from mx2.dlut.edu.cn ([202.118.66.81]:55552 helo=dlut.edu.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO3kW-0002Eg-E9 for guix-patches@gnu.org; Sun, 10 Dec 2017 10:42:41 -0500 Date: Sun, 10 Dec 2017 23:42:30 +0800 From: "Z. Ren" Message-ID: <20171210154045.GB30811@air> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0XMZdl/q8hSSmFeD" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29646@debbugs.gnu.org --0XMZdl/q8hSSmFeD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! Previously, we submitted a patch that intended to fix the unreproducible issue of the package skalibs (#28017). Unfortunately, the patch we submitted only partially fixed the issues, i.e,. for the .a file (lib/skalibs/libskarnet.a). However, the .so file (lib/libskarnet.so) is still non-deterministic. After investigation, we find that in the Makefile, 'sort' should be applied associated with 'wildcard', rather than with only ALL_SRCS. To validate the fix, we applied "guix build --check --no-grafts --rounds=2 skalibs" with the patched skarnet.scm, over three PCs (with guix 316fd29f9b6b0941367f54f431ef99695b16a9e5), and checked the sha256sum of the built files. Under our testing setup, the attached patch fixes the issues for the .a/.so files for skalibs. Hope the patch is correct this time, and sorry that the previous submitted patch failed to resolve all the unreproducible issues. Regards, Ren --0XMZdl/q8hSSmFeD Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-fix-the-unreproducible-issue-for-skalibs.patch" >From 36e35a72942a561028f93e6905cab7729a0d1f12 Mon Sep 17 00:00:00 2001 From: Z. Ren Date: Sun, 10 Dec 2017 22:23:32 +0800 Subject: [PATCH] fix the unreproducible issue for skalibs --- gnu/packages/skarnet.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/skarnet.scm b/gnu/packages/skarnet.scm index 5a46b0db6..ce6fdc709 100644 --- a/gnu/packages/skarnet.scm +++ b/gnu/packages/skarnet.scm @@ -47,8 +47,8 @@ ;; Sort source files deterministically so that the *.a ;; and *.so files are reproducible. (substitute* "Makefile" - (("\\$\\(ALL_SRCS:%.c=%.o\\)") - "$(sort $(ALL_SRCS:%.c=%.o))")) + (("\\$\\(wildcard src/lib\\*/\\*.c\\)") + "$(sort $(wildcard src/lib*/*.c))")) #t))))) (home-page "http://skarnet.org/software/skalibs/") (synopsis "Platform abstraction libraries for skarnet.org software") -- 2.11.0 --0XMZdl/q8hSSmFeD--