From unknown Thu Sep 11 10:04:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45591 <45591@debbugs.gnu.org> To: bug#45591 <45591@debbugs.gnu.org> Subject: Status: environment: gracefully handle unsupported system. Reply-To: bug#45591 <45591@debbugs.gnu.org> Date: Thu, 11 Sep 2025 17:04:36 +0000 retitle 45591 environment: gracefully handle unsupported system. reassign 45591 guix-patches submitter 45591 guy fleury iteriteka severity 45591 normal tag 45591 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 01 06:00:13 2021 Received: (at submit) by debbugs.gnu.org; 1 Jan 2021 11:00:13 +0000 Received: from localhost ([127.0.0.1]:55451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvIAH-0006Ic-22 for submit@debbugs.gnu.org; Fri, 01 Jan 2021 06:00:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:48604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvIAE-0006IU-RD for submit@debbugs.gnu.org; Fri, 01 Jan 2021 06:00:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvIAE-0002zl-HY for guix-patches@gnu.org; Fri, 01 Jan 2021 06:00:10 -0500 Received: from knopi.disroot.org ([178.21.23.139]:47334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvIAB-0005ZY-Uv for guix-patches@gnu.org; Fri, 01 Jan 2021 06:00:10 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EAEFE51C26 for ; Fri, 1 Jan 2021 11:53:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yHDoaxAP3Mn1 for ; Fri, 1 Jan 2021 11:53:12 +0100 (CET) From: guy fleury iteriteka DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1609498392; bh=BfiXotgUx1QwU9JZ8G9TMcjD/YmlZdWgkY/YmdYoXHg=; h=From:To:Subject:Date; b=ijGK5JsZa6awhOyGxKTY5+YRi5gwAbkWcnv+iXjKZug0DnmCE9ymirf4I/nWNcCjn R5oUGExa/AQwiQg/u0iD4dCmTYVApyjfOj4nVLcTgpNwbe4cNFd/jibbklgOMPyo4W uHlL/JXJkJ3V9BJA+SN4F2NR73xS2lJLKZXoazfL5/Sm7g8i/O2Bwrik1FGAxmb+cc EhTtTp0kFsDu9INQC//90VRdRd8VAgz8Q00h6xo0+wODlPpNqlJngWg8UBvytsxzqM vLWOzYieqzQFN0meEC8Wo8dERVUilLTuwzNmx1+LRFWr/ibQ7x4buYaCUpYvBAhIIh K7+t53aX5LzYQ== To: guix-patches@gnu.org Subject: environment: gracefully handle unsupported system. Date: Fri, 01 Jan 2021 12:53:08 +0200 Message-ID: <87v9chx71n.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=178.21.23.139; envelope-from=gfleury@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain hi guix, if this patch looks good, feel free to change message diagnostic. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-environment-gracefully-handle-unsupported-system.patch >From d9b4727885744abda8afc179182a2cc975122487 Mon Sep 17 00:00:00 2001 From: guy fleury iteriteka Date: Fri, 1 Jan 2021 11:01:49 +0200 Subject: [PATCH] environment: gracefully handle unsupported system. * guix/scripts/environment.scm(guix-environment): Add a test to ensure that the system is supported. --- guix/scripts/environment.scm | 4 ++++ 1 file changed, 4 insertions(+) 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))) + (when (not (member system '("armhf-linux" "aarch64-linux" + "i686-linux" "x86_64-linux" "i586-gnu"))) + (leave (G_ "guix does not support ~A system~%") system)) + (when container? (assert-container-features)) (when (and (not container?) link-prof?) -- 2.20.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 13 09:38:01 2021 Received: (at 45591) by debbugs.gnu.org; 13 Jan 2021 14:38:02 +0000 Received: from localhost ([127.0.0.1]:34757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzhHd-0004xg-EG for submit@debbugs.gnu.org; Wed, 13 Jan 2021 09:38:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzhHc-0004xT-4V for 45591@debbugs.gnu.org; Wed, 13 Jan 2021 09:38:00 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57085) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzhHW-0000B7-Tw; Wed, 13 Jan 2021 09:37:54 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39020 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kzhHW-0005VO-Et; Wed, 13 Jan 2021 09:37:54 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guy fleury iteriteka Subject: Re: bug#45591: environment: gracefully handle unsupported system. References: <87v9chx71n.fsf@disroot.org> Date: Wed, 13 Jan 2021 15:37:53 +0100 In-Reply-To: <87v9chx71n.fsf@disroot.org> (guy fleury iteriteka's message of "Fri, 01 Jan 2021 12:53:08 +0200") Message-ID: <87lfcwaon2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45591 Cc: 45591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 lis= t 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 system= 'does-not-exist' I suppose that=E2=80=99s what you intended to improve, right? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 22 13:22:50 2021 Received: (at control) by debbugs.gnu.org; 22 Mar 2021 17:22:50 +0000 Received: from localhost ([127.0.0.1]:58462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOOGQ-0008Q3-DS for submit@debbugs.gnu.org; Mon, 22 Mar 2021 13:22:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOOGP-0008Pp-2J for control@debbugs.gnu.org; Mon, 22 Mar 2021 13:22:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34985) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOOGJ-00034W-TV for control@debbugs.gnu.org; Mon, 22 Mar 2021 13:22:43 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43122 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lOOGJ-0007in-8T for control@debbugs.gnu.org; Mon, 22 Mar 2021 13:22:43 -0400 Date: Mon, 22 Mar 2021 18:22:41 +0100 Message-Id: <8735wnw1b2.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #45591 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 45591 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 16 13:10:33 2023 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 To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#45591: environment: gracefully handle unsupported system. 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=22'?= =?utf-8?Q?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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45591-done Cc: 45591-done@debbugs.gnu.org, guy fleury iteriteka X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Thu Sep 11 10:04:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 14 Feb 2023 12:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator