From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8N+/BmjOAmXTQQEAauVa8A:P1 (envelope-from ) for ; Thu, 14 Sep 2023 11:12:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8N+/BmjOAmXTQQEAauVa8A (envelope-from ) for ; Thu, 14 Sep 2023 11:12:08 +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 6DE1735C2B for ; Thu, 14 Sep 2023 11:12:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=bDmStyh5; 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=1694682728; a=rsa-sha256; cv=none; b=NWbDG5T3GyKPM3VLJvBAx4GV88L95HYgBvDLAWnvv197oY7NGi88LGPNB4GFOAUFCdS3dD pupA1RARRFAfmikGqWwMePJJ6ZKPHUr+KHG4lwJz1ERKnH5M5VBhnX5P9rvXWusho2SJBr Zt2Gj+MnhXGJf97FV212lALvyE03eUzz6EFdNIThLhnPUKQPnjJfRpIqsic01Qe2+3QGIM edbIWidNczU7d0lpFCqa0KzHcOfQXPup9BoHKDSTnKB9PGdok6Vq2elwZe4tAXUnaWATLh GxEe2rEnHc/hw384jr2CTGdeUxznMqZfPqwp4uBEdPWum3fkWcD1NHXxUG3pzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694682728; 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=mUtNMogvedtEnLi2EaeZZ0ueRZ0i5wp96OwhlmH82Gw=; b=GKMHwrEaF2FuF0jW/pdZD8CHE1O1NuAIm4OHeUX1A42zMYcFkDFeiGoakDr++Y5aZUbkVq tBezDOGsCI8ub4MHQZ2uhfT8W/bkkmpw3ht3Jg9lVUjhb/MKBqxWdqsdzZUx2hzqVjLgYT orM2KFp4OHzIdwMx+4krxB/lN80JOeV4ebLXRwckhh2/DaDhYNQpd550fmtabQxECc9rl5 +kDa2H1ZnPoevO+PQDklu/F7C2q8XRpk0LC55iwE/O4AK+nlYezMS7HvfzLDlQkE719ni3 a9/srWKOGBH1FPO3D35rzUnTWrOlmQpxISlGPySmErTrBCX5Pbi6ePZQpJoc7Q== 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=bDmStyh5; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgiOE-00077j-8d; Thu, 14 Sep 2023 05:11:58 -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 1qgiOC-00077a-GZ for guix-patches@gnu.org; Thu, 14 Sep 2023 05:11:56 -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 1qgiOC-0002tW-8p for guix-patches@gnu.org; Thu, 14 Sep 2023 05:11:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgiOH-0002Ea-Vl for guix-patches@gnu.org; Thu, 14 Sep 2023 05:12: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: Thu, 14 Sep 2023 09:12: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.16946826618504 (code B ref 65860); Thu, 14 Sep 2023 09:12:01 +0000 Received: (at 65860) by debbugs.gnu.org; 14 Sep 2023 09:11:01 +0000 Received: from localhost ([127.0.0.1]:37638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgiNJ-0002D2-7M for submit@debbugs.gnu.org; Thu, 14 Sep 2023 05:11:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgiNH-0002Cm-Co for 65860@debbugs.gnu.org; Thu, 14 Sep 2023 05:10:59 -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 1qgiN6-0002eh-8g; Thu, 14 Sep 2023 05:10:48 -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=mUtNMogvedtEnLi2EaeZZ0ueRZ0i5wp96OwhlmH82Gw=; b=bDmStyh5IPctKTIvGRBs +mIW3y6Vknm4RRH5tlqD1j6UQoNcLLoGuqfUO+vLAxTXLZBWuV7KDkUjwQqG+PYmEtxBX2D/rLyp7 VjaU92HIWXAG7ITAxE21JTnVb/8frD8yIvRty13VZJYnoDwS0KjFhS2X6DqbiphdIR9PnKWfh9/XM +PIcfqaUolclIKzNU9GH3opsSRvpjgZ8FnQPkceU+BPBjOQa9VKs+988mGMRX7M1YXnsEN/+DM5Zn dpy2wLY6dxjwdnLrcEUf7EaWLCKU4pPssETrQ0IoIUt7THWtNbGYPjzZBCFsFNwWKj0MFH5WtfUj8 LuZeHMlXI6kz7w==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r0n1kedj.fsf_-_@gnu.org> <8734zhv49z.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 28 Fructidor an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du =?UTF-8?Q?Ma=C3=AFs?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 14 Sep 2023 11:10:44 +0200 In-Reply-To: <8734zhv49z.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 13 Sep 2023 23:10:16 -0400") Message-ID: <87o7i5glwr.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-Spam-Score: -6.90 X-Spam-Score: -6.90 X-Migadu-Queue-Id: 6DE1735C2B X-Migadu-Scanner: mx2.migadu.com X-TUID: pKcqFZ1ETFPg Hi, Maxim Cournoyer skribis: > Ludovic Court=C3=A8s writes: [...] >> People will lose the ability to install those toolchains, for instance >> with =E2=80=98guix install propeller-toolchain=E2=80=99, or to upgrade p= rofiles that >> contain them (though =E2=80=98guix install axoloti-runtime=E2=80=99 is s= till good, for >> instance). >> >> I=E2=80=99m not sure whether that=E2=80=99s acceptable, but we should ch= eck with known >> users of this, such as Ricardo. > > It's a pity to loose that ability (it's also a pity to not be able to > simply 'guix install gcc-cross-some-target', for the same reason) but > the statu quo where pulling (gnu packages avr) causes hard to grasp > failures is worst, in my opinion. I wasn't able to work on adding > packages dependent on (gnu packages avr) for that reason. Debugging was > a pain. Oh yes, I=E2=80=99ve been there, so I can tell you I sympathize. :-) I agree that this needs to be addressed. I wondered whether/how hard we should search for a different solution. >> I=E2=80=99ve always felt that these toolchains should be provided as par= t of the >> =E2=80=9Cregular=E2=80=9D cross-compilation framework in cross-base.scm.= Packages 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= forgot why this >> was rejected. > > That'd be an improvement, I think. Right now we have to call a > procedure in the input fields everywhere, it's not very elegant. BTW, another issue with the package-returning procedures: they return a fresh package object at each call, which defeats caching. I think you should be able to observe it with: GUIX_PROFILING=3Dobject-cache guix build axoloti-runtime -d --no-grafts The effect will be more acute on the build farms since they compute derivations for everything that depends on these toolchains. The solution would be to make those procedures memoizing, with =E2=80=98mla= mbda=E2=80=99 or similar. Ludo=E2=80=99.