From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sPnPIVRhul7pQAAA0tVLHw (envelope-from ) for ; Tue, 12 May 2020 08:41:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mIFaMWJhul74SAAAbx9fmQ (envelope-from ) for ; Tue, 12 May 2020 08:42:10 +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 367659400A6 for ; Tue, 12 May 2020 08:42:08 +0000 (UTC) Received: from localhost ([::1]:43934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYQUJ-0004An-OT for larch@yhetil.org; Tue, 12 May 2020 04:42:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYQUE-00049o-3B for guix-patches@gnu.org; Tue, 12 May 2020 04:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYQUD-00017g-QB for guix-patches@gnu.org; Tue, 12 May 2020 04:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jYQUD-0004bt-NZ for guix-patches@gnu.org; Tue, 12 May 2020 04:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41164] [PATCH 0/3] Add 'guix graph --path' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 May 2020 08:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41164 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 41164@debbugs.gnu.org Received: via spool by 41164-submit@debbugs.gnu.org id=B41164.158927290517700 (code B ref 41164); Tue, 12 May 2020 08:42:01 +0000 Received: (at 41164) by debbugs.gnu.org; 12 May 2020 08:41:45 +0000 Received: from localhost ([127.0.0.1]:54106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYQTx-0004bQ-33 for submit@debbugs.gnu.org; Tue, 12 May 2020 04:41:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYQTv-0004bC-5Y for 41164@debbugs.gnu.org; Tue, 12 May 2020 04:41:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36001) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYQTp-0000s2-SX; Tue, 12 May 2020 04:41:37 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=40926 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jYQTp-0005Cw-E1; Tue, 12 May 2020 04:41:37 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200509230401.28364-1-ludo@gnu.org> <873687an8u.fsf@gnu.org> <87r1vqir7f.fsf@gnu.org> <87a72efayp.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 =?UTF-8?Q?Flor=C3=A9al?= an 228 de la =?UTF-8?Q?R=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: Tue, 12 May 2020 10:41:35 +0200 In-Reply-To: (zimoun's message of "Tue, 12 May 2020 00:13:59 +0200") Message-ID: <87y2pxczpc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 X-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Scan-Result: default: False [-1.01 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.54013739563507]; TO_DN_SOME(0.00)[]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.06), country: US(-0.00), ip: 209.51.188.17(-0.54)]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[ludo@gnu.org,guix-patches-bounces@gnu.org]; ARC_NA(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:email,0.0.0.10:email,6.4.2.2:email,19.3.0.4:email,2.1.0.0:email,0.0.0.9:email,9.0.0.1:email]; FROM_HAS_DN(0.00)[]; SPF_REPUTATION_HAM(0.00)[-0.56487842811341]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[209.51.188.17:from]; MIME_TRACE(0.00)[0:+]; DBL_PROHIBIT(0.00)[19.3.0.4:email,9.0.0.1:email,2.1.0.0:email,6.4.2.2:email,0.0.0.10:email,0.0.0.9:email]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; RCVD_COUNT_SEVEN(0.00)[9]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: DaCveu/R12CQ Hello, zimoun skribis: > On Mon, 11 May 2020 at 22:55, Ludovic Court=C3=A8s wrote: > >> You=E2=80=99re doing it right, but the =E2=80=98dbus=E2=80=99 package ha= s two outputs and the >> thing just picks the first one, which is not the one you=E2=80=99re inte= rested >> in. > > Yes, my point is: the example "libreoffice --path llvm" does not work > because of that. Not because llvm@9 vs llvm@10, I guess. :-) It works for me: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix graph --path libreoffice llvm@9 libreoffice@6.4.2.2 glew@2.1.0 mesa@19.3.4 llvm@9.0.1 --8<---------------cut here---------------end--------------->8--- > I have tried to find another example without several outputs but did > not find one complex enough to be "interesting"; that's why the most > simple 'vlc' and 'dbus'. :-) > There is always an output (doc or debug or etc.) which breaks '--path > -t references'. Note that =E2=80=98-t references=E2=80=99 accept store file names, and that= =E2=80=99s in fact the main use case. So you can always do: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix graph --path -t references vlc $(guix build dbus --no= -grafts |grep [0-9]$) substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% /gnu/store/hmxvyis9d6qzpbdy0dj0fqq2b1dz4swb-vlc-3.0.10 /gnu/store/9xbmwzl08wpkdjvya4x55hksi134255l-dbus-1.12.16 --8<---------------cut here---------------end--------------->8--- But the nice thing with =E2=80=98-t references=E2=80=99 is that you don=E2= =80=99t need to have the thing available on disk: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix graph -t references --path vim tcsh substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% /gnu/store/b7hhq1l0ykw70yl360phlkcy3074rvwf-vim-8.2.0411 /gnu/store/yym79jarrj2x3bbsnalvgb0pim2xbm2m-tcsh-6.22.02 $ ls /gnu/store/b7hhq1l0ykw70yl360phlkcy3074rvwf-vim-8.2.0411 ls: ne eblas atingi '/gnu/store/b7hhq1l0ykw70yl360phlkcy3074rvwf-vim-8.2.04= 11': Dosiero a=C5=AD dosierujo ne ekzistas --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.