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 ms0.migadu.com with LMTPS id OFDnAxudD2LtMwAAgWs5BA (envelope-from ) for ; Fri, 18 Feb 2022 14:20:27 +0100 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 cD1HARudD2IsKgEA9RJhRA (envelope-from ) for ; Fri, 18 Feb 2022 14:20:27 +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 B09F231A14 for ; Fri, 18 Feb 2022 14:20:26 +0100 (CET) Received: from localhost ([::1]:53590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nL3BQ-0002zO-F9 for larch@yhetil.org; Fri, 18 Feb 2022 08:20:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nL3A6-0002xd-81 for bug-guix@gnu.org; Fri, 18 Feb 2022 08:19:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nL3A5-0007vv-Ua for bug-guix@gnu.org; Fri, 18 Feb 2022 08:19:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nL3A5-0006OD-Rc for bug-guix@gnu.org; Fri, 18 Feb 2022 08:19:01 -0500 Subject: bug#51801: No warning when attempting to build unsupported system with --system Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Fri, 18 Feb 2022 13:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 51801 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Mail-Followup-To: 51801@debbugs.gnu.org, ludo@gnu.org, maxim.cournoyer@gmail.com Received: via spool by 51801-done@debbugs.gnu.org id=D51801.164519029024492 (code D ref 51801); Fri, 18 Feb 2022 13:19:01 +0000 Received: (at 51801-done) by debbugs.gnu.org; 18 Feb 2022 13:18:10 +0000 Received: from localhost ([127.0.0.1]:53659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nL39G-0006My-9u for submit@debbugs.gnu.org; Fri, 18 Feb 2022 08:18:10 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:37430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nL39F-0006Mk-2Z for 51801-done@debbugs.gnu.org; Fri, 18 Feb 2022 08:18:09 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 9CB861A4; Fri, 18 Feb 2022 14:18:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0GZ-QyCUbVSi; Fri, 18 Feb 2022 14:18:03 +0100 (CET) Received: from ribbon (unknown [193.50.110.222]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9F49018E; Fri, 18 Feb 2022 14:18:02 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87o86oix8e.fsf@gmail.com> <874k4xmrau.fsf@gnu.org> Date: Fri, 18 Feb 2022 14:18:02 +0100 In-Reply-To: <874k4xmrau.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 17 Feb 2022 16:44:09 +0100") Message-ID: <87bkz4jotx.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-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 9CB861A4 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 51801-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645190426; 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; bh=3Y+3MnTYC2opK+nJ5uHQSPJWne4+3z4STmtWXWfrzY4=; b=GTtzHjSRV2W8z3CyiWmI11b+Oq7/Cyz7CTqVaLEZQjQZnZ18U2Z5ImRDOmDopBu4JXe5Jx eBlBV/IilDuDqC7VWA+Kd5v2Wm/XetVAFBicTOiEy0m+3vhHCcNh2VRUvYbhFHE1+JkMb+ clwD0NpPolvcFpBhooPOnv5RoKOs1d5nec66HrvzcWFjjUDkwasu5qVWKZ5uMIiv8YfZPY WWYJy1zrWq0qmsYGUNHOFJH6ZNc1rTay43UCLAt5BAfbPBc/XIkA523mglWxk1gzRI0vyY bfw9SDqssed7IFiNSJLUKcn/ckn9GI0YqkNNH89ipYY2O5uYfE8lrJogn+KoTw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645190426; a=rsa-sha256; cv=none; b=LoGo7QSjX/GdpNpHsOQcjGqZ0n3AB9NwzVQgOeZJIE/rBGRaQXYaFT81HZ+VGSbJNRtcva m5TvpYcAW/rsVUF6f0bjgye+bSKAjFk8kPPgqV6z+iUsk4mpnDQTPbdhgR6ktuS7m5ohW2 WZpNH9N68xv4iqGpaQGMGkp43wrrq+bnA387zXrnAy15PcZOU0ItDbCPzwNc/ppUcSPaJF gri+CUyLC50FmLaW0el+kTr+MYQSyDSgSbAf7yeps8lXBBteEffxQmus/4yfYAXRZbs4V9 2lYJMgKFgsvuP1so/bsgsRcql/L174YaloTpyxsWWnRZeHotfiHN1BrtjjLSLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B09F231A14 X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: lPV/oWVlU18+ Ludovic Court=C3=A8s skribis: > Maxim Cournoyer skribis: > >> I was surprised that: >> >> guix build fpc --system=3Darmhf-linux >> >> would send me in a dead end without any word of caution, given that >> armhf-linux is *not* listed in the supported-systems field. >> >> We should at least warn near the beginning of the build, and remind of >> that fact at the end of the build in case of failure. > > I came up with the patches below. > > The first part forbids unsupported packages altogether in user-facing > commands: =E2=80=98guix install=E2=80=99, =E2=80=98guix shell=E2=80=99, e= tc. Until now, they=E2=80=99d just > start building things that were bound to fail. > > The second part adds a mere warning for =E2=80=98guix build=E2=80=99 (it = does not repeat > it at the end, though). I went ahead and pushed them: 0ca26437cb guix build: Warn when attempting to build an unsupported packa= ge. 5a57313918 profiles: 'profile-derivation' rejects unsupported packages. 0572737a62 packages: 'package-transitive-supported-systems' ignores '%cur= rent-target-system'. Ludo=E2=80=99.