From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0HB6COUSZV+SKgAA0tVLHw (envelope-from ) for ; Fri, 18 Sep 2020 20:04:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MAl3BOUSZV/8EgAAB5/wlQ (envelope-from ) for ; Fri, 18 Sep 2020 20:04:53 +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 8690B940664 for ; Fri, 18 Sep 2020 20:04:52 +0000 (UTC) Received: from localhost ([::1]:39730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJMcl-0004RE-DP for larch@yhetil.org; Fri, 18 Sep 2020 16:04:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJMY7-00010w-14 for guix-patches@gnu.org; Fri, 18 Sep 2020 16:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32944) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJMY6-0000AN-9I for guix-patches@gnu.org; Fri, 18 Sep 2020 16:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJMY6-0005J2-7R for guix-patches@gnu.org; Fri, 18 Sep 2020 16:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Sep 2020 20:00: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: Mathieu Othacehe Cc: 43477@debbugs.gnu.org Received: via spool by 43477-submit@debbugs.gnu.org id=B43477.160045916720328 (code B ref 43477); Fri, 18 Sep 2020 20:00:02 +0000 Received: (at 43477) by debbugs.gnu.org; 18 Sep 2020 19:59:27 +0000 Received: from localhost ([127.0.0.1]:44490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJMXW-0005Ho-SN for submit@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 ) id 1kJMXV-0005HW-9x for 43477@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@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@gmail.com> <877dsr1l6s.fsf@gnu.org> In-Reply-To: <877dsr1l6s.fsf@gnu.org> From: zimoun Date: Fri, 18 Sep 2020 21:59:08 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=Fy0f5aee; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 0.09 X-TUID: TV5dOO7oaaGu Hi, On Fri, 18 Sep 2020 at 11:36, Mathieu Othacehe 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@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. It is a flattened graph. :-) Well, my use case is: I am doing "guix graph -t | grep label" and in general then "guix graph -t | grep label | grep "; 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