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 ms0.migadu.com with LMTPS id y+XDKhTjSWGTJgAAgWs5BA (envelope-from ) for ; Tue, 21 Sep 2021 15:50:12 +0200 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 cDm9JRTjSWGdPgAAbx9fmQ (envelope-from ) for ; Tue, 21 Sep 2021 13:50: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 45FD11F799 for ; Tue, 21 Sep 2021 15:50:12 +0200 (CEST) Received: from localhost ([::1]:49056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSg9z-00081f-Df for larch@yhetil.org; Tue, 21 Sep 2021 09:50:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSg9q-0007w4-I5 for guix-patches@gnu.org; Tue, 21 Sep 2021 09:50:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSg9q-0003zh-Aw for guix-patches@gnu.org; Tue, 21 Sep 2021 09:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSg9q-0006A5-6B for guix-patches@gnu.org; Tue, 21 Sep 2021 09:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50632] [PATCH] graph: Add '--max-depth'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Sep 2021 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50632 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 50632@debbugs.gnu.org Received: via spool by 50632-submit@debbugs.gnu.org id=B50632.163223216323627 (code B ref 50632); Tue, 21 Sep 2021 13:50:02 +0000 Received: (at 50632) by debbugs.gnu.org; 21 Sep 2021 13:49:23 +0000 Received: from localhost ([127.0.0.1]:45477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSg9D-000691-1v for submit@debbugs.gnu.org; Tue, 21 Sep 2021 09:49:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSg9B-00068o-Pw for 50632@debbugs.gnu.org; Tue, 21 Sep 2021 09:49:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51074) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSg96-0003Lq-Ge; Tue, 21 Sep 2021 09:49:16 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=47318 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSg96-0005C0-7r; Tue, 21 Sep 2021 09:49:16 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210917081848.14264-1-ludo@gnu.org> <87a6k6nwr1.fsf@gnu.org> <86v92ub80e.fsf@gmail.com> Date: Tue, 21 Sep 2021 15:49:14 +0200 In-Reply-To: <86v92ub80e.fsf@gmail.com> (zimoun's message of "Tue, 21 Sep 2021 11:19:45 +0200") Message-ID: <87o88mjaxx.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632232212; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=7nhNlvF4Yvj854Mb6R7njHdUHMlZl1ArrvyzFP2QJrk=; b=jGXQ2rxqllGAPVqnE7VRTbbqiosL81kWOUKp3eEIC6CbqF1cA58Yvc9WbeWV9074PGCrNH iOZNTqwxHlnANjdztZUjIOACK/JBeIqAMoeKXlbnXQR8xI29AzzUMpIhQ+qXsk2ivX5dWJ Rd5RAdLT65P3Jv+7QaTw2qyOadagZ0GXH2aet8n0Q0E+SQyg53xjdz4VuT6zZQE3x3SrmH 2bZVR/Ik7u8e0BDkB2/pZMDpOeYBp/WHhPmu8TgjUMPnWyMUx8T8MR33Heb42ZmMsZI6Ws P9RVngKspDJVVy2/CAUcw/H6OeqWCPqv3t9Koss7z+y/NShx8yhTOM5kPlwqxQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632232212; a=rsa-sha256; cv=none; b=knw4F/m5YhQVu7L0pQnepHrtI1vZpMbmtMf2YilZw8bC6VtqG34DGOgXUVWpXk8Lfapcjc majurjwQxv7SxTBz3gt4rKjkQ3225wV6k/GjC6M1fXek/d2Tjog0JqkATaRmm0rFCxl4xP DB45MeUkW3cHp8Na1XQpZzHBdMf53+csJWnKEYqJ89SRImp6HeV5kcyKVofFbxxcrn104N o6jESQtlLZ8zpFSAgUCaGW69cWjQ4J+sdADQrpeoyi3/T1aMg3HlXTNM2HES7vxeNZEhEU wERoUEdrAqK5EiIHZdIA0x9reP7BVdlkxSQmMwiHPIP+oKIqqS8Obeg1iGtdow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Spam-Score: -2.89 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: 45FD11F799 X-Spam-Score: -2.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: xsa7nvHLM9Kb zimoun skribis: > On Tue, 21 Sep 2021 at 10:44, Ludovic Court=C3=A8s wrote: > >> True, it=E2=80=99s a separate program, but it=E2=80=99s mentioned since >> c2b2c19a7b8b75ef6dd153ca121dd8765cdcd746 because it=E2=80=99s more conve= nient >> IMO. > > Ah, I should have missed this. However, it does not work out of the > box: > > $ guix environment --ad-hoc xdot > $ guix graph coreutils | xdot - > Traceback (most recent call last): > File "/gnu/store/gm49bvwdgjpx23wlcfrm8mbf8n75a77n-xdot-1.1/bin/.xdot-re= al", line 11, in > load_entry_point('xdot=3D=3D1.1', 'gui_scripts', 'xdot')() > File "/gnu/store/gm49bvwdgjpx23wlcfrm8mbf8n75a77n-xdot-1.1/lib/python3.= 8/site-packages/xdot/__main__.py", line 70, in main > win =3D DotWindow(width=3Dwidth, height=3Dheight) > File "/gnu/store/gm49bvwdgjpx23wlcfrm8mbf8n75a77n-xdot-1.1/lib/python3.= 8/site-packages/xdot/ui/window.py", line 546, in __init__ > self.dotwidget =3D widget or DotWidget() > File "/gnu/store/gm49bvwdgjpx23wlcfrm8mbf8n75a77n-xdot-1.1/lib/python3.= 8/site-packages/xdot/ui/window.py", line 67, in __init__ > self.connect("draw", self.on_draw) > TypeError: : unknown signal name: draw > > (.xdot-real:5940): Gtk-WARNING **: 11:09:08.420: A floating object was fi= nalized. This means that someone > called g_object_unref() on an object that had only a floating > reference; the initial floating reference is not owned by anyone > and must be removed with g_object_ref_sink(). > guix graph: error: fport_write: Broken pipe > Segmentation fault Could you report a bug? This works for me: --8<---------------cut here---------------start------------->8--- $ guix describe Generacio 189 Aug 30 2021 12:09:27 (nuna) guix f91ae94 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: f91ae9425bb385b60396a544afe27933896b8fa3 $ guix graph coreutils | guix environment --pure -E ^DISPLAY -E ^XAUTH --ad= -hoc xdot -- xdot - --8<---------------cut here---------------end--------------->8--- > That=E2=80=99s why I suggest to keep examples in the manual as simple as > possible. From my point of view, this package should be mentioned but > should not be part of the example. > > The core of the comment is when releasing. Examples involving a complex > stack are harder to fix. And from my point of view, release broken > examples in the manual is not acceptable*; for an instance of this, see > . I sympathize with the general feeling. I think =E2=80=98xdot=E2=80=99 is n= ot that bad though, plus the first example in that section still uses =E2=80=98dot=E2= =80=99. Thanks, Ludo=E2=80=99.