From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6O57IGmdB2WQOAEAG6o9tA:P1 (envelope-from ) for ; Mon, 18 Sep 2023 02:44:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6O57IGmdB2WQOAEAG6o9tA (envelope-from ) for ; Mon, 18 Sep 2023 02:44:25 +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 68C145973F for ; Mon, 18 Sep 2023 02:44:25 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="S/kLYCpb"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694997865; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=G77VGTyTUSStty3lRb2ULl6KZpQ/rczhAkj/o3X02Jk=; b=cqNHT1BOn5fSsTn7+VTTGqvCTgcu/3Wdqaph7+QHIafbsObR70Mi/eVWvc7E3Scvlv0s+i BQOjXqsehwR1MkRfUr0qbE7l9NryTkrv70UYhnAKz1BFpnl8p174qT1e87Sl/er0a2l5NT 992+N0QBRZtwegh/SjXuOfWHdf1fSdvX5qYWBuqwZqXBdyNSKMbWP/13ine7CsvB71phM/ PGTY/3bX/f4uWLcg8qMZfpGx/0Ho8y5XpB1rA3PvC8NGvW6NCgFFX6SgeSNjvMLSwbqQgx GWh/OJ7i3XohMoEOicuOwtXRdUEuM8usFD4QVGFsEFkh6fDuP1virmaGvPi0aA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694997865; a=rsa-sha256; cv=none; b=frYswrZx+9WeXydZivzNQmyMWit0d4kzAu+7O10ZP3d2jpyh3088zSlJ5S98+YUJ3nOYsK yTGV9N0ysf7pE1tLuQq7X98HseQt5JcrP8x/BloIfa2MiEvgOK4qUcnwEJpfrGj5XJ0sEK mXtMB5O4jMP7qxAQombxnqO7EAHQI1m3haeK2h2lT/oPqp0bQS41FK/WxFPBnKCGWQHR3O ZJW15YN7cmxhFW8K2WIC5DSnmpZQVFuvhCIwHSK50D8zMZIe9FiBMVpYKQ0fyAHaI3Aw+u kWPTdqQJ3AKEHW9eRBRJJ8W9HZZVwdy/swSNfLiYYlTdLCCGyNI5zcmkrbW6fg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="S/kLYCpb"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qi2Mu-0003if-Rq; Sun, 17 Sep 2023 20:44:06 -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 1qi2Ml-0003hS-Fy for guix-patches@gnu.org; Sun, 17 Sep 2023 20:43: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 1qi2Mk-0000ze-Di; Sun, 17 Sep 2023 20:43:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qi2Ms-0001pA-8Q; Sun, 17 Sep 2023 20:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65860] [PATCH v2 0/3] Resolve a circular module dependencies in embedded modules References: In-Reply-To: Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Mon, 18 Sep 2023 00:44:02 +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: 65860@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 65860-submit@debbugs.gnu.org id=B65860.16949978266953 (code B ref 65860); Mon, 18 Sep 2023 00:44:02 +0000 Received: (at 65860) by debbugs.gnu.org; 18 Sep 2023 00:43:46 +0000 Received: from localhost ([127.0.0.1]:51663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qi2Mc-0001o5-GN for submit@debbugs.gnu.org; Sun, 17 Sep 2023 20:43:46 -0400 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]:55310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qi2Ma-0001nq-KN for 65860@debbugs.gnu.org; Sun, 17 Sep 2023 20:43:45 -0400 Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-412195b1e9aso27541591cf.2 for <65860@debbugs.gnu.org>; Sun, 17 Sep 2023 17:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694997811; x=1695602611; darn=debbugs.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=S/kLYCpbIGz3x0scMxxCrWYoJMe6oxu/KFy5I1lIKFZx56jBsuuEhbuShtBbZu0UNk s4hI/kBbdiZnYogl97kJRhZGLOKFOyYH1Z65J5Bbr1wcEycjWDGLbfjaQlT0OPRDWWYG Z8EJ2Sn+qm1BRX5oXm0u33xt2TwFn6ELMFuV3rFp7gdtHH24Sk5NWGyLldvJ90bX7ajR 0Y0hSA4dJ3jDhEudJvgfgr1SSm7iBqOLxLhhveb3+3lLKg39eVN1JOZ29GX/z48GLdkH OUbFdZSr7H2DO6uF0aTaWQsJrZlplxD9XNsMhm3HUQb1nuVCV1BfI4VrVptZFiB6xtfo FH2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694997811; x=1695602611; 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=EiDHcjhOeRuZGq4F46dZn4Dgjb/rc40rcOmoJlVpP+PliM12Nrqm9sCiiLeuKF1DJx god19H+XJFNdOJRtmNfsmfZaHvOmU0JSCix/76KpzMWGAQIgkGCG5pdD58T0WNletIj+ 4E3m2GYyUocBBq+8XzHhwm29R4iWjU0K5fLbixhm1fMUbzrkviC7yPlxZcv9sIuStI8C DOxYLrsWNJKizjZmhruzX4upkSIFcjrr6wz/fojxqqNVoKfg/Wai7QkJHcZjIkUgZJIp s1YEZnPY+lza1t1/nqcc5AYPuvFBETF0UHad27yqz1ehOp8ExXHnnWuuKNtEd5g7OiKs ez3A== X-Gm-Message-State: AOJu0Yy9mkt+lIDmT0TcR3nSs7VgyoSe2u5zm8kyozJpZ+SYv5jVFytC 6d2Sn7UeK2hmzxpeEU/0Gb1ZpnYRpOM= X-Google-Smtp-Source: AGHT+IEf6fvXtURYw5RSThkpcPS8qY38Ce8yLnKuJwB2+czK/Mv4iDosVAlQw28JP096qQ8XXxwcKw== X-Received: by 2002:ac8:5753:0:b0:412:d89:9572 with SMTP id 19-20020ac85753000000b004120d899572mr10340024qtx.9.1694997810828; Sun, 17 Sep 2023 17:43:30 -0700 (PDT) Received: from localhost.localdomain (dsl-10-149-131.b2b2c.ca. [72.10.149.131]) by smtp.gmail.com with ESMTPSA id cr8-20020a05622a428800b00403f1a7be90sm2662547qtb.88.2023.09.17.17.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 17:43:30 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 17 Sep 2023 20:43:07 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Yes X-Migadu-Spam-Score: 8.51 X-Spam-Score: 8.51 X-Migadu-Queue-Id: 68C145973F X-Migadu-Scanner: mx0.migadu.com X-Spam: Yes X-TUID: 9vdmBv+wrgGz 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