From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 3VftNpuSiWKg2AAAbAwnHQ (envelope-from ) for ; Sun, 22 May 2022 03:32:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id NUQLNpuSiWIKzQAA9RJhRA (envelope-from ) for ; Sun, 22 May 2022 03:32:11 +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 99164FB98 for ; Sun, 22 May 2022 03:32:11 +0200 (CEST) Received: from localhost ([::1]:43986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsaS2-0003yB-Bk for larch@yhetil.org; Sat, 21 May 2022 21:32:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsaRu-0003xo-7E for guix-patches@gnu.org; Sat, 21 May 2022 21:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsaRt-0005l8-UV for guix-patches@gnu.org; Sat, 21 May 2022 21:32:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsaRt-0003mM-Rb for guix-patches@gnu.org; Sat, 21 May 2022 21:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55220] [PATCH 0/4] Add --list-systems and --list-targets options. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 May 2022 01:32: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Mathieu Othacehe , 55220@debbugs.gnu.org Received: via spool by 55220-submit@debbugs.gnu.org id=B55220.165318308014477 (code B ref 55220); Sun, 22 May 2022 01:32:01 +0000 Received: (at 55220) by debbugs.gnu.org; 22 May 2022 01:31:20 +0000 Received: from localhost ([127.0.0.1]:43269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsaRE-0003lQ-1Y for submit@debbugs.gnu.org; Sat, 21 May 2022 21:31:20 -0400 Received: from mail-qt1-f178.google.com ([209.85.160.178]:46857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsaRA-0003lA-1s for 55220@debbugs.gnu.org; Sat, 21 May 2022 21:31:19 -0400 Received: by mail-qt1-f178.google.com with SMTP id u35so10441697qtc.13 for <55220@debbugs.gnu.org>; Sat, 21 May 2022 18:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=icgkKEUrvY2ORqVVGH6Ju2ubhKDjSCyASYLa6e24ir0=; b=CgaHGDxNtc0ULf4t93vgyIy7HDUiyu13dQHDQHNVycDouDuqfUa+EbkMpv4eauLbhC b1g37sJCrxl0NirNaC8W/+JX4g12abVQc3foWIFgazUZdDGYpuar5I2uq9B4yl7bjFaG uWJZg6IZ/BXyczfXAPu/qL6Jrk7DYhpFnyzzwjnUMOheH8Nv86DPv+udvaZB+mmcqBqr Z1xtkMppPdcwk3jn8YOu8GCJnT9SsQ5vNvjaE57T8e8YU9I62dTWITbg4+xLwa78XGON vC6iISqc1knDLc+yeeJ+B/YjcUMB6GMc88h+MYTLyepiOS+TuF6WsfX7fW0MsKLpb3md 2KuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=icgkKEUrvY2ORqVVGH6Ju2ubhKDjSCyASYLa6e24ir0=; b=Vhtn9rUM+YiQp0Iep0i4MJPS/lMYYiizX7OBthSkFx9szpzp4Pbh4nAiGcjGzaAVBW h7dxlCI3tIfuMKuH8U5gA2Eg/i7jvNjW4ATC+GJQPXPenlHpGN1JA3fD/qCs6uUnY6lt xJcfMPRVz8li9UiqqnJCeUCcjdxS6dESDGZn/LNYDzcz1L7wnKQxxhRq+D2HVh9FZkmV BGHmIgOnVAtGlfQIJVoNJ1o67lwn/9GLvUua4OHHD1H19FgfAxWwz4UmQ4GxJKYdoMnl hDXaHs6tXOEpHezGknAJSSBi7R0dJ+UKhwO3wiTQc4ZOb5Lzexx5bM2SY7eZZXsZvNLK j/xA== X-Gm-Message-State: AOAM530vjwDOH2hpUwoMjl7x391mwFSwRfS2YKZ+gh81V5fRGOj7LyGk S+UCkHgrYR19GK8d1V68VQUPVdoRtf2ma5W/ X-Google-Smtp-Source: ABdhPJyZ9qQiFwC3DsOVId7TmxVq1CvQljT5ZnwXSJzWslmGUtXGEH4gnq10x8MElY6Cw+C0Rr+dUA== X-Received: by 2002:ac8:5915:0:b0:2f3:db7f:7ad8 with SMTP id 21-20020ac85915000000b002f3db7f7ad8mr12081397qty.77.1653183070297; Sat, 21 May 2022 18:31:10 -0700 (PDT) Received: from hurd (dsl-152-80.b2b2c.ca. [66.158.152.80]) by smtp.gmail.com with ESMTPSA id s17-20020ac85291000000b002f39b99f6c2sm2057233qtn.92.2022.05.21.18.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 18:31:09 -0700 (PDT) From: Maxim Cournoyer References: <20220502111859.13605-1-othacehe@gnu.org> <20220502111859.13605-4-othacehe@gnu.org> <875ymi3e5t.fsf_-_@gnu.org> Date: Sat, 21 May 2022 21:30:53 -0400 In-Reply-To: <875ymi3e5t.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 06 May 2022 16:54:06 +0200") Message-ID: <87ee0m9wvm.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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=1653183131; 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=icgkKEUrvY2ORqVVGH6Ju2ubhKDjSCyASYLa6e24ir0=; b=hF2vmGDPnT6U2aHLUpzWcU+CbeZgAJXro+GbxOsT9IMGURPiE4WxelL3ZaGxYNd1DbdPhI SVZoT+Z14+rc+HjLUNdT6ICyF60KETSBHVQdaMkAaNfsY0yaugFL6YOJHG1UvdrXsCzXRQ bCQ+d/AY3f57RxrFDjOTil1qVRRHwQ+74Qe0H1gtZVlkYl8i7ciaXqtQyOWG3rEKBzvB4Y JKdvH18mWmpZm989SezrswEAblFMgHkPv0ADzCtLqZc+pB1lwN2t8xnqhixPZ2Dreac5qf B1QKER6qhtzX1shrok1WzBV7gXJDeeSz1geCjK0nvSC+7QhxqT7Nv+WI7uRk2Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653183131; a=rsa-sha256; cv=none; b=JqJjPK7tFp7MXZB8wPFBiEs/0VBZ6dVQVhNwm9kq6ysQkKOR3hHRDCVITXp9bPUzTAQU3I otdPrqRlgCdzhAY8tkqa4M3RYT5ucsSeo1+ho3wHV8ywqPLQuF4i+PpaUZImoUIXAM63RG n5DkPsXxoBJDuUTZjHIxkVM1kIk3LVq1iAm8UF/KuGSM/cDAWoKLREmJ0rzvoe2a/rOavP 3oUaJcV6CMJBB0NSM9BDEB0PTWc0CQYhKduX54V0mUjfCOmZ7Ln+F55F1O3WXmKdZBHM6g jUkUNa0EhUHk0mQffN93taSvyjrUJlp1MSjBaDZietb34LbsQaHjORQO8vwb7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CgaHGDxN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 5.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CgaHGDxN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 99164FB98 X-Spam-Score: 5.94 X-Migadu-Scanner: scn1.migadu.com X-TUID: dHC+9d1639eh Hi, Ludovic Court=C3=A8s writes: [...] >> +(define %standard-cross-build-options >> + ;; Build options related to cross builds. >> + (list >> + (option '("list-targets") #f #f >> + (lambda (opt name arg result) >> + (list-targets) >> + (exit 0))) >> + (option '("target") #t #f >> + (lambda (opt name arg result . rest) >> + (let ((t (false-if-exception >> + (first (member arg (targets)))))) >> + (if t >> + (apply values (alist-cons 'target t result) rest) >> + (leave (G_ "'~a' is not a supported target.~%") >> + arg))))))) > > This is my main issue: should we still accept any triplet, and simply > print a nicer error than currently when the glibc dynamic linker name is > unknown? > > Or should be be just as strict as above, at the risk of frustrating > developers porting stuff to new or unusual platforms? > > Or should there be an option to bypass this check? > > Maybe I=E2=80=99m overrating the usefulness of allowing users to pass in > arbitrary triplets, though the manual does suggest that when porting to > a new platform (info "(guix) Porting"). Thoughts? I think [w.r.t. overrating usefulness] so :-). Surely, a developer savvy enough to embark on a porting journey won't be put off by the having to add their new arch/platform to the list of known ones, me thinks. And it makes "normal" use for everyone else friendlier and it validates the input/fail on problems early which is nicer. Thanks, Maxim