From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cP90ApHnn2bj4wAAqHPOHw:P1 (envelope-from ) for ; Tue, 23 Jul 2024 17:25:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cP90ApHnn2bj4wAAqHPOHw (envelope-from ) for ; Tue, 23 Jul 2024 19:25:37 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=owlfolio.org header.s=fm2 header.b=Y5EpmJT4; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=LzdTdPFH; dmarc=pass (policy=none) header.from=gnu.org; 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=1721755537; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=Z7gUVv6zAQ3uGlDhRISDw/O+rjIAk5uiwjZeoeIkFNk=; b=KF4dbS1fTvj28x8IovyjLdV6wXpB2uPpcmdWrS/HjB2LUbnhNzqsix6UxPAT3MflvnzzfB elXcruyrkvhh+gz+wQJxguan3GHR+GT1AkvH5ajxKsmMe4dtLP1neU6dCicEjnduazRKfa MkCgCYgAkkj2+Q2+53uuwR46zOxSvWq2kSuJ+Bkt6nmC0AR9c64RSxGeQgNJ/FKPuWlWoI XLg2QdIiOcySRKVsqZ7UHPztg1GxqK1qnKvexRpl3nYYirhl4lENhdBqAj7dePzZr/7a1U tYovUjtb+G5ErUZjbGXzLBfo3oVIoxACpXW2tOfvNMv66xT+5gCaQMmAhwYNCw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721755537; a=rsa-sha256; cv=none; b=NQzORAQRT84jTSK34Qqv4TNw3SWprVQSsVWY2261pLJGYRcy9SLrD2WmuWq2LYqgZ9LO/X 2SCXH9E8+R4bPrrSYXsNdnG7ZUflnmfBn1s83Jq64yEt21qNc8UXMANhraIVSRd2k0DA74 ZmEOzcukh7Lw9Kw+7HdC6EMAQ7WC4tostmqb5ACz5xVqHmFNAYxcswP0sPhrk0wnCnQL95 zQDT+1epzxybNeJn9LC43oeV1Y3lpZLgOt+iUjFt2OD9cSmrMmru1BbPap7MA6WS9uFQm8 qcu/jSTeMcZTVsK43xDOBT1pKWuINf/7qkYirHM+rgSBMm7+WrF+cxPOJl3o/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=owlfolio.org header.s=fm2 header.b=Y5EpmJT4; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=LzdTdPFH; dmarc=pass (policy=none) header.from=gnu.org; 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 8BA4260378 for ; Tue, 23 Jul 2024 19:25:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWJG2-0000Yj-Md; Tue, 23 Jul 2024 13:25:02 -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 1sWJFy-0000YO-EY for bug-guix@gnu.org; Tue, 23 Jul 2024 13:24:59 -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 1sWJFy-00022Y-6o for bug-guix@gnu.org; Tue, 23 Jul 2024 13:24:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWJG2-0004rI-R3 for bug-guix@gnu.org; Tue, 23 Jul 2024 13:25:02 -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: "Zack Weinberg" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 23 Jul 2024 17:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72259 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 72259@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172175547918638 (code B ref -1); Tue, 23 Jul 2024 17:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jul 2024 17:24:39 +0000 Received: from localhost ([127.0.0.1]:60647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWJFe-0004qX-R9 for submit@debbugs.gnu.org; Tue, 23 Jul 2024 13:24:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:40944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWJFc-0004qQ-QN for submit@debbugs.gnu.org; Tue, 23 Jul 2024 13:24:37 -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 1sWJFX-0000KN-7a for bug-guix@gnu.org; Tue, 23 Jul 2024 13:24:31 -0400 Received: from fout3-smtp.messagingengine.com ([103.168.172.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWJFT-0001ry-1p for bug-guix@gnu.org; Tue, 23 Jul 2024 13:24:29 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 4A8A21380275 for ; Tue, 23 Jul 2024 13:24:22 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute5.internal (MEProxy); Tue, 23 Jul 2024 13:24:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1721755462; x=1721841862; bh=Z7gUVv6zAQ3uGlDhRISDw/O+rjIAk5ui wjZeoeIkFNk=; b=Y5EpmJT4xHKFgFbemHVISqA2aEeuWLdjshn26/mN+bShLu9Y 9zG3LDgDSvyfyBf1tI/PpRC0rOCvolCFBYN4Y0NR1YEBYk/EGjVqOb/HL9T1tfAn QGsPsI1sASDkEkyje94BZw6vyi4Oy8HzPamYVr92LiiFyrXtMHrw/D0hlQr+12P3 gQFfOnQUX6miXP8rhfoOvPQOfPwQoHpNF9jIqKU4DbvLg4DYGKNi6VC+PATpEFGc uHGF/vNH+CoLcXpSyFNR8eunTSxU8qOjq62lAzOaoSe02O4oyBaTSmjSCrYFtbZK Jtn/9tG7mt5JG+pg/yQUI6rkN7c8zUVlwfx4mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1721755462; x=1721841862; bh=Z7gUVv6zAQ3uGlDhRISDw/O+rjIAk5uiwjZ eoeIkFNk=; b=LzdTdPFHY7dt2ldoEnWg9ZkkvsZpjrzHEzwK0O1wK7OO41sxtL7 dAT5wy7mKSzJcphWg3LJ8G+QEswGKOYEBVckh9FrIozgtGtwZIiOYJmRT+9ywY/0 aIQHNFjc5yrJCdY/hJphWgZrh/+HGhvL7MjEXws3gUiQGhdlMNUJ8UvDhlxQ/jQu QfO5aJbjPB9xD5w+od9V57BJHfZW14rzh/gYJ9XHQayVuN4vqmVWGLYZ7M2Y/e45 3eX6IqWIEKZSQYnrhFwa6e5UA8STkrLj/BwvpnMOHGAm6JmUSbGq5EcYIagi3uIZ NPXCCUdY14DF/i55R+CppCyhm7uxKxtOaXw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheelgdduuddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfkggrtghkucghvghinhgsvghrghdfuceoiigrtghksehofihl fhholhhiohdrohhrgheqnecuggftrfgrthhtvghrnhepgfeljeduudduteffteefueefhe ffueefjeeghfdtveekhfegleetveeugfejhfffnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepiigrtghksehofihlfhholhhiohdrohhrghdpnh gspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i876146a2:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E6432272007D; Tue, 23 Jul 2024 13:24:21 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 MIME-Version: 1.0 Message-Id: <1044fab9-b70d-477f-a0c6-97757cba2c00@app.fastmail.com> Date: Tue, 23 Jul 2024 13:24:01 -0400 Content-Type: text/plain Received-SPF: pass client-ip=103.168.172.146; envelope-from=zack@owlfolio.org; helo=fout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: "Zack Weinberg" From: "Zack Weinberg" via Bug reports for GNU Guix 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-Spam-Score: -1.40 X-Spam-Score: -1.40 X-Migadu-Queue-Id: 8BA4260378 X-Migadu-Scanner: mx11.migadu.com X-TUID: KAQKqbse4sKa On a Guix System installation, "guix graph -t referrers" is not helpful when the package you're investigating is brought in directly by the operating-system declaration. Here are two examples. 1) Packages that have been added to the 'packages' property of the operating-system declaration, but have no connection to any other package, are described as unconnected. (operating-system (packages (cons* (specification->package "lsof") %base-packages)) ;; etc ) # guix graph -t referrers lsof digraph "Guix referrers" { "/gnu/store/7fkgda85xj4dr2d0r8lafyvnx5b9xwzp-lsof-4.94.0" [label = "lsof-4.94.0", shape = box, fontname = sans]; } 2) If you've excluded a %base-packages package that ships setuid binaries (e.g. "sudo", but forgotten to exclude the actual setuid binaries as well, the package will still be included in the operating-system derivation, and guix graph won't tell you why: (operating-system (packages (filter (lambda (pkg) (not (string= (package-name pkg) "sudo"))) %base-packages)) ;; etc ) # guix graph -t referrers sudo digraph "Guix referrers" { "/gnu/store/gnybfg31is632dyaivd907f2h0wff80d-sudo-1.9.14p3" [label = "sudo-1.9.14p3", shape = box, fontname = sans]; "/gnu/store/gnybfg31is632dyaivd907f2h0wff80d-sudo-1.9.14p3" -> "/gnu/store/gnybfg31is632dyaivd907f2h0wff80d-sudo-1.9.14p3" [color = darkviolet]; } This is saying that sudo refers to _itself_ and nothing else does, which doesn't make any sense. In both cases I would have expected "guix graph -t referrers" to report that the package was a direct dependency of the operating-system derivation itself; in the latter case I would have liked it if there was some indication that the dependency was because of 'setuid-binaries'. zw