From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wGNFHlUbAmXvVgAA9RJhRA:P1 (envelope-from ) for ; Wed, 13 Sep 2023 22:28:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wGNFHlUbAmXvVgAA9RJhRA (envelope-from ) for ; Wed, 13 Sep 2023 22:28:05 +0200 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 ADE7845B52 for ; Wed, 13 Sep 2023 22:28:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=XN33HHZf; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694636884; 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-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=NDQ5ZvFFh7Pavn0HN+gIMpFZXf+u+6A5Yvb3DaaZ39U=; b=l5MTX5cEcrWS0r82u+R2DmN7BLjcHF66lq+2zcltSLAGc+Z0HdV3xmg/Ely2o1m0HflqYp ryVnGgmy60uQ6HII7HDXOpGgc8wRMAgxoSjlRx0LZRDQ84sTYd7ShxCBOiqSfWbHkKHDii Wa4Wb6SOha/VqC7wp2CurX2eFNk7K3tf1UlM6uPV2uYYGN8eZcDfjBTaE9cgzHeUEktcHa EO9sNYqxlKE0u2Zm0UH3jZREWcDEVMVqi2S045XLkku16F/Lig0ZcFobIU4H6Vg3hx0XE0 xmdFc1utzNAxmRooyRhK2Rvgk1oSt4wmkNIv7Y/oJdUEQO2O0AcHmRQ0a5RJLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=XN33HHZf; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694636884; a=rsa-sha256; cv=none; b=boKOQIO0g6ANQNDotMt6Wydb4UXNkXMDwJAOre0fDC/Rm3krsf3aFXNPN4tnh4Bj+wNGDN GVhDtySbw4qYV2oiL3QuxZ/llWlNLLtjoA8jDGHl5Xgqf16dcu1xVA0RzAkTyhrLrffNBl cRe0rFcxQM9Zgkfbl27AUQBtKAt0FKujUTIbQc9ZAuJfiLk9L+0zda/6mFtc6Rivxqa3fU DDf2OKpT2BTrELTOJs4nvGuJfiYP/YTEpVCHnctchoqEnZ8JEwLW97v4rfguzp1+7XzCqw ClGiyG02OVwcfXjV2H91go/RVHyvJbglmAAClgHH+i03xGRKNNg9AxJoopeYOA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgWSt-00078B-Ix; Wed, 13 Sep 2023 16:28:02 -0400 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 1qgWSq-00077b-OG for guix-patches@gnu.org; Wed, 13 Sep 2023 16:27:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgWSq-0003vM-GF for guix-patches@gnu.org; Wed, 13 Sep 2023 16:27:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgWSv-0007Nc-SW for guix-patches@gnu.org; Wed, 13 Sep 2023 16:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65860] [PATCH 0/4] Resolve a circular module dependencies in embedded modules Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 20:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65860 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 65860@debbugs.gnu.org Received: via spool by 65860-submit@debbugs.gnu.org id=B65860.169463687528356 (code B ref 65860); Wed, 13 Sep 2023 20:28:01 +0000 Received: (at 65860) by debbugs.gnu.org; 13 Sep 2023 20:27:55 +0000 Received: from localhost ([127.0.0.1]:36168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgWSo-0007NI-Sn for submit@debbugs.gnu.org; Wed, 13 Sep 2023 16:27:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgWSn-0007N3-43 for 65860@debbugs.gnu.org; Wed, 13 Sep 2023 16:27:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgWSc-0003tX-58; Wed, 13 Sep 2023 16:27:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=NDQ5ZvFFh7Pavn0HN+gIMpFZXf+u+6A5Yvb3DaaZ39U=; b=XN33HHZf3JvsuRyY52XH MXBtEJe8ohhgU+yskne6eaibWaZfhbAG/0XnqVXeO4Qy4drW1LgneTrtaSpvCiyQJXoVUJyJKtuwD Ch+zM6Yi4A95W04OFd6Dqw+eZA2+q3EjWfhe99JdQE/8EU6Ewx6es/wIAD194+q7FvKCtQJyYCTiD zljHIRDrWzmSyv4/oy5mZSbNCrpuH4T3eAZLXGcQcgjUe9V/QfZ8yIxX4eI4vWhoIP8DUrI2y7Qlp ZwpCioJiBxXxrNa+EnLQg7C32jzNP3gpHBMr+O54qpQkM7RQuqSVDgC+iDF8XQz3JQlJ7TazTTd9R tv4s85Aqv1izzg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Wed, 13 Sep 2023 22:27:36 +0200 In-Reply-To: (Maxim Cournoyer's message of "Mon, 11 Sep 2023 00:25:57 -0400") Message-ID: <87r0n1kedj.fsf_-_@gnu.org> 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -2.11 X-Spam-Score: -2.11 X-Migadu-Queue-Id: ADE7845B52 X-TUID: lPy6B7MbGKgd Hi, Maxim Cournoyer skribis: > Partially addresses . > > * gnu/packages/avr.scm: Add commentary comment. > (avr-gcc): Turn into this... > (make-avr-gcc): ... procedure. > (avr-libc): Likewise, into... > (make-avr-gcc): ... this. Adjust native-inputs accordingly. > (avr-toolchain): Likewise, into... > (make-avr-toolchain): ... this. > * gnu/packages/avr-xyz.scm (simavr) [propagated-inputs]: replace avr-tool= chain > with a call to the 'make-avr-toolchain' procedure. [...] > Fixes . > > Before this change, simply adding the following import: > > modified gnu/packages/firmware.scm > @@ -42,6 +42,7 @@ (define-module (gnu packages firmware) > #:use-module (gnu packages admin) > #:use-module (gnu packages autotools) > #:use-module (gnu packages assembly) > + #:use-module (gnu packages avr) > #:use-module (gnu packages backup) > #:use-module (gnu packages base) > #:use-module (gnu packages bash) > > Would cause byte compilation and/or evaluation to fail due to a circular > module dependency. > > * gnu/packages/embedded.scm: Add commentary. > (gcc-arm-none-eabi-4.9, gcc-arm-none-eabi-6, newlib-arm-none-eabi) > (newlib-nano-arm-none-eabi, gcc-arm-none-eabi-7-2018-q2-update) > (newlib-arm-none-eabi-7-2018-q2-update) > (newlib-nano-arm-none-eabi-7-2018-q2-update) > (arm-none-eabi-toolchain-4.9, arm-none-eabi-nano-toolchain-4.9) > (arm-none-eabi-toolchain-6, arm-none-eabi-nano-toolchain-6) > (arm-none-eabi-toolchain-7-2018-q2-update, gdb-arm-none-eabi) > (propeller-binutils, propeller-gcc-6, propeller-gcc-4) > (propeller-gcc, propeller-toolchain, propeller-development-suite) > (gcc-vc4): Turn into procedures, prefixing the procedure name with 'make-= ', > and adjust all users. > (make-libstdc++-arm-none-eabi) [arguments]: Avoid an unused warning. > (arm-none-eabi-toolchain): Rename to... > (make-arm-none-eabi-toolchain): ... this. > * gnu/packages/raspberry-pi.scm (raspi-arm-chainloader) [native-inputs]: > Replace gcc-arm-none-eabi-6 with (make-arm-none-eabi-toolchain). > * gnu/packages/axoloti.scm (axoloti-runtime) > [inputs]: Replace arm-none-eabi-nano-toolchain-4.9 > with (make-arm-none-eabi-nano-toolchain-4.9). > (axoloti-patcher): Likewise. > (axoloti-patcher-next) [inputs]: Replace > arm-none-eabi-nano-toolchain-7-2018-q2-update > with (make-arm-none-eabi-nano-toolchain-7-2018-q2-update). People will lose the ability to install those toolchains, for instance with =E2=80=98guix install propeller-toolchain=E2=80=99, or to upgrade prof= iles that contain them (though =E2=80=98guix install axoloti-runtime=E2=80=99 is stil= l good, for instance). I=E2=80=99m not sure whether that=E2=80=99s acceptable, but we should check= with known users of this, such as Ricardo. I=E2=80=99ve always felt that these toolchains should be provided as part o= f the =E2=80=9Cregular=E2=80=9D cross-compilation framework in cross-base.scm. P= ackages that always need to be cross-compiled (to AVR microcontrollers, etc.) would have a hardcoded #:target in their =E2=80=98arguments=E2=80=99 field. I fo= rgot why this was rejected. Thanks, Ludo=E2=80=99.