From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6AYNHch/ZF+GPwAA0tVLHw (envelope-from ) for ; Fri, 18 Sep 2020 09:37:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EJ/TGMh/ZF+bCAAAbx9fmQ (envelope-from ) for ; Fri, 18 Sep 2020 09:37:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D9D389402A0 for ; Fri, 18 Sep 2020 09:37:11 +0000 (UTC) Received: from localhost ([::1]:47472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJCpK-0003BY-QC for larch@yhetil.org; Fri, 18 Sep 2020 05:37:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJCpC-00038d-KV for guix-patches@gnu.org; Fri, 18 Sep 2020 05:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJCpC-00069b-AC for guix-patches@gnu.org; Fri, 18 Sep 2020 05:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJCpC-00031x-8N for guix-patches@gnu.org; Fri, 18 Sep 2020 05:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Sep 2020 09:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 43477@debbugs.gnu.org Received: via spool by 43477-submit@debbugs.gnu.org id=B43477.160042177211559 (code B ref 43477); Fri, 18 Sep 2020 09:37:02 +0000 Received: (at 43477) by debbugs.gnu.org; 18 Sep 2020 09:36:12 +0000 Received: from localhost ([127.0.0.1]:40883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJCoO-00030N-KR for submit@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 ) id 1kJCoN-000309-DO for 43477@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 ) 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 ) id 1kJCo8-0008Ud-JS; Fri, 18 Sep 2020 05:36:01 -0400 From: Mathieu Othacehe References: <20200917193931.14699-1-zimon.toutoune@gmail.com> Date: Fri, 18 Sep 2020 11:35:55 +0200 In-Reply-To: <20200917193931.14699-1-zimon.toutoune@gmail.com> (zimoun's message of "Thu, 17 Sep 2020 21:39:31 +0200") Message-ID: <877dsr1l6s.fsf@gnu.org> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: fP2rEY8s/SQ/ 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@3.0.2 > autoconf@2.69 > perl@5.30.2 > m4@1.4.18 > automake@1.16.2 > autoconf-wrapper@2.69 > guile@2.0.14 > pkg-config@0.29.2 > libffi@3.3 > bash-minimal@5.0.16 > libunistring@0.9.10 > libltdl@2.4.6 > libgc@8.0.4 > gmp@6.2.0 > bash@5.0.16 > readline@8.0.4 > ncurses@6.2 The issue with this approach is that the output is not really a graph, just a list of nodes. Thanks, Mathieu