From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QNPPFye0SF9QSQAA0tVLHw (envelope-from ) for ; Fri, 28 Aug 2020 07:37:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iCqZEye0SF8QQgAAB5/wlQ (envelope-from ) for ; Fri, 28 Aug 2020 07:37:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A6B4A9404CF for ; Fri, 28 Aug 2020 07:37:10 +0000 (UTC) Received: from localhost ([::1]:49212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBYwf-0004Hc-2T for larch@yhetil.org; Fri, 28 Aug 2020 03:37:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBYwY-0004HQ-Sp for bug-guix@gnu.org; Fri, 28 Aug 2020 03:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33444) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBYwY-0008CI-IC for bug-guix@gnu.org; Fri, 28 Aug 2020 03:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBYwY-0002xD-Fz for bug-guix@gnu.org; Fri, 28 Aug 2020 03:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43081: diffutils always referrers to the native coreutils Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Aug 2020 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43081 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43081@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159860018411307 (code B ref -1); Fri, 28 Aug 2020 07:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Aug 2020 07:36:24 +0000 Received: from localhost ([127.0.0.1]:44990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBYvv-0002wJ-Ov for submit@debbugs.gnu.org; Fri, 28 Aug 2020 03:36:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:57086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBYvt-0002wA-3v for submit@debbugs.gnu.org; Fri, 28 Aug 2020 03:36:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBYvs-0004Cd-R2 for bug-guix@gnu.org; Fri, 28 Aug 2020 03:36:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41261) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBYvs-00088h-IC for bug-guix@gnu.org; Fri, 28 Aug 2020 03:36:20 -0400 Received: from pop.92-184-102-33.mobile.abo.orange.fr ([92.184.102.33]:58092 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kBYvr-0001h9-TZ for bug-guix@gnu.org; Fri, 28 Aug 2020 03:36:20 -0400 From: Mathieu Othacehe Date: Fri, 28 Aug 2020 09:36:16 +0200 Message-ID: <87eenrkyrz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.3 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 0.3 (/) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 4.79 X-TUID: lDyf9c2Rlfgg --=-=-= Content-Type: text/plain Hello, The "diff" executable from diffutils stores a reference to the native, canonical "pr" from coreutils. This is bad for two reasons: * It makes the Guix System closure bigger by dragging the canonical coreutils. * The cross-compiled diffutils drags the native coreutils to its closure, see: --8<---------------cut here---------------start------------->8--- mathieu@cervin:~$ guix size /gnu/store/5bj91pfnm3z6qbpbl0hp07w12arzk93k-diffutils-3.7 store item total self /gnu/store/j48jp74s1j2mrh7nckg9asdyjv1hvi21-glibc-cross-aarch64-linux-gnu-2.31 158.9 71.4 34.8% /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31 38.4 36.7 17.9% /gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib 71.0 32.6 15.9% /gnu/store/xw23yv6fv0cb6n0sbc552l1mkc15yq3n-gcc-cross-aarch64-linux-gnu-7.5.0-lib 186.8 27.9 13.6% /gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32 88.0 17.0 8.3% /gnu/store/sl883skd8gbzcj4fl44w7dv1a5yaa3k4-gcc-cross-sans-libc-aarch64-linux-gnu-7.5.0-lib 80.8 9.8 4.8% /gnu/store/66m8j38495zdcy2iv55m5d1hj3pxayff-linux-libre-headers-cross-aarch64-linux-gnu-5.4.20 5.1 5.1 2.5% /gnu/store/bcjcd97xvh0qkvq1maqj6qab88xb30dv-bash-static-5.0.16 1.6 1.6 0.8% /gnu/store/mmhimfwmmidf09jw1plw3aw1g1zn2nkh-bash-static-5.0.16 1.6 1.6 0.8% --8<---------------cut here---------------end--------------->8--- The native version of glibc, gcc-lib, coreutils and bash-static are part of the closure of the cross-compiled coreutils. I hoped to fix it with the naive patch attached, but it fails for obscure reasons while building acl: --8<---------------cut here---------------start------------->8--- FAIL: test/malformed-restore ============================ [4] $ cp "/tmp/guix-build-acl-2.2.53.drv-0/acl-2.2.53/test/malformed-restore-double-owner.acl" tmp.acl -- ok [5] $ sed -i "s/USER/30001/g" tmp.acl -- failed ERROR: ld.so: object '/tmp/guix-build-acl-2.2.53.drv-0/acl-2.2.53/.libs/libtestlookup.so' from LD_PRELOAD cannot be preloaded: ignored. != ~ [6] $ sed -i "s/GROUP/30000/g" tmp.acl -- failed ERROR: ld.so: object '/tmp/guix-build-acl-2.2.53.drv-0/acl-2.2.53/.libs/libtestlookup.so' from LD_PRELOAD cannot be preloaded: ignored. != ~ --8<---------------cut here---------------end--------------->8--- Any idea, what's going on? Thanks, Mathieu --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-diffutils-Do-not-refer-to-canonical-coreutils.patch >From 59ff84c360e25ac754cc17f285d9bbf077a5e6c3 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Fri, 28 Aug 2020 09:32:17 +0200 Subject: [PATCH] gnu: diffutils: Do not refer to canonical coreutils. * gnu/packages/base.scm (diffutils)[inputs]: Add "coreutils", [arguments]: and use it by passing PR_PROGRAM. --- gnu/packages/base.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index f22e4ab9cc..99f8aefb67 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -269,7 +269,13 @@ differences.") (base32 "09isrg0isjinv8c535nxsi1s86wfdfzml80dbw41dj9x3hiad9xk")))) (build-system gnu-build-system) + (arguments + '(#:configure-flags + (list (string-append "PR_PROGRAM=" + (assoc-ref %build-inputs "coreutils*") + "/bin/pr")))) (native-inputs `(("perl" ,perl))) + (inputs `(("coreutils*" ,coreutils))) (synopsis "Comparing and merging files") (description "GNU Diffutils is a package containing tools for finding the -- 2.24.0 --=-=-=--