From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MBM4KmiloGaqDgEAe85BDQ:P1 (envelope-from ) for ; Wed, 24 Jul 2024 06:55:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MBM4KmiloGaqDgEAe85BDQ (envelope-from ) for ; Wed, 24 Jul 2024 08:55:36 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Fm8rw3m2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721804136; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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:dkim-signature; bh=6dAvMponzx20Uhfy1XI49LjjmHKFFtRqyBvoO2/9mkU=; b=HFFvcrwpR4u3fHl1r+EZytNDum16PCkNJ4m4OBANAE9/7qf+VbkpfkTcqgpmaQwjuAWNHr nvoUR5aLNUywtpcq6AC+fJV+5oGVSrwf98CaNK0Q3p1xq+ZxwG4xR/zOYaH97yKU2ss+v4 fONtQpCVjMtYnj1lQqmPEjxKzyaCsiQb9sILjzaFKnaXvUk094LzvgfuH/r+ctSMafLpLG V/+kPPzKy21omSWoDmWu4AaV9jkBcRWZ/lw0F7RioiDCDHsUCX/SJR/k6LOrQQ7c9lvw2W MZDFiO9rwG37WBmavVAv+Jlb/8r4cpeYwgwOokXfF8zRpLdrzTiT/egWT/j/VA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721804136; a=rsa-sha256; cv=none; b=goN3AkGRALhoAUz2N8MwujLq9TOg484cGmZw6UHZjQOWPcm+0s6ygqjBnYxDvqoaR53c3j Yt/s3D+mIbjiqEdNy6t6WsPLY9vKg3gaXkmuxXEY4YErWpdXy4o19O2HA+siJEVZE+0ihS R+TQGIty2pV/BdSIlgrPdC+td9BhMXRQHWP1EMHIPhUxk7RbkrdIrbI4bRdBOUsV5Ad3Gm JCnR/5Jbls6aWlhrir1IFFArOwtgU+emwjcmo7intGfJ7rVY1AzRmZ15uD2g23ZG1TBVpK pl07IKec0I9grtiEGuv6k4kjWS4BvgtY2z5V2yZLXkpyGE6JzpnxOSgHgiO+jQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Fm8rw3m2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" 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 5D94A637E7 for ; Wed, 24 Jul 2024 08:55:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWVo4-0003d4-Qt; Wed, 24 Jul 2024 02:49:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWVo1-0003cs-Rd for bug-guix@gnu.org; Wed, 24 Jul 2024 02:48:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWVo0-0000l8-EX for bug-guix@gnu.org; Wed, 24 Jul 2024 02:48:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWVo5-00006l-Sk for bug-guix@gnu.org; Wed, 24 Jul 2024 02:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#72259: guix system: "guix graph -t referrers" could be more helpful in some cases Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 24 Jul 2024 06:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72259 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Zack Weinberg , 72259@debbugs.gnu.org Received: via spool by 72259-submit@debbugs.gnu.org id=B72259.1721803725391 (code B ref 72259); Wed, 24 Jul 2024 06:49:01 +0000 Received: (at 72259) by debbugs.gnu.org; 24 Jul 2024 06:48:45 +0000 Received: from localhost ([127.0.0.1]:33033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWVnp-00006E-2h for submit@debbugs.gnu.org; Wed, 24 Jul 2024 02:48:45 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:41019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWVnn-00005y-4X for 72259@debbugs.gnu.org; Wed, 24 Jul 2024 02:48:43 -0400 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-427d8f2611fso5757225e9.0 for <72259@debbugs.gnu.org>; Tue, 23 Jul 2024 23:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721803652; x=1722408452; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=6dAvMponzx20Uhfy1XI49LjjmHKFFtRqyBvoO2/9mkU=; b=Fm8rw3m2OsIhJ2foCsjjNVAmsbGKLRujaKOkDRIE9lS4IPM6G4d566HHs5mFz7Qk5o qFxZX2vjzB2AJVrejLshsoC88ScfrQ3p2H089hHUEYZ+IkhD9Ork9k8dniPgk+StQFfK F9LYndc9F+8+dIAXt8UgZ/kxkkynzPMed+l41dB3pSXZHGy9FuLy7ptvwB+ZqBRiRChz Vg4OvuHKsq2i86lRjhytZcD1VoxbhOtL6ZHUfWWFKeMnaa82gUVrXyvZf/70LMjNCQU0 xGrPQechdmaaicUypW01NRSOdICXeEZTWyz9Si0FB2W4le7AgxdeaGhCqTXfthDSNQ5Y RGEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721803652; x=1722408452; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=6dAvMponzx20Uhfy1XI49LjjmHKFFtRqyBvoO2/9mkU=; b=tvUgjXa3dkKvsnuOHT26uAzbFAz0uLWbLi+QDzhx266EHsBd0WaHe4RcP2wwHFDbc/ 1eHHotskvuBPExLbR4PJabwsjtKCkUXfhzdZtph+lU2M7qSa3ev9+oqnbagaMlfqZfA6 2Z2O+owe14T2/T6szkbvWyzKhxSEhAAMPaG4tAZrPtV5BW2rruCSdDp8gm40J4xW12zI +dr6uoMIUU3iafIS0G8Bw27oHjSe5ZeVu087RijbU5NIJsHPqD5hkHiZEmUFhN0yjelk GyaUriz18fShK2Wfz1CYGaxBhp5HmRdXMbCkAL28D+KlLVqMmZIGMpyzJN7q1hj5acXD vrdQ== X-Forwarded-Encrypted: i=1; AJvYcCXohTqO2Nv4v2QhN5uDKNLVQy4JNEnPNakw2HjOMUaI59WdyJXp7zgOPQaGYAkxRNFV4Ga/OMU5d4Im968Mv0SLnnFHm6o= X-Gm-Message-State: AOJu0YzbvHYJiCyIRJSfWI5i+sK3k26RY/f7f7/tx9Wi88P+IRuhNFJr 9/VT0o5uKZmALN02hi4I8IUjrZdoAjdP+eUhWvaBJDKi754nQeJe1quIiA== X-Google-Smtp-Source: AGHT+IGkrCPcNY5h8v0aNj1b9JvX+l1Cau8c0pg2dDcKuDHyn/Cuzgjpe+n2nerrRuD5sZAzTqFw1A== X-Received: by 2002:a05:600c:1c25:b0:426:5dd5:f245 with SMTP id 5b1f17b1804b1-427daa215a7mr59413095e9.2.1721803651252; Tue, 23 Jul 2024 23:47:31 -0700 (PDT) Received: from lili (2a02-8429-6820-f501-2d56-26dd-ea60-f757.rev.sfr.net. [2a02:8429:6820:f501:2d56:26dd:ea60:f757]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427fb7bdfa0sm2417735e9.14.2024.07.23.23.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 23:47:30 -0700 (PDT) From: Simon Tournier In-Reply-To: <1044fab9-b70d-477f-a0c6-97757cba2c00@app.fastmail.com> References: <1044fab9-b70d-477f-a0c6-97757cba2c00@app.fastmail.com> Date: Wed, 24 Jul 2024 01:15:15 +0200 Message-ID: <8734nzg0os.fsf@gmail.com> 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 5D94A637E7 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.32 X-Spam-Score: -5.32 X-TUID: 5c+hwAL/pO69 Hi, On Tue, 23 Jul 2024 at 13:24, "Zack Weinberg" via Bug reports for GNU Guix = wrote: > I would have expected "guix graph -t referrers" > to report that the package was a direct dependency of the > operating-system derivation itself Hum, I do not think that =E2=80=9Cguix graph=E2=80=9D operated on the level= of =E2=80=99operating-system=E2=80=99. That said, indeed something seems unex= pected: you get, > # guix graph -t referrers lsof > digraph "Guix referrers" { > "/gnu/store/7fkgda85xj4dr2d0r8lafyvnx5b9xwzp-lsof-4.94.0" > [label =3D "lsof-4.94.0", shape =3D box, fontname =3D sans]; > } and the manual reads [1], =E2=80=98referrers=E2=80=99 This is the graph of the =E2=80=9Creferrers=E2=80=9D of a stor= e item, as returned by =E2=80=98guix gc --referrers=E2=80=99 (*note Invoking guix = gc::). This relies exclusively on local information from your store. = For instance, let us suppose that the current Inkscape is availabl= e in 10 profiles on your machine; =E2=80=98guix graph -t referrers = inkscape=E2=80=99 will show a graph rooted at Inkscape and with those 10 profiles linked to it. It can help determine what is preventing a store item from bei= ng garbage collected. --8<---------------cut here---------------start------------->8--- $ guix package -p /tmp/one-profile -I lsof 4.94.0 out /gnu/store/6nyp9cvksvyfww5d7j7rvm43jb46p521-lsof-4.94.0 $ guix gc --referrers /gnu/store/6nyp9cvksvyfww5d7j7rvm43jb46p521-lsof-4.94= .0 /gnu/store/5wmvmlba841wvy681840cjwjcdifcjq2-profile $ guix graph -t referrers /gnu/store/6nyp9cvksvyfww5d7j7rvm43jb46p521-lsof-= 4.94.0 digraph "Guix referrers" { "/gnu/store/6nyp9cvksvyfww5d7j7rvm43jb46p521-lsof-4.94.0" [label =3D "lso= f-4.94.0", shape =3D box, fontname =3D sans]; "/gnu/store/6nyp9cvksvyfww5d7j7rvm43jb46p521-lsof-4.94.0" -> "/gnu/store/= 5wmvmlba841wvy681840cjwjcdifcjq2-profile" [color =3D red]; "/gnu/store/5wmvmlba841wvy681840cjwjcdifcjq2-profile" [label =3D "profile= ", shape =3D box, fontname =3D sans]; "/gnu/store/5wmvmlba841wvy681840cjwjcdifcjq2-profile" -> "/gnu/store/5wmv= mlba841wvy681840cjwjcdifcjq2-profile" [color =3D darkgoldenrod]; } --8<---------------cut here---------------end--------------->8--- So far, so good! However, indeed: --8<---------------cut here---------------start------------->8--- $ guix graph -t referrers lsof digraph "Guix referrers" { "/gnu/store/7fkgda85xj4dr2d0r8lafyvnx5b9xwzp-lsof-4.94.0" [label =3D "lso= f-4.94.0", shape =3D box, fontname =3D sans]; } --8<---------------cut here---------------end--------------->8--- And the reason is because grafts. --8<---------------cut here---------------start------------->8--- $ guix build lsof --no-grafts /gnu/store/7fkgda85xj4dr2d0r8lafyvnx5b9xwzp-lsof-4.94.0 $ guix package -p /tmp/another-profile -i lsof --no-grafts $ guix graph -t referrers lsof digraph "Guix referrers" { "/gnu/store/7fkgda85xj4dr2d0r8lafyvnx5b9xwzp-lsof-4.94.0" [label =3D "lso= f-4.94.0", shape =3D box, fontname =3D sans]; "/gnu/store/7fkgda85xj4dr2d0r8lafyvnx5b9xwzp-lsof-4.94.0" -> "/gnu/store/= hjgbwa566fwzmwvrdal5ycxzlzz3al6x-profile" [color =3D blue]; "/gnu/store/hjgbwa566fwzmwvrdal5ycxzlzz3al6x-profile" [label =3D "profile= ", shape =3D box, fontname =3D sans]; "/gnu/store/hjgbwa566fwzmwvrdal5ycxzlzz3al6x-profile" -> "/gnu/store/hjgb= wa566fwzmwvrdal5ycxzlzz3al6x-profile" [color =3D darkgoldenrod]; } --8<---------------cut here---------------end--------------->8--- Well, the fix should be to have the grafted item by default pointing to the non-grafted one and potentially referencing the others as describe by the manual. Cheers, simon 1: https://guix.gnu.org/manual/devel/en/guix.html#Invoking-guix-graph