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 ms0.migadu.com with LMTPS id mMmQJq+rEWLxOgEAgWs5BA (envelope-from ) for ; Sun, 20 Feb 2022 03:47:11 +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 GIhkI6+rEWK2aQAAauVa8A (envelope-from ) for ; Sun, 20 Feb 2022 03:47:11 +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 4901E18AC6 for ; Sun, 20 Feb 2022 03:47:11 +0100 (CET) Received: from localhost ([::1]:34680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLcFh-0004IJ-Nc for larch@yhetil.org; Sat, 19 Feb 2022 21:47:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLcFa-0004I8-8X for bug-guix@gnu.org; Sat, 19 Feb 2022 21:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLcFZ-0003s9-UP for bug-guix@gnu.org; Sat, 19 Feb 2022 21:47:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLcFZ-0000JU-QH for bug-guix@gnu.org; Sat, 19 Feb 2022 21:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#51801: closed (Re: bug#51801: No warning when attempting to build unsupported system with --system) Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 20 Feb 2022 02:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51801 X-GNU-PR-Package: guix X-GNU-PR-Keywords: Received: via spool by 51801-submit@debbugs.gnu.org id=B51801.16453251821151 (code B ref 51801); Sun, 20 Feb 2022 02:47:01 +0000 Received: (at 51801) by debbugs.gnu.org; 20 Feb 2022 02:46:22 +0000 Received: from localhost ([127.0.0.1]:59026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLcEw-0000IV-Gl for submit@debbugs.gnu.org; Sat, 19 Feb 2022 21:46:22 -0500 Received: from mail-qv1-f49.google.com ([209.85.219.49]:38497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLcEu-0000II-Uf for 51801@debbugs.gnu.org; Sat, 19 Feb 2022 21:46:21 -0500 Received: by mail-qv1-f49.google.com with SMTP id d3so23122251qvb.5 for <51801@debbugs.gnu.org>; Sat, 19 Feb 2022 18:46:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:cc:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=jnodyWmx6P4OBR1LEeUy6qsRAGFZkSXONMkZXsg41dE=; b=JlOL7Q9gliKVQq/sTQSNqlrKDBrhv/hau5E0KFxWvC4LEX90HfB6c7NOZ1MbCGKOB+ VamNrQluOIoTDvHgAV55lUIiCg68LQAgQxiuKfzat87q2T/8uXWU6To0pTm+BgW5m/nb rRETutXLfHmE/c41ih9iXQjn5RjHTQmReuia9qCuULq1mW/6vaIzY8q+TUpEgxEtUwXx MxRtjl0zFYuYn+PKIMvtxmgSPnzG9k4vcdGTOteIx+itAVU7U2vXVbd3oDnCaUCwgh3e LwhBybE4FfNnqLNTx3RT0LO8+UIGLI7FQiSr7FUtKWri82DXyryPh6bbfcbvw/kIKrjG habA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=jnodyWmx6P4OBR1LEeUy6qsRAGFZkSXONMkZXsg41dE=; b=iBolSw5lTPIbsujlTBaEN3kSBzGTPh8On4wDODsuG6gIl8rnLFdhkhgO6JiefN2Oo2 UwhlaH7bhJj6cJtdthMork7nJ3vQ2WGPl3BCWSrH7NbuCl6EKEcCH9X4+RwR8h5wQyFh 8jzi72xHRLSoqTPCM+t0DwDcW5x/lUo2Us1B5D6T7/VfVdHcVpbuM6CjymUE4DGEFFuA RyA1IaEYwRWsbFvTDai6rZARCM3L7oeIS2cOiv1YqElvwO+LKtP0P6zLfNB/r9Pd2cpT bpRcMpg/SE6J8A5IZEGGJLAEa+plPSxIR7rlzJ+hxZKs/k7uGcBRbYejoVmQ/FLAyoVy K5Wg== X-Gm-Message-State: AOAM5332P8qn5+i7ag2mVFtcQdN/Q5zxvLIshQyftlMTVU8POMYWbBCI tVJt2jvZb9/6JpWyZZtFpi/aa+y4rkA= X-Google-Smtp-Source: ABdhPJwqM3oUUy1Th6+CsPZLD4aZbQ1kts28XODEzW/wbiwiYNUzH7OsHyTr0n/tgdz+AGUGxRM2XA== X-Received: by 2002:a05:6214:c63:b0:42c:dedc:e59 with SMTP id t3-20020a0562140c6300b0042cdedc0e59mr11365477qvj.125.1645325175234; Sat, 19 Feb 2022 18:46:15 -0800 (PST) Received: from hurd (dsl-153-17.b2b2c.ca. [66.158.153.17]) by smtp.gmail.com with ESMTPSA id e9sm29164311qtx.37.2022.02.19.18.46.14 for <51801@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Feb 2022 18:46:14 -0800 (PST) From: Maxim Cournoyer References: <87bkz4jotx.fsf@gnu.org> <87o86oix8e.fsf@gmail.com> Date: Sat, 19 Feb 2022 21:46:13 -0500 In-Reply-To: (GNU bug Tracking System's message of "Fri, 18 Feb 2022 13:19:01 +0000") Message-ID: <874k4uqmq2.fsf@gmail.com> 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-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@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=1645325231; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id: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=jnodyWmx6P4OBR1LEeUy6qsRAGFZkSXONMkZXsg41dE=; b=rOWpRTrWS3TKl4tSwofNXUEbgSTCetOXJ7f0ju+5f+nHFIHAdABFXA5LwD+t6uKpTEvn/X 8JRv50GXyxYOnXzImgBgPZ4VImmbEud+WkBiAe1Fjwz23exqwT0BSnoCpUji0WxW0vait4 g4BSRxkiqmJln3Q8MeCEZjhQrV7h7SjMm2dbQyX79rtZowVBcfRxqgW9l6OeD3JyWacCn3 132vfUAIqAAhXKirfJkT8LAiPWczmBHOzxnKkZAo7vbvzWDF394ZEWrXI+PApbduggqOyC GWCYGIsNDUyL47HiN721JGMigomJkzm2KA7QwM2lzNkOvZuyMwBG21arHETdiQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645325231; a=rsa-sha256; cv=none; b=bK86Z4KzRwrOFP4TAeTBbcpsTeGkLJJx8xX7xx6f7nNH0/OxazYXBkXs1nUAMZL83omh4g qeIKmsKWffdXE99beNUOoILr+ybvzJ6k1sGBY4gXIDk5ZYRgO+xQi9kpnfggb1UshX2O7X 9Srxgy4PJ/P/lOZBAHBd+M8O3ovL6ddrNfQRosdg5y05xs6EkXKVJkDbnWkAMTzVtDM0YE EHqGFShpSVKzCY8ihE2IvckqEN4df/hzTb8CQpgVTYdEaY7dTNkCdZn3PmuN3//Osho175 4vbZ6Bd782h9qmuDN5QE47I3agHgX7khiSaK128dk2Xnv0dYBPcxPTo3nlWxnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=JlOL7Q9g; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -0.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=JlOL7Q9g; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 4901E18AC6 X-Spam-Score: -0.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: xXt+aQepl9FW Hi Ludo, > From: Ludovic Court=C3=A8s > Subject: Re: bug#51801: No warning when attempting to build unsupported s= ystem with --system > To: Maxim Cournoyer > Cc: 51801-done@debbugs.gnu.org > Date: Fri, 18 Feb 2022 14:18:02 +0100 (1 day, 13 hours, 27 minutes ago) > > 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, = etc. 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 pac= kage. > 5a57313918 profiles: 'profile-derivation' rejects unsupported packages. > 0572737a62 packages: 'package-transitive-supported-systems' ignores '%c= urrent-target-system'. Thank you! Maxim