From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 GD/GLUuTxWPYFQAAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 19:11:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YMfXLUuTxWPF8QAAauVa8A (envelope-from ) for ; Mon, 16 Jan 2023 19:11:23 +0100 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 925B73C1A3 for ; Mon, 16 Jan 2023 19:11:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHTwl-0003WQ-AJ; Mon, 16 Jan 2023 13:11:03 -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 1pHTwk-0003W2-GH for guix-patches@gnu.org; Mon, 16 Jan 2023 13:11:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHTwk-0003La-7p for guix-patches@gnu.org; Mon, 16 Jan 2023 13:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHTwk-0000bY-2R for guix-patches@gnu.org; Mon, 16 Jan 2023 13:11:02 -0500 Subject: bug#45591: environment: gracefully handle unsupported system. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 16 Jan 2023 18:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 45591 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 45591-done@debbugs.gnu.org, guy fleury iteriteka Mail-Followup-To: 45591@debbugs.gnu.org, maxim.cournoyer@gmail.com, gfleury@disroot.org Received: via spool by 45591-done@debbugs.gnu.org id=D45591.16738926332226 (code D ref 45591); Mon, 16 Jan 2023 18:11:01 +0000 Received: (at 45591-done) by debbugs.gnu.org; 16 Jan 2023 18:10:33 +0000 Received: from localhost ([127.0.0.1]:34726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHTwG-0000Zq-Rb for submit@debbugs.gnu.org; Mon, 16 Jan 2023 13:10:33 -0500 Received: from mail-qv1-f43.google.com ([209.85.219.43]:33632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHTwF-0000Zc-4Z for 45591-done@debbugs.gnu.org; Mon, 16 Jan 2023 13:10:31 -0500 Received: by mail-qv1-f43.google.com with SMTP id j9so20044919qvt.0 for <45591-done@debbugs.gnu.org>; Mon, 16 Jan 2023 10:10:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=XjfYV74zaN/aX+JSegYB57tQ9CWpUHle+8+Cz2kSPmg=; b=Wytq3Nz1xZvrbmjXDDSQnpnMq+3vU8M9naM75hWSPlN9l1Yc7iDM6hwweZKVKIezKh UAVpM57+FG5hIIbRIKZeznxpMLG7pDvrAuAeoKc8SPMAcRPBed5XqMuEQAaSEkKqrISX pkL2VAttqmhGv4lWHL5obS+HPjcRtgwnnePQe385eWSu8ZeMGddvX2nfobHbTtJO2ZM0 jYpm/YFHAyv89gxNheMi3NocxmmnJs1EB313qw6GYXuUcND19jK20zFMprY0fQXPIKoM Q+em8DH3ju5IHE8dt7MIfitfygYaiLmUSxYWk90DWmG54X3It6Yf9LGEC6JxG+QkMfzv zuaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XjfYV74zaN/aX+JSegYB57tQ9CWpUHle+8+Cz2kSPmg=; b=m1TGg9A8IY4bk5/GyjZQh7caZ4IAfqf0AftAJQ8v3OCytghq6ZaipQGbD/w1z8flvR oubK7kj5g2extYiCNN+RLixTeUPMsy5/4S4teqUf3TSRc8WG4kdNS9mRnZNfMop1OyJz auClAeNQRogy+CUFh1azpSRp8QshysCf4fCddAsSgnO/1SHtFZz/GDU0DHo2m9SJ9Akm 4O2/792Fdt49mML1/axpw0Hy1WqLzh2/F6SDApbGg7u5mOpCtXdv+p+kmKjZs9f/kP3v ZjcXry4CYr9IrKW2QwCKSdXV1wQM92kSDDPkZHQ1W7fyPG8+9EK2alALBu4OIZaxRkb+ LPLw== X-Gm-Message-State: AFqh2kr4XdQc+Wite9Gp/o+TGGdM6nQgJhyFhFe65ExXs0yRLt0ZNSk3 dzn/UAQ/0qPI1D1yPW5qILTjPCQQHvrmrHCG X-Google-Smtp-Source: AMrXdXsbB/IOqwEqDrT5w6lQiy1rz88FA0wfU54hONLe/lVCbEzCxXRbaMCYiN14pz3TOqjH4+iKgA== X-Received: by 2002:ad4:5885:0:b0:532:172b:52bb with SMTP id dz5-20020ad45885000000b00532172b52bbmr803614qvb.29.1673892625492; Mon, 16 Jan 2023 10:10:25 -0800 (PST) Received: from hurd (dsl-10-130-209.b2b2c.ca. [72.10.130.209]) by smtp.gmail.com with ESMTPSA id u8-20020a05620a430800b006b615cd8c13sm18729664qko.106.2023.01.16.10.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 10:10:25 -0800 (PST) From: Maxim Cournoyer References: <87v9chx71n.fsf@disroot.org> <87lfcwaon2.fsf@gnu.org> Date: Mon, 16 Jan 2023 13:10:24 -0500 In-Reply-To: <87lfcwaon2.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 13 Jan 2021 15:37:53 +0100") Message-ID: <87tu0q4agf.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673892683; a=rsa-sha256; cv=none; b=g85W4iPcjn+xozQ6IUFgDiIt6xivjPnFGP7QW7bentLjqfgJYJ7u8RX1LQMR1FTZio5Dbp 0+3V1TW5V+v8tXBJlQpoxdEYjG5m/5pnTHCoAS2Ja/ds4gcGlfMT20r6mLt7q4Eawh7Rs3 p5Dts0pODjLaDSdWHE3rYYgqKX7BZyMk8EsuEwEa56pU2XaySTr6Kwh8Rj4BUGKghGUA5l QCnBcxMDWFzOwZS2WtzSZ5n52Nc+Vbm1tCLIUDDmgrHuNuleMxN2Lm6+Cptm7BT9XWf50x o71ivX2JFLBgFBRGE9GZMN5aIB7ZPQMY53/7ikJAsVtFSgTSVTUz1YVhsvpwLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Wytq3Nz1; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673892683; 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-to: 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=XjfYV74zaN/aX+JSegYB57tQ9CWpUHle+8+Cz2kSPmg=; b=TCO5r5PtFllGY7FmENcp1ViDvO+uU8kC98L7o1M3t5Pet4x3zeJSVJr5BvxFpKD9Q7K20s jfbF1hhMmVJRBGDaBE9WvablRLo9reLrkwPp20MczaFIAVsbfDbroRoZOw1YyPutgeRGyE /TB3WQ7c+g8PBjzpTHyIppTmcbSZBMM0W/d82fuuKKxqoQ/shdZ4eHza/T0/a7KMKcoqde tktyJHiKqU/jrun8Whzqt1Cfl/5cMV3UcAUMv59nKqU+yG03gAjSfroa6yR2gR/3r+/beK 5f2r0OhVntvnYPJvMaSL+wrMkFzbpTIyTUK/pej2G1CMrdtYGqmmIYoAEbm+wg== X-Migadu-Spam-Score: -0.53 X-Spam-Score: -0.53 X-Migadu-Queue-Id: 925B73C1A3 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Wytq3Nz1; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: 24sVHn3k5dwQ Hi, Ludovic Court=C3=A8s writes: > Hi, > > guy fleury iteriteka skribis: > >> diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm >> index e435bf0..40af012 100644 >> --- a/guix/scripts/environment.scm >> +++ b/guix/scripts/environment.scm >> @@ -719,6 +719,10 @@ message if any test fails." >> (mappings (pick-all opts 'file-system-mapping)) >> (white-list (pick-all opts 'inherit-regexp))) >>=20=20 >> + (when (not (member system '("armhf-linux" "aarch64-linux" >> + "i686-linux" "x86_64-linux" "i586-gnu= "))) >> + (leave (G_ "guix does not support ~A system~%") system)) > > The system list should not be hardcoded (there=E2=80=99s already such a l= ist in > (guix packages)). > > Currently the error one gets is: > > $ guix environment -s does-not-exist --ad-hoc coreutils=20 > guix environment: error: could not find bootstrap binary 'tar' for syst= em 'does-not-exist' > > I suppose that=E2=80=99s what you intended to improve, right? Thanks to the recent work of Mathieu, we now get: guix environment: error: 'does-not-exist' is not a supported system hint: Try `--list-systems' to view available system types. Closing. --=20 Thanks, Maxim