From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uJcWMBIB71/hPAAA0tVLHw (envelope-from ) for ; Fri, 01 Jan 2021 11:01:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6JPaKxIB71/lMAAA1q6Kng (envelope-from ) for ; Fri, 01 Jan 2021 11:01:38 +0000 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 4EF029404E7 for ; Fri, 1 Jan 2021 11:01:38 +0000 (UTC) Received: from localhost ([::1]:55872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvIBc-0003dl-7h for larch@yhetil.org; Fri, 01 Jan 2021 06:01:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvIB5-0003bo-2S for guix-patches@gnu.org; Fri, 01 Jan 2021 06:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvIB4-0005yA-JB for guix-patches@gnu.org; Fri, 01 Jan 2021 06:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kvIB4-0006Jv-GK for guix-patches@gnu.org; Fri, 01 Jan 2021 06:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45591] environment: gracefully handle unsupported system. Resent-From: guy fleury iteriteka Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Jan 2021 11:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45591 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 45591@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160949881324222 (code B ref -1); Fri, 01 Jan 2021 11:01:02 +0000 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) 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== 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-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" Reply-to: guy fleury iteriteka , guy fleury iteriteka via Guix-patches From: guy fleury iteriteka via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.33 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=disroot.org header.s=mail header.b=ijGK5JsZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4EF029404E7 X-Spam-Score: -2.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: mCo3vn2FjYtB --=-=-= 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 --=-=-=--