From patchwork Thu Sep 17 19:39:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 24193 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C364927BBE8; Thu, 17 Sep 2020 20:40:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DEAR_NOBODY, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4797627BBE7 for ; Thu, 17 Sep 2020 20:40:19 +0100 (BST) Received: from localhost ([::1]:43432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIzlS-0001BQ-B8 for patchwork@mira.cbaines.net; Thu, 17 Sep 2020 15:40:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIzlF-0001BC-Cp for guix-patches@gnu.org; Thu, 17 Sep 2020 15:40:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIzlC-0003dE-Di for guix-patches@gnu.org; Thu, 17 Sep 2020 15:40:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIzlC-0006lE-B6 for guix-patches@gnu.org; Thu, 17 Sep 2020 15:40: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: Thu, 17 Sep 2020 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43477@debbugs.gnu.org Cc: zimoun X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160037159125966 (code B ref -1); Thu, 17 Sep 2020 19:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Sep 2020 19:39:51 +0000 Received: from localhost ([127.0.0.1]:39148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIzl1-0006kj-6n for submit@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 ) id 1kIzkz-0006kc-I3 for submit@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 ) id 1kIzkz-0001AT-9m for guix-patches@gnu.org; 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 ) id 1kIzkx-0003bU-A3 for guix-patches@gnu.org; Thu, 17 Sep 2020 15:39:48 -0400 Received: by mail-wm1-x336.google.com with SMTP id d4so3074470wmd.5 for ; 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 Date: Thu, 17 Sep 2020 21:39:31 +0200 Message-Id: <20200917193931.14699-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=zimon.toutoune@gmail.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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@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 --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