guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#41164] [PATCH 0/3] Add 'guix graph --path'


From: Ludovic Courtès
Subject: [bug#41164] [PATCH 0/3] Add 'guix graph --path'
Date: Tue, 12 May 2020 10:41:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello,

zimoun <address@hidden> skribis:

> On Mon, 11 May 2020 at 22:55, Ludovic Courtès <address@hidden> wrote:
>
>> You’re doing it right, but the ‘dbus’ package has two outputs and the
>> thing just picks the first one, which is not the one you’re interested
>> 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 ‘-t references’ accept store file names, and that’s 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 ‘-t references’ is that you don’t 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.0411': 
Dosiero aŭ dosierujo ne ekzistas
--8<---------------cut here---------------end--------------->8---

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]