From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0s5VE/X9VWCFNQAA0tVLHw (envelope-from ) for ; Sat, 20 Mar 2021 13:51:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MHWmDvX9VWBXIgAAbx9fmQ (envelope-from ) for ; Sat, 20 Mar 2021 13:51:49 +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 BE66D197F1 for ; Sat, 20 Mar 2021 14:51:48 +0100 (CET) Received: from localhost ([::1]:52354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNc15-0001IZ-Qn for larch@yhetil.org; Sat, 20 Mar 2021 09:51:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNbvd-0004Is-OJ for guix-devel@gnu.org; Sat, 20 Mar 2021 09:46:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54403) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNbvd-0000CE-DJ; Sat, 20 Mar 2021 09:46:09 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33278 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lNbvd-00020f-0E; Sat, 20 Mar 2021 09:46:09 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Konrad Hinsen Subject: Re: Finding the store path of a package References: <864kh9ws7z.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 =?utf-8?Q?Vent=C3=B4se?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 20 Mar 2021 14:46:07 +0100 In-Reply-To: (Konrad Hinsen's message of "Thu, 18 Mar 2021 11:45:18 +0100") Message-ID: <8735wq7xb4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616248308; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=grwk2RdD6WCPpX9pcEuDl2NM1DjULIolFb3otewJ9HI=; b=Y8B9d9AuAW/4hzmfwpGe3TCURI3uaZQzSJWtvsc9wLbg1CU7c0nhbHOjcxHLlQhIjGtMSg XsZYgKR37cfSY538SV0gG/ZF+wKJ0ZyuwMmKkeYv4PZS/FRR8GFjK98TrRrJGLV2XkowSk bRAqn8L6LIAeoZTzosBdPQ4mao+4xr/Z2mHZmMBBiAONhU3YpuW/U8BlY/vkXUAp2MO0qt 7dFWfeEEqGvpV9eVKzly8i45pQpGhWed9P5KnDVOaMDw9Xbd+3INQX42kxPCtCZbYabmFA YqaIVSW6SaQj21q7od7W3OsuRGMkElVpzww9aqLdKyL+uFf+AOxBF3fTUDCEjg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616248308; a=rsa-sha256; cv=none; b=a2f8ZkWXlAWXlO92JSfKET5AwgVx3lV/DcgkKTiNOj6ozaxOmw+q8hA3zqJGN2sBqAIPMm nX15gKgfp23WBFSqDC+0HfMZad9v8Kz3iAV+jYOYklxajWYAwUznLXu6w+i1wlHbJ5yTqK C72ya4LV7MSgfOgpYcXM5eELKLXaPTyX6ZMc9UPuIUcr6ThNcV87dB448qA70hVpIMLgN6 gzpOFsTnwWLpnSxitc9zLlvRaFaVkwtoCjz5kOYjf1AlueAsODyuFO/MOwvNQpc0iiH42o YYrs0OCV1QsTM3dY0Y7Wt3MVHezG2Z6HVckdw2/jELgtQjST532m+x7QQ6KcjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: BE66D197F1 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: +25bveep1n8l Hi! Konrad Hinsen skribis: >>> does =E2=80=9Cguix build -n=E2=80=9D fit your use-case? >> >> Checking... yes! I hadn't even considered using "build" when building is >> exactly what I do not want to happen. But yes, it works just fine. > > Not quite: > > $ guix build -n zziplib > substitute: /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.= 16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8) > 24,6 MB would be downloaded: > /gnu/store/9h9153akbd6g2520mcl2d0vgbvyfi5qm-openssl-1.1.1i > /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31 > /gnu/store/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static > /gnu/store/fbn395nfpbp4d4fr6jsbmwcx6n10kg16-python-minimal-3.8.2 > /gnu/store/7hizrpdsqf6q3pjgzmi51r5vbzlijkw0-python-minimal-wrapper-3.8= .2 > > My first impression is that "guix build -n" shows the store path of the > package only if all dependencies are in the store. Otherwise, it shows > the dependencies. Yes. In the presence of grafts, run =E2=80=9Cguix build PKG=E2=80=9D. Tha= t always gives you the store file name of PKG, 100% reliable! I regularly do things like: ls $(guix build PKG)/bin find $(guix build PKG) -name =E2=80=A6 But note that =E2=80=98guix build=E2=80=99 returns one file name per output= , so in case of multiple-output packages, you have to pipe its output through =E2=80=98h= ead=E2=80=99, =E2=80=98grep=E2=80=99, or similar. If you want a variant that does that without building/downloading it, it=E2=80=99s also possible, though not as easily from the command line. Ludo=E2=80=99.