GNU bug report logs - #43477
[PATCH 0/1] guix: graph: Add 'plain' backend.

Previous Next

Package: guix-patches;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Thu, 17 Sep 2020 19:40:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: zimoun <zimon.toutoune <at> gmail.com>
To: Mathieu Othacehe <othacehe <at> gnu.org>
Cc: 43477 <at> debbugs.gnu.org
Subject: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
Date: Fri, 18 Sep 2020 21:59:08 +0200
Hi,

On Fri, 18 Sep 2020 at 11:36, Mathieu Othacehe <othacehe <at> gnu.org> wrote:

> > I am always annoyed when I use "guix graph" because most of the time I run:
> >
> >   guix graph htop | grep label
> >
> > or something along these lines.  Instead, the patch avoids the grep part:
>
> What's your exact use case? Note that you can run something like:
>
> --8<---------------cut here---------------start------------->8---
> guix gc -R `guix build htop`
> --8<---------------cut here---------------end--------------->8---
>
> to print the transitive closure of htop.

Yes, but you do not have the granularity of the option '--type'.


> > $ ./pre-inst-env guix graph -b plain htop
> > htop <at> 3.0.2
> > autoconf <at> 2.69
> > perl <at> 5.30.2
> > m4 <at> 1.4.18
> > automake <at> 1.16.2
> > autoconf-wrapper <at> 2.69
> > guile <at> 2.0.14
> > pkg-config <at> 0.29.2
> > libffi <at> 3.3
> > bash-minimal <at> 5.0.16
> > libunistring <at> 0.9.10
> > libltdl <at> 2.4.6
> > libgc <at> 8.0.4
> > gmp <at> 6.2.0
> > bash <at> 5.0.16
> > readline <at> 8.0.4
> > ncurses <at> 6.2
>
> The issue with this approach is that the output is not really a graph,
> just a list of nodes.

It is a flattened graph. :-)

Well, my use case is: I am doing "guix graph -t <something> | grep
label" and in general then "guix graph -t <other-thing> | grep label |
grep <package>"; which is not user friendly at all.  And the output is
not friendly neither to pipe to other Guix commands.

The point is that "guix graph" is usually impractical in practise but
reads the plain "digraph" is not nice and pipe to "dot" produce
unmanageable PDF files.

Cheers,
simon




This bug report was last modified 4 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.