From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SJDCBf80dWIx7AAAbAwnHQ (envelope-from ) for ; Fri, 06 May 2022 16:47:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uKbdBP80dWKywAAAG6o9tA (envelope-from ) for ; Fri, 06 May 2022 16:47:27 +0200 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 9894138D53 for ; Fri, 6 May 2022 16:47:26 +0200 (CEST) Received: from localhost ([::1]:41462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmzEr-0005RN-Bc for larch@yhetil.org; Fri, 06 May 2022 10:47:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmzAc-0000ED-1T for guix-patches@gnu.org; Fri, 06 May 2022 10:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmzAb-0006He-P8 for guix-patches@gnu.org; Fri, 06 May 2022 10:43:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nmzAb-0003Mj-Nu for guix-patches@gnu.org; Fri, 06 May 2022 10:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 May 2022 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55220 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 55220@debbugs.gnu.org Received: via spool by 55220-submit@debbugs.gnu.org id=B55220.165184813112872 (code B ref 55220); Fri, 06 May 2022 14:43:01 +0000 Received: (at 55220) by debbugs.gnu.org; 6 May 2022 14:42:11 +0000 Received: from localhost ([127.0.0.1]:49390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmz9b-0003L2-TO for submit@debbugs.gnu.org; Fri, 06 May 2022 10:42:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmz9a-0003Km-1y for 55220@debbugs.gnu.org; Fri, 06 May 2022 10:41:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmz9U-00067J-QM for 55220@debbugs.gnu.org; Fri, 06 May 2022 10:41:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=1agU0ApDYoLibtp0U3vV1E2rm+Bps60l30rUlkKj5ng=; b=sbpiqkxrmwGt1hcwyzlP KWWHr3TXZViylUrKG3ecobzlXUMtpsxdVTalpF4qYAxACBmlZiFyUNwZfx9MY7N0eUI2lBoigYzBz Z1h1qc0ZlCNdosr23krXPpHDR9hybVjY+OB4/FmwkFDXgUDv1gG0gcEH3ya9Xkwc09q4X2i3zmD7v 3atnM8/j/gqvHIOo8wrCxr3GbzcVNpSapTGNSXS6+v5o+3xY4OSrRZtd2CXQ28y2njl6GLiPQ/vyM BwavCFRt3HPfXOx/ZnvWFzHM2R9ZoseAnI2QgZ9fhxI54iQE04vDnEX/Cftq2KX4ASwEAkkAk2+k+ Wr1K38bNEwM+wQ==; Received: from [193.50.110.244] (port=52672 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmz9U-0006LE-BV; Fri, 06 May 2022 10:41:52 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220502111859.13605-1-othacehe@gnu.org> <20220502111859.13605-2-othacehe@gnu.org> Date: Fri, 06 May 2022 16:41:50 +0200 In-Reply-To: <20220502111859.13605-2-othacehe@gnu.org> (Mathieu Othacehe's message of "Mon, 2 May 2022 13:18:57 +0200") Message-ID: <87ilqi3eq9.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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651848446; 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=hvWovzBSnbwGVWXUfiqeKpPI4CaqLMTsm1S1fN0FtM4=; b=nSLlq37gcYsHLrVztGkUiPGq6ZHlsrgMrkGev3e+44hHx6gLnkMQakcRjpceV88dP/sHXP 8GbKuOXH0SnLXcXkZRARMgLAkY/Yixk0Obxah2ioaVoa43wN5jtg3PBKEaY1mvN2MZvHbo 6VdXUGyyLyRGwc4bNBKx+UBDp2VuZKu9MHpMfp4T4iiXO5FDIuEkYPObSqjsU7Mc1X1xez OX7Qs4XtJDRkn7k6HnmAvkhUggjGvCMUQrC2lGXGYZ98z4MECikVkYimiHe7cPxeTbVpIt H9SAm2PaCjhcesEAetfDSGWIzeiE//r/rMPUvf2DL5JkyFFDks6IcdDDngLYLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651848446; a=rsa-sha256; cv=none; b=HoHtFxzl9Y9iOjye00s5NgJv0I5zS7t25TgKCSapvFFzFVQebLDwjxh13IxO6APVOp8Hju f7xPNQFNBtc6XRQ7nHwzUSHkoYirtd+fNoYYNb8uYbpkkIH+UMXcPfHHWnCal41BPhtH04 Cy5tQFliX6u0S4Cpm+Qid2urrZWlDAnHcrJ6ZLPgXp8ENOMvcZvmjE28ldCbSekl5WQf8b o+iY5RWBuI3Ui/YPXuKyWROee71T7/0d+/pjKJElhM9PkPzgrP4gET1Bs0zSrcnpQX6DfD XEGxgX2fd78UlUui16Z2CgpviiCVS4RPS+mMoRb1msxcgfB599MCT3ynWJXSIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=sbpiqkxr; 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" X-Migadu-Spam-Score: -4.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=sbpiqkxr; 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" X-Migadu-Queue-Id: 9894138D53 X-Spam-Score: -4.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1xtOgtCshH6Z Mathieu Othacehe skribis: > * gnu/platform.scm (platform-modules, systems, targets): New procedures. > (%platforms): New variable. > > Signed-off-by: Mathieu Othacehe [...] > +(define %platforms > + ;; The list of publically-known platforms. > + (delay (fold-module-public-variables (lambda (obj result) > + (if (platform? obj) > + (cons obj result) > + result)) > + '() > + (platform-modules)))) Maybe expose it as a memoizing procedure thunk called =E2=80=98platforms=E2= =80=99, for consistency with the names =E2=80=98systems=E2=80=99 and =E2=80=98targets= =E2=80=99. > + > +;;; > +;;; Systems & Targets. > +;;; > + > +(define (systems) > + "Return the list of supported systems." > + (delete-duplicates > + (filter-map platform-system (force %platforms)))) > + > +(define (targets) > + "Return the list of supported targets." > + (map platform-target (force %platforms))) Or =E2=80=98supported-systems=E2=80=99 and =E2=80=98supported-targets=E2=80= =99? Ludo=E2=80=99.