From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YAMXDYzmTWc27gAAe85BDQ:P1 (envelope-from ) for ; Mon, 02 Dec 2024 16:55:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YAMXDYzmTWc27gAAe85BDQ (envelope-from ) for ; Mon, 02 Dec 2024 17:55:40 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iOiF1Ezw; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=IIhSTfUc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733158540; a=rsa-sha256; cv=none; b=fvVcH0gdRATLYWIg9SKG+SvWHXYoFOI556UNcDBi6JuHE5cQm2RbbCucv0DDsLCtU8pEvo TBxWcEfK1NO/JeQAXaloc154TudPVR7xxg+cOb2sG0lsDklqHkkSuYOAAfi4pvy0Efd3j0 orpOYEUvGiSbGf5K/5pdxdj15RTwfdqqvG4luZlyAVRM1VnxLx6fj8S1Loo6MrWFvW3854 1ZppjPfURJAJV7D54M4j+HiD+l5hYDYC8iDyBDB90StnC/cF2By5A7rCJJRVEVgGoR1IfL 9lbHg+zScTS/ATYiehmmIJUjTue1FD6TCR0Le8usjgb9n2VoUAfKZ26sfFKMxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iOiF1Ezw; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=IIhSTfUc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733158540; 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:dkim-signature; bh=M9jWdqsreBRQBBqezMNHrFrDZkT0WUxU/f2rISO9ELE=; b=P+FLsP31UuWc9FV0SPi7l2y9UeyY8UBw75EI4PiprlpfcqLYGnDSR0rgiouMrfm41Q3DPt WWHf31S4tOZq6cqb0TEV6u+UO6u0fG3xPDQksUysygG+S76bhfl8dpkbLdIKaZajhcQ4/x 1mHILM2N7JlzrGA/txsfJrQYpxlMvK7F7m843l0Z9ZbGa0a8yiSUBALgXuVHYISCBFtfNW JW03efiO3+vsWztDzMUa/zVy76teJKESC1w2/ZaadltkKA1oJ+zNW6B2U3iM/vRu9ipsdq G+EbsN6uCmVQQPrH1ZjtmR4pN1NyCsaDhvu49qXyerZbdIO9lW2QdU5Ryzr3Ag== 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 172F38319D for ; Mon, 02 Dec 2024 17:55:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI9hd-00046z-BZ; Mon, 02 Dec 2024 11:55:17 -0500 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 1tI9hT-0003tv-4s for guix-patches@gnu.org; Mon, 02 Dec 2024 11:55:07 -0500 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 1tI9hS-0007tT-R8; Mon, 02 Dec 2024 11:55:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=M9jWdqsreBRQBBqezMNHrFrDZkT0WUxU/f2rISO9ELE=; b=iOiF1EzwKKGdxlUx4ZZZpYlEPwvUPcepg6K7ZpBdzERg8hwKSS2f9nTBMFT2jOQ0Ax3V5cFLG97IEA9Tp8p+AJHF+zWLFvlGc7wwIzWtY/une8p27SNuYvVzzi6o3HiTYitKQK3I94AtRa0vwE/R9icoXoakwaFHbAVM9ojteqbvOIRrRsb/vzEUH/3n9ZUeI72oma5Vjyr+K+xQW00tB5DJXVi/7x0ofm0WxFTKhRudLNTPuNL28lLJOz5qKct3HS0e3+LHNGBVYlp3UN26nM2CO7KB6c4iOkUxeE1P3RSKEfleLzJBMZ6HFT/pg28KBuMmsqCSHepjMdWQUoZ5fA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tI9hQ-00036F-CK; Mon, 02 Dec 2024 11:55:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74654] [PATCH 4/5] guix build: Last argument of =?UTF-8?Q?=E2=80=98dependents=E2=80=99?= is optional. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 02 Dec 2024 16:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74654 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74654@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 74654-submit@debbugs.gnu.org id=B74654.173315845911797 (code B ref 74654); Mon, 02 Dec 2024 16:55:04 +0000 Received: (at 74654) by debbugs.gnu.org; 2 Dec 2024 16:54:19 +0000 Received: from localhost ([127.0.0.1]:56364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI9gh-000348-0g for submit@debbugs.gnu.org; Mon, 02 Dec 2024 11:54:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI9gZ-000335-JC for 74654@debbugs.gnu.org; Mon, 02 Dec 2024 11:54:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI9gU-0007NJ-23; Mon, 02 Dec 2024 11:54:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=M9jWdqsreBRQBBqezMNHrFrDZkT0WUxU/f2rISO9ELE=; b=IIhSTfUcBq0h16lFyV+I gAzJ4DPWRN/msQfZHmVZrnUrRWvxC5virWMEEklSkd9fSFV1idJH5B8nO8XKvedSQYp1IcWAuddxT mKF0wLesR1WjZPDjHGCeWD65GNrRrhvh6R9/5iPYkQvQOOgwmLJadY0mnOpm5T/tOXDwtt0xT7vsV Ano+maZ6/Oz8RERt+NP3VoZNv8uB7Wh72k7wgv92k90ahVsLxlwkB6rzfF40qlYuuOAFv4dJjioya wSbcyicmVkZzndK66mJtCQUqlI8cIgj3hXllJmnMNvlJvCU1Nhy2RbVR+8emIXzPDjditXyugGFxW lfUYC1Eve9YPfQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Mon, 2 Dec 2024 17:53:29 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.52 X-Spam-Score: -4.52 X-Migadu-Queue-Id: 172F38319D X-Migadu-Scanner: mx10.migadu.com X-TUID: tTOYf5Dmksjq * guix/scripts/build.scm (dependents): Make ‘max-depth’ optional. Improve docstring. Change-Id: Ibeffcf15297ecba3d4000b3adb4e3bc7853f6957 --- guix/scripts/build.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm index 0080f1fe58..f0a637a2ef 100644 --- a/guix/scripts/build.scm +++ b/guix/scripts/build.scm @@ -564,8 +564,8 @@ (define %options %standard-cross-build-options %standard-native-build-options))) -(define (dependents store packages max-depth) - "List all the things that would need to be rebuilt if PACKAGES are changed." +(define* (dependents store packages #:optional (max-depth +inf.0)) + "Return the list of dependents of all of PACKAGES up to distance MAX-DEPTH." ;; Using %BAG-NODE-TYPE is more accurate than using %PACKAGE-NODE-TYPE ;; because it includes implicit dependencies. (define (get-dependents packages edges) -- 2.46.0