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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: zimoun <zimon.toutoune@HIDDEN>; Keywords: patch; Done: Ludovic Courtès <ludo@HIDDEN>; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 43477-done <at> debbugs.gnu.org:


Received: (at 43477-done) by debbugs.gnu.org; 5 Oct 2020 08:03:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 05 04:03:31 2020
Received: from localhost ([127.0.0.1]:47741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kPLT1-0003zj-1i
	for submit <at> debbugs.gnu.org; Mon, 05 Oct 2020 04:03:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53518)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kPLT0-0003zV-4r
 for 43477-done <at> debbugs.gnu.org; Mon, 05 Oct 2020 04:03:30 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54279)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kPLSu-0004eN-Mx; Mon, 05 Oct 2020 04:03:24 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=33908 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kPLSu-0007EY-61; Mon, 05 Oct 2020 04:03:24 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43477] Guix aliases?
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 <87o8lv8cao.fsf@HIDDEN>
 <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
 <87wo0i2odg.fsf@HIDDEN>
 <CAJ3okZ0AGeEuxtZR_YGLQqW2VBupsBQ5tXENbkwRZ6HmxHuZWA@HIDDEN>
 <87o8luf9nh.fsf@HIDDEN>
 <CAJ3okZ0QAtfH-tXdnG+nywCOny+-USFaacWGckzD8zJW7wo9MA@HIDDEN>
 <878scxkfyd.fsf@HIDDEN>
 <CAJ3okZ3wVYRF7RSUELSEwgb6uaPt6B5zyas1CWaMC8mcMamY=A@HIDDEN>
Date: Mon, 05 Oct 2020 10:03:22 +0200
In-Reply-To: <CAJ3okZ3wVYRF7RSUELSEwgb6uaPt6B5zyas1CWaMC8mcMamY=A@HIDDEN>
 (zimoun's message of "Fri, 25 Sep 2020 19:00:22 +0200")
Message-ID: <87tuv95cc5.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43477-done
Cc: Ricardo Wurmus <rekado@HIDDEN>, 43477-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

zimoun <zimon.toutoune@HIDDEN> skribis:

> On Fri, 25 Sep 2020 at 17:56, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>
>> What I meant to say was that, if we have other use cases, we can write
>> new commands or extend existing ones to cater to those needs.  That=E2=
=80=99s
>> how =E2=80=98guix size=E2=80=99, etc. came to life.  =E2=80=9CListing no=
des=E2=80=9D is not a use case
>> per se, but rather an means to an end; let=E2=80=99s focus on the ends. =
 :-)
>>
>> (Also, let=E2=80=99s avoid Unix arguments; the primary composition level=
 in Guix
>> is Scheme, not byte streams on stdout.)
>
> Well, I am not sure yet if I agree or disagree with you. :-)
> I understand the arguments and I will not have time to write a v2
> which includes your suggestion; I am interested in listing the nodes
> for some ends, not by visualizing the graph in a non-X environment.
> Therefore, feel free to close this patch submission.

OK so I=E2=80=99m closing for now, but let=E2=80=99s reopen an issue if you=
 or someone
else thinks we really need a list-node feature or something along these
lines.

Thanks,
Ludo=E2=80=99.




Notification sent to zimoun <zimon.toutoune@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Ludovic Courtès <ludo@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 17:00:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 25 13:00:42 2020
Received: from localhost ([127.0.0.1]:45212 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLr5O-000460-7O
	for submit <at> debbugs.gnu.org; Fri, 25 Sep 2020 13:00:42 -0400
Received: from mail-qv1-f44.google.com ([209.85.219.44]:33743)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kLr5L-00045l-AT
 for 43477 <at> debbugs.gnu.org; Fri, 25 Sep 2020 13:00:41 -0400
Received: by mail-qv1-f44.google.com with SMTP id cy2so1740855qvb.0
 for <43477 <at> debbugs.gnu.org>; Fri, 25 Sep 2020 10:00:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=Y7IXwUiiu34jB2EiRIRiEmLYKR0/HFXB6+o5Oc2qg4A=;
 b=bcqunuwPErbaAz4CEsw/m80mJrUi7zzUigzYkXkIcFWSeiv3kZwJr1t8TgP0EWNICy
 pVL9WIC7jS5YtJRqDYEki2lFHwmjENBE1V+NJME9M/CyiNaUUH/5sou+4jZu9Wao5AIW
 GtOw1punFbyim9/j9H21v0PtI0PH8hD7OmL99Gf4qEdXf5hfrLDb/IMLhifp13DX4vdF
 icfZeVdFhw3mT/XQFJygxUwqbRW1L1MPWhH3SEF4rngoSxC/jXVA7CeRRBgXICprnAnU
 PRFsjZVk5IYPM27X4bPTRe9kDVkZcpmhSlvpWvfVASBXEXAU+w1+XpHamLx5DBlpoixd
 TzUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=Y7IXwUiiu34jB2EiRIRiEmLYKR0/HFXB6+o5Oc2qg4A=;
 b=poSFEFEE/CvjQQYsaZEMuo3pRb1oDfcmdTzygtQUUk/T9dXPKuMXnA/9UBly+1ei5x
 i1GbOR/eNuRNO9bN2rH4SgEQx+CKpnO3lCYYz3RywYrpGCn3XbQmDrjidKrE664aoOW9
 WQJ/SJKs+6VsqG4dRawhNwZsrlmGdP8tbwehxwU4/SRK5R5CxlKYE1dUU8Sg68k3B/j3
 y6KsC8KVBrrXb0NeiRGKx1Rzl/coMlZgJr9U2PVaRCPmZpAzQSx3fP6f5NtT0gwIBJ5B
 Bgm1ktr5AseA+ggsi5VGjBVWnLNZQZaL7jcW/VciWOG0iSXOzVSnCeCH4jYmeX0dyUvZ
 9J0A==
X-Gm-Message-State: AOAM533mVT2VJtxRgB86NTuEk/3LT+MFEukMfh2QB4l2TTon7PIwzNWH
 H1D1BXpHwBgA12RLX0cR/Rszt1qPGOa99CS/LfadRCaTQyI=
X-Google-Smtp-Source: ABdhPJw0RVkXqYRPcYZxJPLwE+3qRHdllQe5DkctC14yikWadAOR7M+k8X1ZZNicxxOPrmmzpa9Srq8MpIDQGYV00io=
X-Received: by 2002:ad4:58e7:: with SMTP id di7mr390183qvb.36.1601053233708;
 Fri, 25 Sep 2020 10:00:33 -0700 (PDT)
MIME-Version: 1.0
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 <87o8lv8cao.fsf@HIDDEN>
 <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
 <87wo0i2odg.fsf@HIDDEN>
 <CAJ3okZ0AGeEuxtZR_YGLQqW2VBupsBQ5tXENbkwRZ6HmxHuZWA@HIDDEN>
 <87o8luf9nh.fsf@HIDDEN>
 <CAJ3okZ0QAtfH-tXdnG+nywCOny+-USFaacWGckzD8zJW7wo9MA@HIDDEN>
 <878scxkfyd.fsf@HIDDEN>
In-Reply-To: <878scxkfyd.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 25 Sep 2020 19:00:22 +0200
Message-ID: <CAJ3okZ3wVYRF7RSUELSEwgb6uaPt6B5zyas1CWaMC8mcMamY=A@HIDDEN>
Subject: Re: Guix aliases?
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: Ricardo Wurmus <rekado@HIDDEN>, 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, 25 Sep 2020 at 17:56, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

> What I meant to say was that, if we have other use cases, we can write
> new commands or extend existing ones to cater to those needs.  That=E2=80=
=99s
> how =E2=80=98guix size=E2=80=99, etc. came to life.  =E2=80=9CListing nod=
es=E2=80=9D is not a use case
> per se, but rather an means to an end; let=E2=80=99s focus on the ends.  =
:-)
>
> (Also, let=E2=80=99s avoid Unix arguments; the primary composition level =
in Guix
> is Scheme, not byte streams on stdout.)

Well, I am not sure yet if I agree or disagree with you. :-)
I understand the arguments and I will not have time to write a v2
which includes your suggestion; I am interested in listing the nodes
for some ends, not by visualizing the graph in a non-X environment.
Therefore, feel free to close this patch submission.

Cheers,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 15:56:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 25 11:56:52 2020
Received: from localhost ([127.0.0.1]:45129 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLq5c-0002UR-9M
	for submit <at> debbugs.gnu.org; Fri, 25 Sep 2020 11:56:52 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33820)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kLq5a-0002UF-6e
 for 43477 <at> debbugs.gnu.org; Fri, 25 Sep 2020 11:56:51 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:39249)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kLq5U-00026m-GW; Fri, 25 Sep 2020 11:56:44 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33094 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kLq5T-0002Ft-Qb; Fri, 25 Sep 2020 11:56:44 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: Guix aliases?
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 <87o8lv8cao.fsf@HIDDEN>
 <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
 <87wo0i2odg.fsf@HIDDEN>
 <CAJ3okZ0AGeEuxtZR_YGLQqW2VBupsBQ5tXENbkwRZ6HmxHuZWA@HIDDEN>
 <87o8luf9nh.fsf@HIDDEN>
 <CAJ3okZ0QAtfH-tXdnG+nywCOny+-USFaacWGckzD8zJW7wo9MA@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 4 =?utf-8?Q?Vend=C3=A9miaire?= an 229 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: Fri, 25 Sep 2020 17:56:42 +0200
In-Reply-To: <CAJ3okZ0QAtfH-tXdnG+nywCOny+-USFaacWGckzD8zJW7wo9MA@HIDDEN>
 (zimoun's message of "Fri, 25 Sep 2020 14:22:25 +0200")
Message-ID: <878scxkfyd.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43477
Cc: Ricardo Wurmus <rekado@HIDDEN>, 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

zimoun <zimon.toutoune@HIDDEN> skribis:

> On Fri, 25 Sep 2020 at 12:10, Ricardo Wurmus <rekado@HIDDEN> wrote:
>
>> > There is a "guix graph --path" which is really nice.  Why not "guix
>> > graph --list-nodes"?
>>
>> Wouldn=E2=80=99t the tree view that Ludo proposed match your use case?  =
You can
>> still grep the output (filtering non-alphanum characters), but it would
>> be more useful by default.
>
> I would say no.  :-) You are proposing:
>
>    guix graph -b ludo-backend | tr -dc '\0-\177'
>
> right?

I don=E2=80=99t think so.  The tree view would be a way to visualize the gr=
aph,
first and foremost.

What I meant to say was that, if we have other use cases, we can write
new commands or extend existing ones to cater to those needs.  That=E2=80=
=99s
how =E2=80=98guix size=E2=80=99, etc. came to life.  =E2=80=9CListing nodes=
=E2=80=9D is not a use case
per se, but rather an means to an end; let=E2=80=99s focus on the ends.  :-)

(Also, let=E2=80=99s avoid Unix arguments; the primary composition level in=
 Guix
is Scheme, not byte streams on stdout.)

>  2- add a mechanism to have aliases.

I agree it=E2=80=99d be nice but=E2=80=A6 we=E2=80=99re drifting off-topic.=
  :-)

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 12:22:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 25 08:22:45 2020
Received: from localhost ([127.0.0.1]:42986 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLmkO-0007EO-QO
	for submit <at> debbugs.gnu.org; Fri, 25 Sep 2020 08:22:45 -0400
Received: from mail-qt1-f180.google.com ([209.85.160.180]:45897)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kLmkM-0007EA-8I
 for 43477 <at> debbugs.gnu.org; Fri, 25 Sep 2020 08:22:43 -0400
Received: by mail-qt1-f180.google.com with SMTP id z2so1604274qtv.12
 for <43477 <at> debbugs.gnu.org>; Fri, 25 Sep 2020 05:22:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=02gYO+D1yhp8iO9YHm+m7hBpsyJPLSdDsu1KFehhpcg=;
 b=fV1cEqMqe2kp+mTdufenEbJpc2tL6ToGJQFBOlTpLaPOO0R/fCxZmo9DUoWU0nkBLV
 bB7SdxK9Sapw2U3v9ORzkOy4MtPGAE9eFDzn65aKCKZ4FGJnfsFpB+IrTMmKD7uEw68A
 7Tbys+6w9Kq8rambg2XpPdLdA9FNxWJ4Uwq/DSbA8bV/fhsWv+jOo0p42fEcrjHC5w+y
 6sriXxI/WuI8krK2I+sojqkgDfa0g7sP/J+Ac2X1aYGzpkaMDfQomGywbbem9jwgZGqu
 XAsV4DABVa5rdeOLDQZEY0hOvHOkR5QqB/HC4J4KCRhijdOxb3hWgbeSTneXpN+cDtIn
 QdOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=02gYO+D1yhp8iO9YHm+m7hBpsyJPLSdDsu1KFehhpcg=;
 b=gXaqiyxzstqYRHI4nGG7EH5kONj3EvycFTCdPZpbh3CP+YtrDD89JxgG9ZMhIlcfzO
 7OJmQVsm5cHwtp4HlCVvoAvClaTwxKCPXJmH4hFlpj8fq/De94woedmkP1X6sRBa7PTN
 152MnwMFbIkW05l6bMXHsSyXD859zY7KzwBfGxnnIG6PvEKji6PQbyAfe+82vrHf+HTz
 66zVO1MDbMOFpcAAKkiFThiu/IpOslSuqseMfXGtAjL6TbwaGRqOJUziCcxuQxhUyLXe
 Rt0Z4VE5i4RIB/T3ZY4l91pv2I8+Zb3EuA2hJYwwmUUthHrPQKr1j0bghJI8JKQFJIw4
 PTMA==
X-Gm-Message-State: AOAM531i165+K//x0BLk8Il8buSBWubP+tlmX5iopH4gOTbS9YXpLtTJ
 vE6AIE5jPrjqpVn/4etiuZT2ZMhM/v0bFl0Y9N0=
X-Google-Smtp-Source: ABdhPJxBJ1eWSyhgKjhgYa+sJTqqETvBOsHpesIsVSu6wps1LraW1dy6HjEvhkhQlaXl+VakIAqSvEqkGaryRxSgqxk=
X-Received: by 2002:ac8:5317:: with SMTP id t23mr4256155qtn.354.1601036556700; 
 Fri, 25 Sep 2020 05:22:36 -0700 (PDT)
MIME-Version: 1.0
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 <87o8lv8cao.fsf@HIDDEN>
 <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
 <87wo0i2odg.fsf@HIDDEN>
 <CAJ3okZ0AGeEuxtZR_YGLQqW2VBupsBQ5tXENbkwRZ6HmxHuZWA@HIDDEN>
 <87o8luf9nh.fsf@HIDDEN>
In-Reply-To: <87o8luf9nh.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 25 Sep 2020 14:22:25 +0200
Message-ID: <CAJ3okZ0QAtfH-tXdnG+nywCOny+-USFaacWGckzD8zJW7wo9MA@HIDDEN>
Subject: Guix aliases? (was: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain'
 backend.)
To: Ricardo Wurmus <rekado@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>, 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, 25 Sep 2020 at 12:10, Ricardo Wurmus <rekado@HIDDEN> wrote:

> > There is a "guix graph --path" which is really nice.  Why not "guix
> > graph --list-nodes"?
>
> Wouldn=E2=80=99t the tree view that Ludo proposed match your use case?  Y=
ou can
> still grep the output (filtering non-alphanum characters), but it would
> be more useful by default.

I would say no.  :-) You are proposing:

   guix graph -b ludo-backend | tr -dc '\0-\177'

right?  I will never remember that.  So it means I would have a script
wrapper, somehow; and in this case, instead a AWK wrapper around the
graphviz backend could already do the job.

Well, it remembers the discussion here [1].

[1] <https://lists.gnu.org/archive/html/guix-devel/2019-07/msg00358.html>


My understanding of this situation:

 1- specific "guix graph" case: implement something like Ludo
proposed; "--backend plain" in the meaning of non-graphical or
terminal displayable backend.
 2- add a mechanism to have aliases.

The #1 is low priority to me.  Let's expand explanations about the #2.
Now with "guix repl", the user can extend Guix by their own scripts.
Therefore, it could be nice:

 a) to have a location by default (say ~/.config/guix/scripts)
 b) to run them with "guix foo" instead of "guix repl --
~/.config/guix/scripts/foo.scm"

And then, we can all be happy. ;-)
It eases the tests of new experimental command-line tools, I can
locally change the behaviour of "guix environment --ad-hoc", I can
experiment with new output formats for "guix search" instead of
recutils, etc..  Well, the philosophy of custom extensions.

WDYT?

All the best,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 10:10:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 25 06:10:37 2020
Received: from localhost ([127.0.0.1]:42741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLkgU-0001Tx-6U
	for submit <at> debbugs.gnu.org; Fri, 25 Sep 2020 06:10:37 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21177)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1kLkgS-0001To-P7
 for 43477 <at> debbugs.gnu.org; Fri, 25 Sep 2020 06:10:33 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1601028623; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=Jbj2jsdmXqNcEAqxdiT/6qQiHdF09gcD2zmuB8nnHNIR0l+eCbE1rZeRpCz6TPCVctgFybcNnDlH3eeFjoO3uHiKSGz7IBId6xXg27M2m/iEmhRee+dPIjmOMPhIQ1OXhmjUqdU3VLCwosB18N/d5eDBLncwUsy5z0igjH0WhyE=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1601028623;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=t8RxgWp/3Q/DX2yuxaerEvtjYDcIncQE3cVECRdrkVw=; 
 b=U7GBfblopLC3WIZUV7OCBnYe851daN61nqCnKCSgXDfBxM29HNGX33aLxtwNFnG5WBa141/FiMfMo/bhG4oadGmt5XFTJTDQG9S5Qyk8Qbi/pzlo7GaAP1ly0UR26MceiGkkL/KlIf4cTg48jDmVdfj9Udo/RsB1kA4udJIaBHs=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1601028623; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 bh=t8RxgWp/3Q/DX2yuxaerEvtjYDcIncQE3cVECRdrkVw=;
 b=ghZy8PYIuOW9l3xhLcPrK2NX9rgRe/zDu+VtGvAlnsL6IbOWHzWBlFj30p/c6OUb
 yTfEVvYyBGVLYr04ZK6yX/Ysr2M0GyDEmEdjG9ZmjQGbXGg/YXxL3Ta9FmHRK+9saVO
 DNEJ/QNK0CU8nXdH908U1UVPiRYrZL/UmTd93Ey4=
Received: from localhost (p54ad4819.dip0.t-ipconnect.de [84.173.72.25]) by
 mx.zohomail.com with SMTPS id 1601028621030987.760064775682;
 Fri, 25 Sep 2020 03:10:21 -0700 (PDT)
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 <87o8lv8cao.fsf@HIDDEN>
 <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
 <87wo0i2odg.fsf@HIDDEN>
 <CAJ3okZ0AGeEuxtZR_YGLQqW2VBupsBQ5tXENbkwRZ6HmxHuZWA@HIDDEN>
User-agent: mu4e 1.4.13; emacs 27.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
In-reply-to: <CAJ3okZ0AGeEuxtZR_YGLQqW2VBupsBQ5tXENbkwRZ6HmxHuZWA@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Fri, 25 Sep 2020 12:11:46 +0200
Message-ID: <87o8luf9nh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


zimoun <zimon.toutoune@HIDDEN> writes:

> On Fri, 25 Sep 2020 at 11:32, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>> zimoun <zimon.toutoune@HIDDEN> skribis:
>
>> > For example, I would to know if all the packages in my profile are OK
>> > about CVE and already archived on SWH, with the proposed patch, it is
>> > simply:
>> >
>> >    guix package -I | cut -f1 \
>> >      | xargs -I{} ./pre-inst-env guix graph -b list-nodes {} \
>> >      | xargs -I{} guix lint -c cve,archival {}
>> >
>> > and obviously instead "-t bag" could be used.
>> >
>> > Well, another option as "--list-nodes" could be added.  WDTY?
>>
>> I think we should really focus on individual use cases and see how to
>> best address them.  For example there=E2=80=99s
>
> I am not sure to understand.  The aim of pipe composition is to build
> bigger use cases reusing smaller units, right? (friday's trolling
> inside ;-))
>
> My individual use case is to list all the nodes of one package.  And
> by "all the nodes" I mean for all the kinds of graph types.
>
> There is a "guix graph --path" which is really nice.  Why not "guix
> graph --list-nodes"?

Wouldn=E2=80=99t the tree view that Ludo proposed match your use case?  You=
 can
still grep the output (filtering non-alphanum characters), but it would
be more useful by default.

--=20
Ricardo




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 09:54:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 25 05:54:44 2020
Received: from localhost ([127.0.0.1]:42690 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLkR9-0007Kb-Pp
	for submit <at> debbugs.gnu.org; Fri, 25 Sep 2020 05:54:44 -0400
Received: from mail-qv1-f67.google.com ([209.85.219.67]:38426)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kLkR5-0007KM-N8
 for 43477 <at> debbugs.gnu.org; Fri, 25 Sep 2020 05:54:42 -0400
Received: by mail-qv1-f67.google.com with SMTP id p15so1009312qvk.5
 for <43477 <at> debbugs.gnu.org>; Fri, 25 Sep 2020 02:54:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=ZNHJ24WmA2HwLbFcykUrIpVdWMIfpa2sfEY6ctPvI9Q=;
 b=rGHpaU1QX2VAEDK7qeGlPJeEXvmztJ3JJQzWnDFht5qWnHEDHjZ0Lms82N2U/rlhw9
 kSW+VifbFoD19a4q6XyU3ltA62jSUkFUBAsYtQGEZ3AGBTqjSx3p9mKLoB4UvS4xJPSM
 jq88ktizi4xo3iuooJcr+5ZnOcIacxTWk/XUH4JDlPhsAcAKocR8wdKk7wp9iEhMxQ08
 b/9f2iNp0KcQDoefADWWuDyahIjwt1Ni3FK4WgT52LRErGd09qS4tw4TOPXDwBpxQwmS
 ulSZlNqxGnQI2SOIzr41M1tX9BI4f9qAILnChurZ/25xFbZTTDkoDXRQuTIlC3nmZsfM
 M/xw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=ZNHJ24WmA2HwLbFcykUrIpVdWMIfpa2sfEY6ctPvI9Q=;
 b=mgKK3+/7d7XwBeQqD+DLLzeiPCKCi+NRMBsL43JOByKneI0/9QuMV/FrDGvn5UdVoX
 ZW5gVw6Ob1KiUESwcBr2fdmRm7PHgWti51PR0k7/Jj/qif6YRoVJuvsDokOrtchRe7rd
 WVQXcxLvTCQq2TTlR3XjJ+AY2REflN9ZsxHIoWsGJkJ0uVSisVblzVIT8FXEvY3pBoEI
 7y+3me9pIEUqYA2eeX9g3hGFTw1hi6Xv4eVv6sPZSvm2PLXcqmzaLAyygT8SVV+Fd9Df
 vKiTuxifxmLK+dLH7xJW0oHr48B4sBQn0I9rk++dIfq2diy5+575Jkez3Yt6yG/2tIQ4
 hh6w==
X-Gm-Message-State: AOAM532WsisB32HW/GfwoxcXmruwGJBEPcQ47k+nZKGnUMZ/LqIn3rm7
 DGwkLIE1CURaFVASiupMmGp+d/JCon1kGnjwn/WHThqPggA=
X-Google-Smtp-Source: ABdhPJyl7zh9H6m3Y5IMpXu7sNV/KdxZsce7vdlYvLs5oXyyeZAO0mMf4J3RWGsvrAB89/J9Cu0kxtvZkNyOiHqu/MA=
X-Received: by 2002:a0c:ca08:: with SMTP id c8mr3520579qvk.42.1601027673808;
 Fri, 25 Sep 2020 02:54:33 -0700 (PDT)
MIME-Version: 1.0
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 <87o8lv8cao.fsf@HIDDEN>
 <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
 <87wo0i2odg.fsf@HIDDEN>
In-Reply-To: <87wo0i2odg.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 25 Sep 2020 11:54:22 +0200
Message-ID: <CAJ3okZ0AGeEuxtZR_YGLQqW2VBupsBQ5tXENbkwRZ6HmxHuZWA@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: Ricardo Wurmus <rekado@HIDDEN>, 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, 25 Sep 2020 at 11:32, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
> zimoun <zimon.toutoune@HIDDEN> skribis:

> > For example, I would to know if all the packages in my profile are OK
> > about CVE and already archived on SWH, with the proposed patch, it is
> > simply:
> >
> >    guix package -I | cut -f1 \
> >      | xargs -I{} ./pre-inst-env guix graph -b list-nodes {} \
> >      | xargs -I{} guix lint -c cve,archival {}
> >
> > and obviously instead "-t bag" could be used.
> >
> > Well, another option as "--list-nodes" could be added.  WDTY?
>
> I think we should really focus on individual use cases and see how to
> best address them.  For example there=E2=80=99s

I am not sure to understand.  The aim of pipe composition is to build
bigger use cases reusing smaller units, right? (friday's trolling
inside ;-))

My individual use case is to list all the nodes of one package.  And
by "all the nodes" I mean for all the kinds of graph types.

There is a "guix graph --path" which is really nice.  Why not "guix
graph --list-nodes"?



> <https://issues.guix.gnu.org/31442> that we could revisit now that we
> have provenance metadata and inferiors.  There=E2=80=99s also =E2=80=98gu=
ix size=E2=80=99, =E2=80=98guix
> refresh -l=E2=80=99, and =E2=80=98guix graph --path=E2=80=99.

The example above comes from this patch "guix health" that I commented
on [1]. :-)
Let's discuss that overthere.

[1] <https://issues.guix.gnu.org/31442#9>


> Perhaps we could have the backend you propose with the name =E2=80=98plai=
n-flat=E2=80=99
> (or similar), but I agree with Ricardo that it seems misplaced given
> that it doesn=E2=80=99t show edges.

I understand.  The addition of a backend is not appropriate and
confusing (except the plain you backend you proposed).
Therefore, my proposal is to add another option to "guix graph":

  guix graph --list-nodes

similarly to "--path".  Except that "guix graph --list-nodes -t bag"
will show all the nodes of the bag graph.


WDYT?

All the best,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 09:32:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 25 05:32:22 2020
Received: from localhost ([127.0.0.1]:42655 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLk5W-0006m7-AJ
	for submit <at> debbugs.gnu.org; Fri, 25 Sep 2020 05:32:22 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53960)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kLk5U-0006lv-9v
 for 43477 <at> debbugs.gnu.org; Fri, 25 Sep 2020 05:32:20 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52228)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kLk5O-0001z1-Kj; Fri, 25 Sep 2020 05:32:14 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60758 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kLk5O-0002iJ-2l; Fri, 25 Sep 2020 05:32:14 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 <87o8lv8cao.fsf@HIDDEN>
 <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 4 =?utf-8?Q?Vend=C3=A9miaire?= an 229 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: Fri, 25 Sep 2020 11:32:11 +0200
In-Reply-To: <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
 (zimoun's message of "Thu, 24 Sep 2020 17:47:18 +0200")
Message-ID: <87wo0i2odg.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43477
Cc: Ricardo Wurmus <rekado@HIDDEN>, 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

zimoun <zimon.toutoune@HIDDEN> skribis:

> The point is I am often doing
>
>    guix graph -t <type> <pkg> | grep label | grep <stuff>
>
> then I select what I am interested in and reuse it with another Guix
> command (size or graph again or show or whatever).  And the regexp
> directly pick the package name is too complicated to remember, so yes
> I could have a script.
>
> For example, I would to know if all the packages in my profile are OK
> about CVE and already archived on SWH, with the proposed patch, it is
> simply:
>
>    guix package -I | cut -f1 \
>      | xargs -I{} ./pre-inst-env guix graph -b list-nodes {} \
>      | xargs -I{} guix lint -c cve,archival {}
>
> and obviously instead "-t bag" could be used.
>
> Well, another option as "--list-nodes" could be added.  WDTY?

I think we should really focus on individual use cases and see how to
best address them.  For example there=E2=80=99s
<https://issues.guix.gnu.org/31442> that we could revisit now that we
have provenance metadata and inferiors.  There=E2=80=99s also =E2=80=98guix=
 size=E2=80=99, =E2=80=98guix
refresh -l=E2=80=99, and =E2=80=98guix graph --path=E2=80=99.

Perhaps we could have the backend you propose with the name =E2=80=98plain-=
flat=E2=80=99
(or similar), but I agree with Ricardo that it seems misplaced given
that it doesn=E2=80=99t show edges.

Thoughts?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 24 Sep 2020 15:47:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 24 11:47:39 2020
Received: from localhost ([127.0.0.1]:41396 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLTT9-0008Pb-Ec
	for submit <at> debbugs.gnu.org; Thu, 24 Sep 2020 11:47:39 -0400
Received: from mail-qk1-f193.google.com ([209.85.222.193]:38987)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kLTT5-0008PN-Ug
 for 43477 <at> debbugs.gnu.org; Thu, 24 Sep 2020 11:47:37 -0400
Received: by mail-qk1-f193.google.com with SMTP id w12so3689042qki.6
 for <43477 <at> debbugs.gnu.org>; Thu, 24 Sep 2020 08:47:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=RyFo4Yc6bfEatAT0LuI+RRHxTGkevszlVIe2Rl3zRBs=;
 b=rZl3K00rHe9E1XVpJLtNmHc0xZfSVyu5KZJXPGOfygfkYylsLTFGUJt+zBPkvhMyzi
 6Ps6uA0V9YdQt9iuuosK7negcGWKYJYucE1cafc0X066qsR/vWJFfayfqjppuvhBKveR
 MxMCsk+zSHO4klT+EzC6rE1Cg+dpmAqRjqP5V398q0HYzzmzTWozNnDKEi8YSc0Qqb7i
 Jcb+KikFWBr8UAYk/wxE3ouzmjKE1KpU/ewgaMUvbrRq7mo1JesypCjYeH9I2UIRS2PL
 sV7im/1RTEWEiwZmbKxp56tx6EpHQg31ZOQ+yKg6YlZSBc515167pU+u9NqsIgDwWShr
 0SZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=RyFo4Yc6bfEatAT0LuI+RRHxTGkevszlVIe2Rl3zRBs=;
 b=TYBwk6oA1CXDpM+WnlYdprEyLxsEuY9A1syd9uNplZyMYypqUq3qKjuXRLnJ4hbDI4
 OhKcWUJE2bMAtWMx7gt92SXVAhuWG7QWph4nMFx8v1NjZGJpdpVCTnbeh2GtXt7cVhWF
 23ieJ+qIXypaCMo6MJWl8SAK4muFW+zPxdNXgX1Kep6RBm92Cq0soPIFRDQfxDMB2mXn
 tcA9E4CtF6N7EHC+6U6kGE105i1axk4vlzba5REYEUhW8M8XSgQzRYU9Ktd+o1Z/73Aw
 V66P0D3fhwliWUC9CXYFUNitb82Vgq41bZUb9aa1Z1NQ4iiu2DpJn6tQ9gLfo/0EOxZm
 D26w==
X-Gm-Message-State: AOAM532nwL/uT94phhBtDrmjiGuizEJQu6oF6to2GUn8ZT/f8vNGIKzR
 VVIIuvCgnToXs8b8gAv9vAT0ZL71kJELugS/C1E=
X-Google-Smtp-Source: ABdhPJx/cM72AP08gRznuc0fpU38kRKMI7kFPCz+aZoPKzq65mPgJeHwi3PnQi/7wvrXrE+HHGx1C8KzM0aizi0DH44=
X-Received: by 2002:a37:7c2:: with SMTP id 185mr258794qkh.304.1600962450135;
 Thu, 24 Sep 2020 08:47:30 -0700 (PDT)
MIME-Version: 1.0
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 <87o8lv8cao.fsf@HIDDEN>
In-Reply-To: <87o8lv8cao.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Thu, 24 Sep 2020 17:47:18 +0200
Message-ID: <CAJ3okZ34BA9Q+9+b0T7vAJwN6ZgoVx_ceukn+iiV5eAvWpqLoQ@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: Ricardo Wurmus <rekado@HIDDEN>, 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On Thu, 24 Sep 2020 at 16:44, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

> >> Is that still a graph, though=E2=80=A6?
> >
> > I agree it is not a graph.  Instead of 'plain' the name could be
> > 'list-nodes', or whatever.

The point is I am often doing

   guix graph -t <type> <pkg> | grep label | grep <stuff>

then I select what I am interested in and reuse it with another Guix
command (size or graph again or show or whatever).  And the regexp
directly pick the package name is too complicated to remember, so yes
I could have a script.

For example, I would to know if all the packages in my profile are OK
about CVE and already archived on SWH, with the proposed patch, it is
simply:

   guix package -I | cut -f1 \
     | xargs -I{} ./pre-inst-env guix graph -b list-nodes {} \
     | xargs -I{} guix lint -c cve,archival {}

and obviously instead "-t bag" could be used.

Well, another option as "--list-nodes" could be added.  WDTY?


> What would be super useful is a tree representation, like so:
>
>   guile
>   + pkg-config
>   + libgc
>   |- pkg-config [=E2=80=A6]
>   + gmp
>   |- m4
>   + libffi
>   + bash-minimal
>
> (With the right Unicode characters, of course.  :-))

It could be nice.  And yeah, it will be the correct backend name: plain. :-=
)


All the best,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 24 Sep 2020 14:44:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 24 10:44:24 2020
Received: from localhost ([127.0.0.1]:41207 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kLSTw-0002VG-Lu
	for submit <at> debbugs.gnu.org; Thu, 24 Sep 2020 10:44:24 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56624)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kLSTv-0002Uv-Az
 for 43477 <at> debbugs.gnu.org; Thu, 24 Sep 2020 10:44:23 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34187)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kLSTp-0006MF-Rb; Thu, 24 Sep 2020 10:44:17 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57398 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kLSTp-0006At-Da; Thu, 24 Sep 2020 10:44:17 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
 <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
Date: Thu, 24 Sep 2020 16:44:15 +0200
In-Reply-To: <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
 (zimoun's message of "Fri, 18 Sep 2020 22:04:53 +0200")
Message-ID: <87o8lv8cao.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43477
Cc: Ricardo Wurmus <rekado@HIDDEN>, 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

zimoun <zimon.toutoune@HIDDEN> skribis:

> On Fri, 18 Sep 2020 at 14:33, Ricardo Wurmus <rekado@HIDDEN> wrote:
>
>> Is that still a graph, though=E2=80=A6?
>
> I agree it is not a graph.  Instead of 'plain' the name could be
> 'list-nodes', or whatever.

What would be super useful is a tree representation, like so:

  guile
  + pkg-config
  + libgc
  |- pkg-config [=E2=80=A6]
  + gmp
  |- m4
  + libffi
  + bash-minimal

(With the right Unicode characters, of course.  :-))

The trick here is to identify already-visited sub-graphs, like
pkg-config above, and to not repeat them (for example, add ellipses as
in the example above).

Thoughts?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 18 Sep 2020 20:05:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 16:05:11 2020
Received: from localhost ([127.0.0.1]:44508 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJMd5-0005Rz-NM
	for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 16:05:11 -0400
Received: from mail-qv1-f66.google.com ([209.85.219.66]:39177)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kJMd4-0005RW-6O
 for 43477 <at> debbugs.gnu.org; Fri, 18 Sep 2020 16:05:10 -0400
Received: by mail-qv1-f66.google.com with SMTP id z18so3601650qvp.6
 for <43477 <at> debbugs.gnu.org>; Fri, 18 Sep 2020 13:05:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=uaXTZUERc4yihAEhF5Secuudrx2Ehrhvvhf7O/4pVzc=;
 b=iyfwzpUSOILBeLkaRQAJFMpFGKIQgpZwdHENqnMo9XBRsPhC9LDyzq5DKAAyAnuaOf
 Li/qJNWhZbRkaPYCzXAGCcmodjQBAvfJ8QmporT8D91lP+isJciA4RE9uvbPHsNJSaR7
 WlSLZF74b3GgNcDBzo4vTkL9AXS7TDkH4WhE/EnLucrLlG/v+A2wzLa4E0qI/hbGVUZW
 Xyej1epZwNLArqHU0PLjjLZE+7McXUI4S+MJP+8fUhoiEdJgfbiwVa5CjlxwYzRqCmSk
 LmWUfn66IlnDQGVRVI8eIwF7Y/XZqGzZ/YjLpEgFkVJImRkpWusCB3q8pJj0/osXsqpl
 gf0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=uaXTZUERc4yihAEhF5Secuudrx2Ehrhvvhf7O/4pVzc=;
 b=uPc0BY/sa1KkvztLNesNTBgxc4BTFzM1YGLzmJQr40RYVWxr3p/zuOA5aVrL+vtT4f
 m4psHIPQtiLKCTqjGCOeaHb5/O4pPo93v1ViaUurWzCL+MTMjxS1hPZzWwsKGJLadhxV
 o6xdN4R/dvS8hkIzjQZgJWmST2HWVIea/EJai9plfl/GjBWVtW1kCldfZLq5vHbP8JdZ
 83DB7WytY9fpw4SGdDIoGWPv8njP81mXiGkcUfI430/vS/GDmsVOL3jj/MZlj94ye5jz
 oCvWJ/OtcU6LGRa2373OZL9awoT1VlYWXrG+pN1ry/VI+yjLrgqcIVIJ1MsnCr1LhI2a
 olXA==
X-Gm-Message-State: AOAM5323qBjo+6bgHatx3y4b/KTYIXAFI3yaMqKY2MSdu6PV+7ZTP4tl
 B3ePpzcFM0sOmE7BniM5u2tM3/2j6qr//r6RD80=
X-Google-Smtp-Source: ABdhPJzrYPBq429PcbS8pd48ByHXlqY8+BbYhxM9SjgYIM0tjbfwqWuLti09qncQ5ryn4BcYXFJYXvhrUxeJUJ1/7JM=
X-Received: by 2002:ad4:58e7:: with SMTP id di7mr18597303qvb.36.1600459504654; 
 Fri, 18 Sep 2020 13:05:04 -0700 (PDT)
MIME-Version: 1.0
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
In-Reply-To: <87v9gbtg9w.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 18 Sep 2020 22:04:53 +0200
Message-ID: <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
To: Ricardo Wurmus <rekado@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: 43477 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, 18 Sep 2020 at 14:33, Ricardo Wurmus <rekado@HIDDEN> wrote:

> Is that still a graph, though=E2=80=A6?

I agree it is not a graph.  Instead of 'plain' the name could be
'list-nodes', or whatever.


> It reminds me of =E2=80=9Cguix gc -R /gnu/store/=E2=80=A6-something=E2=80=
=9D, except that in
> your case the output is for things that haven=E2=80=99t necessarily been
> realized as store items yet.

The point is that "guix gc" does not operate at the same level as "guix gra=
ph".

As I explained to Mathieu, 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.  The aim is to provide something where I can use for
example '-t bag'.  And also something that I can use with the other
Guix commands.

Well, I have been annoyed a couple of times so I decided to fix my
issue and send a proposal. :-)

Cheers,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Sep 2020 20:05:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 16:05:09 2020
Received: from localhost ([127.0.0.1]:44505 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJMd3-0005Rj-Dj
	for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 16:05:09 -0400
Received: from lists.gnu.org ([209.51.188.17]:36120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kJMd1-0005Rc-Nu
 for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 16:05:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38960)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1kJMd1-0005IL-I0
 for guix-patches@HIDDEN; Fri, 18 Sep 2020 16:05:07 -0400
Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]:41059)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1kJMcz-0000jP-S0
 for guix-patches@HIDDEN; Fri, 18 Sep 2020 16:05:07 -0400
Received: by mail-qv1-xf42.google.com with SMTP id ef16so3596371qvb.8
 for <guix-patches@HIDDEN>; Fri, 18 Sep 2020 13:05:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=uaXTZUERc4yihAEhF5Secuudrx2Ehrhvvhf7O/4pVzc=;
 b=iyfwzpUSOILBeLkaRQAJFMpFGKIQgpZwdHENqnMo9XBRsPhC9LDyzq5DKAAyAnuaOf
 Li/qJNWhZbRkaPYCzXAGCcmodjQBAvfJ8QmporT8D91lP+isJciA4RE9uvbPHsNJSaR7
 WlSLZF74b3GgNcDBzo4vTkL9AXS7TDkH4WhE/EnLucrLlG/v+A2wzLa4E0qI/hbGVUZW
 Xyej1epZwNLArqHU0PLjjLZE+7McXUI4S+MJP+8fUhoiEdJgfbiwVa5CjlxwYzRqCmSk
 LmWUfn66IlnDQGVRVI8eIwF7Y/XZqGzZ/YjLpEgFkVJImRkpWusCB3q8pJj0/osXsqpl
 gf0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=uaXTZUERc4yihAEhF5Secuudrx2Ehrhvvhf7O/4pVzc=;
 b=EwPQLBBLXb7095iB3IhHwett/VF8WnTqgBjLSlJO6K8hRrKvwuOooTkJ+qDDJJLUSf
 zMHEStLel8gHb0eiVNI3CPRBA8wS/xDWtMoWEws8zO7UW3WDL3h3QCikUS00xn1Dbr0c
 aeFO56tr7UhfVArG1hmKIL8TgCMlHcTczOWL91IFFRRQ+418j7ndvNwzgWhWVohhTDiY
 4AUvmqWmffWLTtCRO+4MgDLTwX4N4ucsqWHh6DFdYjnXQkK44lgiyKDN6k1v+kHhicOJ
 20fwu1KtLe5Yeap1RyZ1LJYM3CSvHwOjRdGhWuK/8sV2VNg/8pyjj78WnVTXjKcIZjTC
 UAYg==
X-Gm-Message-State: AOAM530QeDhI2pldBI8JON5ap5fGl5ILbQmbM17p/eCxwrwr9yadQWZl
 IIZdfij/sYyOgvGxwjnecycQKQILaCoP2Nvt8ABvAom6Y3s=
X-Google-Smtp-Source: ABdhPJzrYPBq429PcbS8pd48ByHXlqY8+BbYhxM9SjgYIM0tjbfwqWuLti09qncQ5ryn4BcYXFJYXvhrUxeJUJ1/7JM=
X-Received: by 2002:ad4:58e7:: with SMTP id di7mr18597303qvb.36.1600459504654; 
 Fri, 18 Sep 2020 13:05:04 -0700 (PDT)
MIME-Version: 1.0
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <87v9gbtg9w.fsf@HIDDEN>
In-Reply-To: <87v9gbtg9w.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 18 Sep 2020 22:04:53 +0200
Message-ID: <CAJ3okZ1iuN-we++1DRLDp-+2ijeMng2jDNRRmPz74gjdxDWfGg@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
To: Ricardo Wurmus <rekado@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::f42;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-qv1-xf42.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: 43477 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

On Fri, 18 Sep 2020 at 14:33, Ricardo Wurmus <rekado@HIDDEN> wrote:

> Is that still a graph, though=E2=80=A6?

I agree it is not a graph.  Instead of 'plain' the name could be
'list-nodes', or whatever.


> It reminds me of =E2=80=9Cguix gc -R /gnu/store/=E2=80=A6-something=E2=80=
=9D, except that in
> your case the output is for things that haven=E2=80=99t necessarily been
> realized as store items yet.

The point is that "guix gc" does not operate at the same level as "guix gra=
ph".

As I explained to Mathieu, 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.  The aim is to provide something where I can use for
example '-t bag'.  And also something that I can use with the other
Guix commands.

Well, I have been annoyed a couple of times so I decided to fix my
issue and send a proposal. :-)

Cheers,
simon




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 18 Sep 2020 19:59:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 15:59:27 2020
Received: from localhost ([127.0.0.1]:44490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJMXW-0005Ho-SN
	for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 15:59:27 -0400
Received: from mail-qk1-f194.google.com ([209.85.222.194]:34458)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kJMXV-0005HW-9x
 for 43477 <at> debbugs.gnu.org; Fri, 18 Sep 2020 15:59:26 -0400
Received: by mail-qk1-f194.google.com with SMTP id w186so7606697qkd.1
 for <43477 <at> debbugs.gnu.org>; Fri, 18 Sep 2020 12:59:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=l3/fHHjQvbH1u3eDuFOvmwoPzLBaGAsb343huaVoeZA=;
 b=Fy0f5aeeRX8SpLfnZ9eHQRcVfIlhZ782ffJZ0K4HTvd/mknw1w50XxDjSPzJGccsXD
 ccIsl4fW/iWWO8yLsr9/ovb9EHYj9S6KFhWdyKJWrKSx2l7u0dZISo+1kZGVHgZ3sPis
 jv3+7tq6+4gsGYTz6Gkco5SpISbgZw1kiSeCzVTHiO4SzH8oEMCLswQU4pue92XyovC9
 H8HDGWgqRLkD1xXHxHUOB8GGTCIYo88HaiSic7gh1vAAWKSC9bfgElXWyd1EKK5dpom5
 pPEpSY3mIgLU35TQ+yVu2yMPVVizGjMnHKKDETrAhtfGRKqru4yYveI0tI/3TjclJKNA
 hKwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=l3/fHHjQvbH1u3eDuFOvmwoPzLBaGAsb343huaVoeZA=;
 b=qJNxGLUvGzHCJ7rARz+Mb4GyrORC8jUnfMiTDbuqkDa2sVT7v0BU03B1yLwsYG7vXt
 QnOjCvZUVJhFQ60DtXath4ywDMyhWkTVGgSrfQr2b3oJiSoeXuNlH+Zx/LYICswqm7+/
 rUt1h7hX0Um/p0BYTc1LqaZRuauO1KMasJDDRZZwULnK3qdYvN8Ie6eLOr91ZH6D0C4u
 kiOfA3Y0dlvnKbr+GA08JhiGdQ8yCsZL/1A6RBCMBJmFlMegH/wwbYHzYiLsE071Yihu
 65h3uP2VKGuPgpvYdwdk/aOkQbZxSbgJpEnz49HUhlg4k8AW2RFTLX2GdZRz8IXILbmY
 rYbw==
X-Gm-Message-State: AOAM531a0dA4vXA7GU57PA2/wACoYPFZg3mM0vk5zHrhAp2zbOIL1LOf
 X5PQaeVSGJhw9W24gu75scV4XuSWheiXtxuYWW4=
X-Google-Smtp-Source: ABdhPJydMKX7bGRpmSl4XuitlPmllK9lrVJN2LRLE4fH5N1Rv73TVZAu9yeAz8Oww4JDNT+L15EcUkmjUu2arpJPeMg=
X-Received: by 2002:a05:620a:53a:: with SMTP id
 h26mr34608062qkh.232.1600459159574; 
 Fri, 18 Sep 2020 12:59:19 -0700 (PDT)
MIME-Version: 1.0
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
 <877dsr1l6s.fsf@HIDDEN>
In-Reply-To: <877dsr1l6s.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 18 Sep 2020 21:59:08 +0200
Message-ID: <CAJ3okZ03hO0RjiDo=Jn_gkeB5MOe7r5MP4uKoFsorgcUNJp_UA@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
To: Mathieu Othacehe <othacehe@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On Fri, 18 Sep 2020 at 11:36, Mathieu Othacehe <othacehe@HIDDEN> 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@HIDDEN
> > autoconf@HIDDEN
> > perl@HIDDEN
> > m4@HIDDEN
> > automake@HIDDEN
> > autoconf-wrapper@HIDDEN
> > guile@HIDDEN
> > pkg-config@HIDDEN
> > libffi@HIDDEN
> > bash-minimal@HIDDEN
> > libunistring@HIDDEN
> > libltdl@HIDDEN
> > libgc@HIDDEN
> > gmp@HIDDEN
> > bash@HIDDEN
> > readline@HIDDEN
> > ncurses@HIDDEN
>
> 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




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 18 Sep 2020 12:33:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 08:33:24 2020
Received: from localhost ([127.0.0.1]:41165 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJFZs-0007p7-2z
	for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 08:33:24 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21125)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1kJFZq-0007or-AY
 for 43477 <at> debbugs.gnu.org; Fri, 18 Sep 2020 08:33:22 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1600432398; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=MiQFHj5Zjl7N22uOoqlqVVHlILdgRUUva1RERQy7mbUlSIksXRj5o1N7zRZnZ/e5hOBOkeaxYfusayvGzM8HtP41VxHyuHcaoqKd5WIZn7/6UpdfYx+nftHQ1CXhfD8U/jOMUaXjjbLbmt+AuUsBJEsjCoooKLCeWDdROdY/xSg=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1600432398;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=EnVW0fLeXexI7zVrTqjvchYXYh6XsiiZg019hsJ3urU=; 
 b=heX0LtgVTslzDmw5j86Dl1xGZMmgqqrzv0IzKHRQ7WopqCJeYKw7yds/EMFb2BZrOiJDv0rmw1kQBY/thRpssiESAyrUK1cBjDlHtKNxGmkW/uDg87/MVbjsd23QXKSOoq5bbCXRnHWhFu9g53uBszxWeKRV1A+6bdw4mpznlq8=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600432398; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 bh=EnVW0fLeXexI7zVrTqjvchYXYh6XsiiZg019hsJ3urU=;
 b=IpHfu/3q9JC0UL3K50lZ5nqfXB5/0nTbmU+LQUBOOQKl45lZx50GOdxD/L1LhAxH
 Xn6w4r/BakZRwPQUGgZJCdjWGE1xsH43zTlh9CuJAN/jlmcbSrAYx2tOGX/q3CHm8cu
 5mH20K7Pz2UCivbd/FWqGWvMD9y4NYKzIwXb+VAU=
Received: from localhost (p54ad4d4d.dip0.t-ipconnect.de [84.173.77.77]) by
 mx.zohomail.com with SMTPS id 160043239585461.54106198168142;
 Fri, 18 Sep 2020 05:33:15 -0700 (PDT)
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
User-agent: mu4e 1.4.13; emacs 27.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
In-reply-to: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Fri, 18 Sep 2020 14:34:35 +0200
Message-ID: <87v9gbtg9w.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: 43477 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


zimoun <zimon.toutoune@HIDDEN> writes:

> Dear,
>
> I am always annoyed when I use "guix graph" because most of the time I ru=
n:
>
>   guix graph htop | grep label
>
> or something along these lines.  Instead, the patch avoids the grep part:
>
> --8<---------------cut here---------------start------------->8---
> $ ./pre-inst-env guix graph -b plain htop
> htop@HIDDEN
> autoconf@HIDDEN
> perl@HIDDEN
> m4@HIDDEN
> automake@HIDDEN
> autoconf-wrapper@HIDDEN
> guile@HIDDEN
> pkg-config@HIDDEN
> libffi@HIDDEN
> bash-minimal@HIDDEN
> libunistring@HIDDEN
> libltdl@HIDDEN
> libgc@HIDDEN
> gmp@HIDDEN
> bash@HIDDEN
> readline@HIDDEN
> ncurses@HIDDEN
> --8<---------------cut here---------------end--------------->8---

Is that still a graph, though=E2=80=A6?

It reminds me of =E2=80=9Cguix gc -R /gnu/store/=E2=80=A6-something=E2=80=
=9D, except that in
your case the output is for things that haven=E2=80=99t necessarily been
realized as store items yet.

--=20
Ricardo




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Sep 2020 12:33:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 08:33:24 2020
Received: from localhost ([127.0.0.1]:41163 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJFZr-0007p4-QE
	for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 08:33:24 -0400
Received: from lists.gnu.org ([209.51.188.17]:41178)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1kJFZq-0007os-0d
 for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 08:33:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60422)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rekado@HIDDEN>)
 id 1kJFZp-0000l2-PP
 for guix-patches@HIDDEN; Fri, 18 Sep 2020 08:33:21 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21121)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rekado@HIDDEN>)
 id 1kJFZo-0003Jn-5c
 for guix-patches@HIDDEN; Fri, 18 Sep 2020 08:33:21 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1600432398; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=MiQFHj5Zjl7N22uOoqlqVVHlILdgRUUva1RERQy7mbUlSIksXRj5o1N7zRZnZ/e5hOBOkeaxYfusayvGzM8HtP41VxHyuHcaoqKd5WIZn7/6UpdfYx+nftHQ1CXhfD8U/jOMUaXjjbLbmt+AuUsBJEsjCoooKLCeWDdROdY/xSg=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1600432398;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=EnVW0fLeXexI7zVrTqjvchYXYh6XsiiZg019hsJ3urU=; 
 b=heX0LtgVTslzDmw5j86Dl1xGZMmgqqrzv0IzKHRQ7WopqCJeYKw7yds/EMFb2BZrOiJDv0rmw1kQBY/thRpssiESAyrUK1cBjDlHtKNxGmkW/uDg87/MVbjsd23QXKSOoq5bbCXRnHWhFu9g53uBszxWeKRV1A+6bdw4mpznlq8=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600432398; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 bh=EnVW0fLeXexI7zVrTqjvchYXYh6XsiiZg019hsJ3urU=;
 b=IpHfu/3q9JC0UL3K50lZ5nqfXB5/0nTbmU+LQUBOOQKl45lZx50GOdxD/L1LhAxH
 Xn6w4r/BakZRwPQUGgZJCdjWGE1xsH43zTlh9CuJAN/jlmcbSrAYx2tOGX/q3CHm8cu
 5mH20K7Pz2UCivbd/FWqGWvMD9y4NYKzIwXb+VAU=
Received: from localhost (p54ad4d4d.dip0.t-ipconnect.de [84.173.77.77]) by
 mx.zohomail.com with SMTPS id 160043239585461.54106198168142;
 Fri, 18 Sep 2020 05:33:15 -0700 (PDT)
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
User-agent: mu4e 1.4.13; emacs 27.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
In-reply-to: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Fri, 18 Sep 2020 14:34:35 +0200
Message-ID: <87v9gbtg9w.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@HIDDEN;
 helo=sender4-of-o51.zoho.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/18 08:23:11
X-ACL-Warn: Detected OS   = Linux 3.11 and newer [fuzzy]
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: 43477 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


zimoun <zimon.toutoune@HIDDEN> writes:

> Dear,
>
> I am always annoyed when I use "guix graph" because most of the time I ru=
n:
>
>   guix graph htop | grep label
>
> or something along these lines.  Instead, the patch avoids the grep part:
>
> --8<---------------cut here---------------start------------->8---
> $ ./pre-inst-env guix graph -b plain htop
> htop@HIDDEN
> autoconf@HIDDEN
> perl@HIDDEN
> m4@HIDDEN
> automake@HIDDEN
> autoconf-wrapper@HIDDEN
> guile@HIDDEN
> pkg-config@HIDDEN
> libffi@HIDDEN
> bash-minimal@HIDDEN
> libunistring@HIDDEN
> libltdl@HIDDEN
> libgc@HIDDEN
> gmp@HIDDEN
> bash@HIDDEN
> readline@HIDDEN
> ncurses@HIDDEN
> --8<---------------cut here---------------end--------------->8---

Is that still a graph, though=E2=80=A6?

It reminds me of =E2=80=9Cguix gc -R /gnu/store/=E2=80=A6-something=E2=80=
=9D, except that in
your case the output is for things that haven=E2=80=99t necessarily been
realized as store items yet.

--=20
Ricardo




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 18 Sep 2020 09:36:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 05:36:12 2020
Received: from localhost ([127.0.0.1]:40883 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJCoO-00030N-KR
	for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 05:36:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42282)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <othacehe@HIDDEN>) id 1kJCoN-000309-DO
 for 43477 <at> debbugs.gnu.org; Fri, 18 Sep 2020 05:36:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33569)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <othacehe@HIDDEN>)
 id 1kJCoH-00064S-2a; Fri, 18 Sep 2020 05:36:05 -0400
Received: from [2a01:e0a:19b:d9a0:9d9d:97cc:d92a:8ac0] (port=51220 helo=cervin)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <othacehe@HIDDEN>)
 id 1kJCo8-0008Ud-JS; Fri, 18 Sep 2020 05:36:01 -0400
From: Mathieu Othacehe <othacehe@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.
References: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
Date: Fri, 18 Sep 2020 11:35:55 +0200
In-Reply-To: <20200917193931.14699-1-zimon.toutoune@HIDDEN> (zimoun's
 message of "Thu, 17 Sep 2020 21:39:31 +0200")
Message-ID: <877dsr1l6s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 43477
Cc: 43477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


Hello zimoun,

> 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.

> $ ./pre-inst-env guix graph -b plain htop
> htop@HIDDEN
> autoconf@HIDDEN
> perl@HIDDEN
> m4@HIDDEN
> automake@HIDDEN
> autoconf-wrapper@HIDDEN
> guile@HIDDEN
> pkg-config@HIDDEN
> libffi@HIDDEN
> bash-minimal@HIDDEN
> libunistring@HIDDEN
> libltdl@HIDDEN
> libgc@HIDDEN
> gmp@HIDDEN
> bash@HIDDEN
> readline@HIDDEN
> ncurses@HIDDEN

The issue with this approach is that the output is not really a graph,
just a list of nodes.

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at 43477 <at> debbugs.gnu.org:


Received: (at 43477) by debbugs.gnu.org; 17 Sep 2020 19:40:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 17 15:40:44 2020
Received: from localhost ([127.0.0.1]:39153 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kIzls-0006md-Hd
	for submit <at> debbugs.gnu.org; Thu, 17 Sep 2020 15:40:44 -0400
Received: from mail-wm1-f54.google.com ([209.85.128.54]:52830)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kIzlr-0006mR-GV
 for 43477 <at> debbugs.gnu.org; Thu, 17 Sep 2020 15:40:43 -0400
Received: by mail-wm1-f54.google.com with SMTP id q9so3083426wmj.2
 for <43477 <at> debbugs.gnu.org>; Thu, 17 Sep 2020 12:40:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=tb8L//YchfWvEKDf6KrIOBoViMNtDbsQM/kNWVWpvks=;
 b=hgmIHMMjEqDESAvXTVkp5hTb9IGv0H9qBQX4mS0US1eJAOMjuOO77/BkFaK+FUrBQZ
 hOU10b0FEn40cBR+tD61HPno2A6Q2PRI1xxxz2vCaegoLtnYCyyJL/tYceA/4Z1imsV3
 Uez8hZmHQywofGQdN8YDvhFEbXDJKgKuJ6ZpOZ3LJpax8/H7rK/ZFULoz5qPAaoXAndD
 e7tz4EQovCalNfOv6abPmg4vPskNBx8rsrt6fKpYoHoSPUhBfsib0eohPLGEv+3dH2En
 9t4Dw8szNtoauux8YjvjfmaYu4jD/unp+mzf0py7zDKlZ7BQCiKF5ZdYFEL3TBV3oDK4
 d4Ng==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=tb8L//YchfWvEKDf6KrIOBoViMNtDbsQM/kNWVWpvks=;
 b=KcqpH0Gh9LxnWxSmX2mAZlQH6PblPZEIjIeY9qW3BViyke+n8mHUn86Jl8V6R1qCgL
 ZbNKBhxnmki7a5N/ww8LF0LHedebf9B+UgAxPN6U8IYZwQYkxVLI5F6ob9XuyG4IRk6a
 3ye194pez00ulw1EitQYunp0a3/akJPqlnEdrjVU4eIQByekfm/2Y91ZxF/8bdDX2fZe
 XPe5em9UHe8sdUZye6KvtjvbDwFCdd+s/2q9K/bntJkKn0KSCbhEHheGO8y+IqJ9Tib9
 gU1HXxiGvQREYQb3Gj5BBcDZDFmJ1iRDIIvMVyzNFDUAEouiEp6oL+8oJDZjqmOsepir
 MD+Q==
X-Gm-Message-State: AOAM533sxX8ASz/itbRDIxD1j8pMvmANCtofmZKW99yeN3FjwE2LWb98
 zl9R/PjvK4Rb9FjUSWdUvFKFUWzdEnE=
X-Google-Smtp-Source: ABdhPJzYVU6luqry8DcPC5ihd8xi1/j09bK84QTVISkUgLpwlQkcWyRvW5rHoeSbon4e1TVOTutdhw==
X-Received: by 2002:a1c:96:: with SMTP id 144mr11765907wma.84.1600371637261;
 Thu, 17 Sep 2020 12:40:37 -0700 (PDT)
Received: from lili.univ-paris-diderot.fr
 ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id z14sm832096wrh.14.2020.09.17.12.40.35
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 17 Sep 2020 12:40:36 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: 43477 <at> debbugs.gnu.org
Subject: [PATCH 1/1] guix: graph: Add 'plain' backend.
Date: Thu, 17 Sep 2020 21:40:32 +0200
Message-Id: <20200917194032.15103-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.28.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43477
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/graph.scm: (emit-plain-prologue, emit-plain-epilogue, emit-plain-node,
emit-plain-edge): New procedures.
(%plain-backend): New variable.
(%graph-backends): Update variable.
---
 guix/graph.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/guix/graph.scm b/guix/graph.scm
index b695ca4306..4be864b29a 100644
--- a/guix/graph.scm
+++ b/guix/graph.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015, 2016, 2020 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2016 Ricardo Wurmus <rekado@HIDDEN>
+;;; Copyright © 2020 Simon Tournier <zimon.toutoune@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -324,6 +325,28 @@ nodeArray.push(nodes[\"~a\"]);~%"
                  emit-cypher-prologue emit-cypher-epilogue
                  emit-cypher-node emit-cypher-edge))
 
+
+;;;
+;;; Plain export
+;;;
+
+(define (emit-plain-prologue name port)
+  (format port ""))
+
+(define (emit-plain-epilogue port)
+  (format port ""))
+
+(define (emit-plain-node id label port)
+  (format port "~a~%" label))
+
+(define (emit-plain-edge id1 id2 port)
+  (format port ""))
+
+(define %plain-backend
+  (graph-backend "plain"
+                 "Generate Plain queries."
+                 emit-plain-prologue emit-plain-epilogue
+                 emit-plain-node emit-plain-edge))
 
 
 ;;;
@@ -333,7 +356,8 @@ nodeArray.push(nodes[\"~a\"]);~%"
 (define %graph-backends
   (list %graphviz-backend
         %d3js-backend
-        %cypher-backend))
+        %cypher-backend
+        %plain-backend))
 
 (define* (export-graph sinks port
                        #:key
-- 
2.28.0





Information forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Sep 2020 19:39:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 17 15:39:51 2020
Received: from localhost ([127.0.0.1]:39148 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kIzl1-0006kj-6n
	for submit <at> debbugs.gnu.org; Thu, 17 Sep 2020 15:39:51 -0400
Received: from lists.gnu.org ([209.51.188.17]:38096)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kIzkz-0006kc-I3
 for submit <at> debbugs.gnu.org; Thu, 17 Sep 2020 15:39:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55270)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1kIzkz-0001AT-9m
 for guix-patches@HIDDEN; Thu, 17 Sep 2020 15:39:49 -0400
Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:56107)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1kIzkx-0003bU-A3
 for guix-patches@HIDDEN; Thu, 17 Sep 2020 15:39:48 -0400
Received: by mail-wm1-x336.google.com with SMTP id d4so3074470wmd.5
 for <guix-patches@HIDDEN>; Thu, 17 Sep 2020 12:39:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=dQ7NqvJlT226FknrBJ5WJZWvQ8rhSRXPaHdCUbPhD4g=;
 b=fur/Sw5igFqXOpkD7qvQQP2NmPSfVI8BWn4As6J8m801rFJwoANeeopfPwjTWc+prx
 8kSC1SAAYnaoKSSefmrhIJ2JhruBcWrwFhxCALRRqZPOyDBiwK901RQLA+Cxp+Nh7MYg
 s/QymkeETdbJCcoE5mXXDbYP8mWwOs5zbeDQIm1VhYp1T8jetatVi9yNelZke4V1l5A7
 MSzQt7lGIZ5TzTzcUHcaDI5CIefd00BouHUXFClO8FsNzULobSVfuopvOsae9BU01Jsf
 Lq3te6B2RByL/dCf8yv6e6J9cw5A4p7O6LP9uBK5pnZ2i2af7FTTcyJEEPTSTE/IOzrc
 DvXg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=dQ7NqvJlT226FknrBJ5WJZWvQ8rhSRXPaHdCUbPhD4g=;
 b=UTGTmd0AFyHf2xn4WjlPI1WufCWMXCF0XcQ4g7S9R6fU0iu9uHQylD9Hz6cEHzmzyJ
 a7SdgGXes63EUqFR5t0L8iDcC0CHe7bb7cR5EhBzsCmMdF2sww8DQ/Kr+sqYXnjhoVP4
 9f7JRsO+zX+usm0MAORKS1UHOzkL+lHr2QTVQCBo4JXUfEVYjeUahjYI+MIoxqaXm4OW
 r6P9osSPX7Q02BTlY0GP6xsqt1GgqLxwSMjZEVofaZLvrGfgKKayOmmMt9AnuCfsBoAE
 wase3/3p3GprVB7LX6fqzsHhrBuS+h1n6x/4FtGZunkLb30xUbOZhfPddn7aCG6H2wMv
 IGnw==
X-Gm-Message-State: AOAM531uBwANnCi54xJeArS/NWzoWhuicZJ+mxHeA8NaI5jF8bJJ+gcn
 8NNyTVeXAfeXfXSDKe5fDBS+h7gQpqo=
X-Google-Smtp-Source: ABdhPJxySCFswQs+p5C3J8JPK8rl2E5M/SaknTsZZcJvD4xvkxLnlZZlrVxAkYyA7avLeBZB7xihMg==
X-Received: by 2002:a7b:c085:: with SMTP id r5mr12370897wmh.52.1600371585456; 
 Thu, 17 Sep 2020 12:39:45 -0700 (PDT)
Received: from lili.univ-paris-diderot.fr
 ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id h186sm750878wmf.24.2020.09.17.12.39.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 17 Sep 2020 12:39:44 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH 0/1] guix: graph: Add 'plain' backend.
Date: Thu, 17 Sep 2020 21:39:31 +0200
Message-Id: <20200917193931.14699-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.28.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::336;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wm1-x336.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Dear,

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:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix graph -b plain htop
htop@HIDDEN
autoconf@HIDDEN
perl@HIDDEN
m4@HIDDEN
automake@HIDDEN
autoconf-wrapper@HIDDEN
guile@HIDDEN
pkg-config@HIDDEN
libffi@HIDDEN
bash-minimal@HIDDEN
libunistring@HIDDEN
libltdl@HIDDEN
libgc@HIDDEN
gmp@HIDDEN
bash@HIDDEN
readline@HIDDEN
ncurses@HIDDEN
--8<---------------cut here---------------end--------------->8---


It is then easier to pipe with other Guix commands, for example:

--8<---------------cut here---------------start------------->8---
$ guix build $(./pre-inst-env guix graph -b plain htop | grep bash)
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
0.9 MB will be downloaded:
   /gnu/store/m4qpxmn9v0jrylgbkzwssh5avzwhqil6-bash-minimal-5.0.16-doc
   /gnu/store/fvhj74pghapbjvsvj27skvkra1by1965-bash-minimal-5.0.16
substituting /gnu/store/m4qpxmn9v0jrylgbkzwssh5avzwhqil6-bash-minimal-5.0.16-doc...
downloading from https://ci.guix.gnu.org/nar/lzip/m4qpxmn9v0jrylgbkzwssh5avzwhqil6-bash-minimal-5.0.16-doc ...
 bash-minimal-5.0.16-doc  290KiB     444KiB/s 00:01 [##################] 100.0%

/gnu/store/vk4r0x7baig8jnmsqrgrqpyq8qxr4gm3-bash-5.0.16-doc
/gnu/store/v1xc4405s7xilmwhhkdj8z55wa2wlr8y-bash-5.0.16-include
/gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16
/gnu/store/m4qpxmn9v0jrylgbkzwssh5avzwhqil6-bash-minimal-5.0.16-doc
/gnu/store/fvhj74pghapbjvsvj27skvkra1by1965-bash-minimal-5.0.16
--8<---------------cut here---------------end--------------->8---


Note that the manual is not updated since, since I do not know how to extend
the relevant section.   Note also that "tests/guix-graph.sh" does not test any
of the backends.


All the best,
simon

zimoun (1):
  guix: graph: Add 'plain' backend.

 guix/graph.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)


base-commit: 8d557d4167ea98dfbc200fd20f64b8da36da35a2
-- 
2.28.0





Acknowledgement sent to zimoun <zimon.toutoune@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#43477; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 5 Oct 2020 08:15:02 UTC

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