From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 4J+4NSWdB2Uw4AAA9RJhRA:P1 (envelope-from ) for ; Mon, 18 Sep 2023 02:43:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4J+4NSWdB2Uw4AAA9RJhRA (envelope-from ) for ; Mon, 18 Sep 2023 02:43:17 +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 A3AD3304E7 for ; Mon, 18 Sep 2023 02:43:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=SDmelu6P; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694997797; a=rsa-sha256; cv=none; b=P+iKdmHSMRMJ3yK879QpKs6MkNj0zGYzXez+9vzBZL6JqDFmtVt/pXRSD3HCNuY+sAdzZl J++ax6V8+T/ikQ32EWGnajLBob3wxNvFxWi90enRUMi7mba2F+HTXXABzgDXzmYkThNWPZ gmqxS7MKldSGNlLJKfJWAhNpDX8vciUyf13z+/sjuzLgOPHb8hYT77PjpvC6JGiRC37q6e Hpaa8V1f33ZU4V++76HzRMMRoz5eyq0KCHnmhVBp8B8Iszs0Nl15q5G4vc+mPVuFvGKNnb CpvQwcv98e2Cgxi/BoAWGpAYoAA50E6TxhKqejcKDqL3TmzJxXxb57N2ACgTuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694997797; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=G77VGTyTUSStty3lRb2ULl6KZpQ/rczhAkj/o3X02Jk=; b=M3cSViJ8EzpZCVWtToE+BtFG57e+GV/+qU0Ae0VR8N1OVjsSyeF0cWJ83kuf9Dd5iWy9Ur 3yNc3NGymcl2WShfFfXUgarPpjXn06ChwFxQ8E+m/ssL2eam2XAq4tP4wXQj/I5KKXFsvA 1R5XZfASM6ssuNEhNydEVKyhH1Kiv1lzwjtcjkSE081aC1uaQE1bO3VXCb0wUg88nSireK J8xq36CK1vn0uio29X2zSfoN+0LR5YT5OqztlYlVF4lS5BTQJEa1AR2XvpkvJ9EyctgPO6 YGTLlfSlGkdGOFg4/KRk25FZRmnnaoMOo16Uy8yOqZ0r1BQQq8Wy7GYIXyYjUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=SDmelu6P; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qi2Lo-0003Qp-PP; Sun, 17 Sep 2023 20:42:56 -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 1qi2Lm-0003Pb-QA for guix-patches@gnu.org; Sun, 17 Sep 2023 20:42:54 -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 1qi2Lm-0000sw-Fw for guix-patches@gnu.org; Sun, 17 Sep 2023 20:42:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qi2Lt-0001mE-VA for guix-patches@gnu.org; Sun, 17 Sep 2023 20:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66063] [PATCH v2 0/3] Resolve a circular module dependencies in embedded modules Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Sep 2023 00:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66063 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66063@debbugs.gnu.org Cc: Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16949977466759 (code B ref -1); Mon, 18 Sep 2023 00:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2023 00:42:26 +0000 Received: from localhost ([127.0.0.1]:51650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qi2LJ-0001kw-NG for submit@debbugs.gnu.org; Sun, 17 Sep 2023 20:42:25 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qi2LE-0001ke-F2 for submit@debbugs.gnu.org; Sun, 17 Sep 2023 20:42:24 -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 1qi2L0-0003LC-U4 for guix-patches@gnu.org; Sun, 17 Sep 2023 20:42:06 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qi2Kz-0000l0-HF for guix-patches@gnu.org; Sun, 17 Sep 2023 20:42:06 -0400 Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-412091b9035so27069471cf.1 for ; Sun, 17 Sep 2023 17:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694997724; x=1695602524; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=G77VGTyTUSStty3lRb2ULl6KZpQ/rczhAkj/o3X02Jk=; b=SDmelu6P5xwVxIXj0kFlVl+lpofim5hYbeEDLSvmgQjk4G7YJR+iMNZrUvg856343m GKIT9w6IXePChSfmMe7IvSd1OoiSePVnTzH9Z2xDXVgduQJVGJECaLbO0mxvxlcCdxfm 7ilJ2i49yCcIuIVJJGoKtRWN/oCagiBeEvCjsgE5KrOSI+HcjJDbAz6V6zxVRR3Labbc yWUq8qh2G0qe+PpMMmERcK3p5h0jemyYbp2+c+W+cC4mXT5drr8O83qFsbrbW6Ykc0nG S7Rs2kP/fQYfJwwiIxePcwpOSbijsGa7Chu6U5Gja25wZ8AhIcyhC1AIGDYNkYL5thmJ jW5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694997724; x=1695602524; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G77VGTyTUSStty3lRb2ULl6KZpQ/rczhAkj/o3X02Jk=; b=dY7UBiIuJgDreRZdSjdELEUqqCXFn8e0SLLzsnRZy03OBIwn+sPnwmt5D1x8UZ9/DA IkedgVbENr1IQbIRrhhiM/kphGofvRIA4fbavzanZILZfQNljyR/bLIpRFEbAfdaz1sl NBFslo7YGzXKokekHecA5v9axbGUe2dWQFls9vgqGbD1pulm6Qfds1vRHkpk36EwEoG8 evtLa/GPZs62dFfOYPvtluueEkFpz7o6uWAACcR92c98e/lxYjrPbztHIfPrr3C8hDoT MrBOSt9Qx+EJ/FgBDM7UGVvLhVSn9jiBNc23pECC6vxKUFotHB1IJEnJVXGfoBDkUSwc wAcw== X-Gm-Message-State: AOJu0YyL0M+iJYEfAC3SU6Mr9gIM2DtwzrESq4Z4VhX3mdkU7FHHVGYb flk1ibI6nDdUGPp8dgY9G+xZ9j45PuY= X-Google-Smtp-Source: AGHT+IGv4fEmVCqznIVgKBKEtHrQfJqWqa69nAEGKfSS4RHdDZlSu4SEoyOyy1vAgGECiDx6dAjvFA== X-Received: by 2002:ac8:550f:0:b0:406:56cb:b617 with SMTP id j15-20020ac8550f000000b0040656cbb617mr8335752qtq.53.1694997724068; Sun, 17 Sep 2023 17:42:04 -0700 (PDT) Received: from localhost.localdomain (dsl-10-149-131.b2b2c.ca. [72.10.149.131]) by smtp.gmail.com with ESMTPSA id d8-20020a05620a166800b0076ceb5eb309sm2791563qko.74.2023.09.17.17.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 17:42:03 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 17 Sep 2023 20:41:52 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82c.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.60 X-Spam-Score: -4.60 X-Migadu-Queue-Id: A3AD3304E7 X-Migadu-Scanner: mx2.migadu.com X-TUID: c9xuGqYlHSpQ This series is the culmination of at least a day of effort tracking down the source of a module dependency cycle (!). The last commit adds some guidelines in the hope to avoid a repeat (perhaps 'lint' could be taught to automate these checks). Changes in v2: - Use mlambda for procedures - Fix ((make-avr-toolchain)) typo - Use mlambda for procedures Maxim Cournoyer (3): gnu: avr: Delay all cross compilation packages. gnu: embedded: Turn packages using top-level variables into procedures. doc: Add new 'Circular Module Dependencies' section. doc/contributing.texi | 56 ++ gnu/packages/avr-xyz.scm | 2 +- gnu/packages/avr.scm | 214 +++--- gnu/packages/axoloti.scm | 6 +- gnu/packages/embedded.scm | 1227 ++++++++++++++++++--------------- gnu/packages/raspberry-pi.scm | 2 +- 6 files changed, 838 insertions(+), 669 deletions(-) base-commit: fc1b4756e36857e66986a30a6652ee988f8f30fd -- 2.41.0