From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#28157: =?UTF-8?Q?=E2=80=9Cr-minimal=E2=80=9D?= retains no reference to =?UTF-8?Q?=E2=80=9Cwhich=E2=80=9D?= Date: Tue, 22 Aug 2017 11:19:45 +0200 Message-ID: <8760dgvu1a.fsf@elephly.net> References: <87valiwkt9.fsf@elephly.net> <877exwc7eh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dk5M0-000456-La for bug-guix@gnu.org; Tue, 22 Aug 2017 05:20:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dk5Lu-0002am-TU for bug-guix@gnu.org; Tue, 22 Aug 2017 05:20:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39926) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dk5Lu-0002aH-RA for bug-guix@gnu.org; Tue, 22 Aug 2017 05:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dk5Lu-0004Vr-Di for bug-guix@gnu.org; Tue, 22 Aug 2017 05:20:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <877exwc7eh.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 28157@debbugs.gnu.org Ludovic Courtès writes: > Ricardo Wurmus skribis: > >> R provides a function “Sys.which”, which embeds the full path to “which” >> at configure time. The path it embeds is that of “which” *before* >> grafts. > > Where’s that reference? I couldn’t find it: You can see the reference (before commit a8cd352304807ef60d06c35da07c5456f036688c) within an R session. If you type “Sys.which” the code for “Sys.which” will be printed. $ /gnu/store/hzc1fnrjv8ys399glbzmhds21fm9zzva-r-minimal-3.4.0/bin/R -e 'Sys.which' | grep /gnu/store which <- "/gnu/store/ppyczjc1figwv6yb6brg938y49856avb-which-2.21/bin/which" (The reference is the same as “guix build --no-grafts which”.) > Normally the grafting code replaces all the store references, unless the > reference is somehow obfuscated (which would be surprising here.) Right. In the case of R, the environment for a package is serialized to a possibly compressed data file (.Rdb) with an index (.Rdx). “Sys.which” is part of the “base” package and I cannot find a plain text reference to “bin/which” in the binaries for “base”. I don’t know if we can (or should) disable compression for Rdb files. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net