From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 mIw/D/yQTGevWgEAqHPOHw:P1 (envelope-from ) for ; Sun, 01 Dec 2024 16:38:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mIw/D/yQTGevWgEAqHPOHw (envelope-from ) for ; Sun, 01 Dec 2024 17:38:20 +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="OwjuS/mL"; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=k43rSWZh; 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=1733071100; a=rsa-sha256; cv=none; b=GsUN6h6p5Xu4TpsewMFx3YMojEBcCzOrEB77W2vK3pir+c8mR7uoMxGKPDDleJZm+rAdiS QD8J0/qkp1dojaBiZ3vcBGoBn7ou6LoFQvOE3fw9unYn1wuqUl/Vv4/Ok4Mn4SiGZo+bqV MggzmyOzrpWqonL83PgbXCPM0atBSEVZ2FFHdb2GcoBUaHC6JhyNmAJlbYGsFR78oqI2Pc hE6aTzrRMskik/WlVgGrQ3WHYHDAM8EygRy7S7/G1dVuA3uKtRYv35d1e26E+DddpO+AdW p2U9ZG0jZLqZmWNOYHHoZbj3nujL4Xd2/pv1DdLOaM1izqTJkAXsEXMzhmv1MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="OwjuS/mL"; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=k43rSWZh; 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=1733071100; 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=aIqQOVnt3skakVDIGh1r4X0N4v+Aae9248O6ITg86MA=; b=k/Oc8T4aN7TQNGH0ffr5azrnYnufhgeIxO9aGol5KG0CaP9mbwrWDUZ+PjhF+naXJfaGbO vrhOcmGldcSl2IbCGyAI7TAy032MDP3om+dpaB98wjnYU89ydJ0CAQvZHtpDQEAnLI86J1 Mbwn6lcEhB44ME4NodVjCtQunwxI/EdTpYGO0PANw9r6xGu/nrElOv4NJ3DM+Z+d8oFTP9 imbaUiqvDc37ZD9eIyyFrFKRMuFqVwM9d3N+SXmJxFsXt94xbXxPCADxL8rhBTD7hnDUM1 pTmemlTNWotl7tcOHRZVo0ugjJcCVITS8yAfHdI8a03h/9y+MTxmeuO4ibVL9A== 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 6DFC987B8B for ; Sun, 01 Dec 2024 17:38:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHmxQ-0008KW-4F; Sun, 01 Dec 2024 11:38:04 -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 1tHmxO-0008KE-MP for guix-patches@gnu.org; Sun, 01 Dec 2024 11:38:02 -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 1tHmxO-00014w-50 for guix-patches@gnu.org; Sun, 01 Dec 2024 11:38:02 -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:Date:References:In-Reply-To:From:To:Subject; bh=aIqQOVnt3skakVDIGh1r4X0N4v+Aae9248O6ITg86MA=; b=OwjuS/mLv44zuWHDkdXz50Iar1AvV4anYEzDU5o3bqsiiDgX53myA0W5sC4hwYEOk2Am5E1p4WecssOBWJtU1LR9UV2xY1slglHkq2sGbeQ0l3TcmcG/xLpB/ob3SUfY0c4pcgSoQPyQ8mkPt/pjFdDceJqingPEjrKSEJkPVVFcsI6wdfMhmNd7VT+kPkursd4luWsKH8Gn2e6V77JUiwt76x8oiGL9L9hvfc8atU6c2Mvk1XRqTsP3wbXI9uhRRsAflQ2Scla+Y9z9mYNQ2Sn3vQhNKLY8xDwZRC14onN/lyn7reGTvDTpUsAffME6EOymoBtkK6VgEIOZa/Eh+A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHmxO-0003Bi-0Q for guix-patches@gnu.org; Sun, 01 Dec 2024 11:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74542] [PATCH v2 05/16] packages: Factorize =?UTF-8?Q?=E2=80=98all-packages=E2=80=99.?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 Dec 2024 16:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74542 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , 74542@debbugs.gnu.org, Christopher Baines Received: via spool by 74542-submit@debbugs.gnu.org id=B74542.173307103712181 (code B ref 74542); Sun, 01 Dec 2024 16:38:01 +0000 Received: (at 74542) by debbugs.gnu.org; 1 Dec 2024 16:37:17 +0000 Received: from localhost ([127.0.0.1]:52871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHmwe-0003AP-JI for submit@debbugs.gnu.org; Sun, 01 Dec 2024 11:37:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHmwa-0003A6-PK for 74542@debbugs.gnu.org; Sun, 01 Dec 2024 11:37:14 -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 1tHmwV-0000ks-A7; Sun, 01 Dec 2024 11:37:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=aIqQOVnt3skakVDIGh1r4X0N4v+Aae9248O6ITg86MA=; b=k43rSWZhlet1aVPxzQFT 16Ees//JINq0f5aw9uXz59DB1ydD6tVxm0DPY6wSioyALjNdrf7BIj5g6Z5DZJ94fyQlf50rOABiV LuahNtSbMd+4lXltrSQmi1wKzr6qG6Y+JSvlsGYsYkA0CU5fr2s3Orr3m7gxe63tUj8ZgpbbN4aPR DaKwgUR1/eOT7kTNsfjO9PGFeIjMnjTkQ2NfUDWAmKUmAipngwxG/kOZoh1FrwE43opvEo1xRhHtY QjZQLyHYGUFZUdemaG0IC22A9A2OY8ACGhtRC08ovKNbux9/6xUd7nWkuDK52ZWIjGKvMJ/P/6hDV KNqLePICsO+50g==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87jzcmhz0m.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 29 Nov 2024 23:53:45 +0900") References: <8bcbbc485aa264424b29ea873fee3e2b6aa30008.1732872498.git.ludo@gnu.org> <87jzcmhz0m.fsf@gmail.com> Date: Sun, 01 Dec 2024 17:37:05 +0100 Message-ID: <874j3ns6ku.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.02 X-Spam-Score: -7.02 X-Migadu-Queue-Id: 6DFC987B8B X-Migadu-Scanner: mx10.migadu.com X-TUID: OPg4tELWcyb4 Maxim Cournoyer skribis: >> @@ -253,6 +254,23 @@ (define* (fold-packages proc init >> init >> modules)) >>=20=20 >> +(define all-packages >> + (mlambda () >> + "Return the list of all public packages, including replacements and= hidden >> +packages, excluding superseded packages." > > Reading the above doc made me question; are replacements always supposed > to be made public? I typically would leave them private to avoid > cluttering the CLI with duplicate packages. Replacements are always reachable via the =E2=80=98replacement=E2=80=99 fie= ld, whether they=E2=80=99re public or not. If they=E2=80=99re public, they=E2=80=99re also visible from the user inter= face, which is probably nicer. Other than that, it doesn=E2=80=99t make a big differen= ce. Ludo=E2=80=99.