From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wMNSLhCBXmLahwAAbAwnHQ (envelope-from ) for ; Tue, 19 Apr 2022 11:29:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MNmCLRCBXmJNnAAAG6o9tA (envelope-from ) for ; Tue, 19 Apr 2022 11:29:52 +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 021B929754 for ; Tue, 19 Apr 2022 11:29:52 +0200 (CEST) Received: from localhost ([::1]:54606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngkBC-0000e3-E3 for larch@yhetil.org; Tue, 19 Apr 2022 05:29:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngjzm-00069U-Vb for guix-patches@gnu.org; Tue, 19 Apr 2022 05:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngjzm-0001Et-DM for guix-patches@gnu.org; Tue, 19 Apr 2022 05:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngjzm-0004VL-6x for guix-patches@gnu.org; Tue, 19 Apr 2022 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54539] [PATCH 0/6] Start breaking up import cycles Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 54539@debbugs.gnu.org Received: via spool by 54539-submit@debbugs.gnu.org id=B54539.165035985217278 (code B ref 54539); Tue, 19 Apr 2022 09:18:02 +0000 Received: (at 54539) by debbugs.gnu.org; 19 Apr 2022 09:17:32 +0000 Received: from localhost ([127.0.0.1]:41641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngjzI-0004Uc-1E for submit@debbugs.gnu.org; Tue, 19 Apr 2022 05:17:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngjzG-0004UQ-78 for 54539@debbugs.gnu.org; Tue, 19 Apr 2022 05:17:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngjz8-0001DV-EW; Tue, 19 Apr 2022 05:17:23 -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=KWtANY4VJxYv0cT8tmfgOwgpB43ucBfXS+dZ0Y2F5AQ=; b=L22VkSfAwqqVsQ3XKX1j 4wc8HNKb5J3sde3znyx00fRpjNwUSUaMrM3nxAb8H5/nOEuzH36bp2xvG32Ovya+z++NbYxC+S9Ou fNCMwt2/cquO+lxTQ5X5slyJFIUhgGcftZUXzSH/B0A+N9lehlqCHJNLbknjawa33hXH8agAMc2nm CikPR/uo5gEGe2Lf5F47LmPWHkfNxLr8H/2OR2yacF8+zDfYsdPTh01YnoY9eKxKdKvXlfOWJBYYh RMum7bwu93g1RtJ7rwHXqEKrgRSwB4jCN8UnbIffNqWJ694ectDqyAjEHDon1D9uB8wHVEZDjpzCv SLW8ywfuQG8Qzw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=48934 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngjz6-0002MB-J4; Tue, 19 Apr 2022 05:17:22 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <5a87d6f772ff7424cb6fccea7c45276bef7797aa.camel@telenet.be> Date: Tue, 19 Apr 2022 11:17:18 +0200 In-Reply-To: <5a87d6f772ff7424cb6fccea7c45276bef7797aa.camel@telenet.be> (Maxime Devos's message of "Wed, 23 Mar 2022 19:46:57 +0100") Message-ID: <875yn5totd.fsf@gnu.org> 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: 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650360592; 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=KWtANY4VJxYv0cT8tmfgOwgpB43ucBfXS+dZ0Y2F5AQ=; b=fFEL3smdE6aSIvtYGFXRo9RH67PedqZkalHQigppyL3SVyNgQtvkv6qPq7RnYJE6fV73Wy ygkkPOkrToJ5Ys7kq7p+oOBGZQIX0uc19nkI7DTwZrFyMQCpFPuzhYTLRnF6y1qD3/Tmt2 16hL1MlKZBhfaOoAead3WqjgmG3U0tNe60Ku4uNxJUNkj2hTAC5FpHKlhtCCbjoKo0u7iA TZAaqo7XW3wFOtooiMmv2DCtOFev1L3/SbaPKiF7qJBIghYx2adqVSL/3O9gxaOwoNfWmJ 2M+j75j7RCR/aJ29czaJX3shnRZ/Keh2Dme6lgZA6SmXLmUuQXjtilvm3uCplg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650360592; a=rsa-sha256; cv=none; b=kwB2TTc0OsqvjhE6CGsb9NIqNA8cTgpvAKFZYM4SthFSEe1O1UQRschfIa7TDSXkbFz7o6 gmQooeDnUug9IUZH40jCrmvojNsJadHNUk/1gdccErjyVfmSbKc0cjQXolhcRA32avtev0 w7lZYR8GISHrnICzHgXzPw/VN3h36wrbrq0QSAmeIFNnMtmhkJ2n5/LqafY0Wqn2f0C6yV yc3egR5EROoM5Ta7JzaxiKfwf1TV56e34KoXlxpjQu+13uYvXm72V3CR8zXKXYjTh4eKKz m8BGJSVZMSXgEzO56/7luFuKHGy+GGZc8CfWbBe+mpf7eZddN1oP/eGgBEM1WQ== 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=L22VkSfA; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -3.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=L22VkSfA; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 021B929754 X-Spam-Score: -3.94 X-Migadu-Scanner: scn1.migadu.com X-TUID: J67m2fnybMC6 Hi Maxime, Maxime Devos skribis: > Import cycles make some packaging things harder and prevent some > proposed optimisations to "guix pull", let's start eliminating them. > TBC ... Sorry for the late reply. Some of the changes you propose may make sense (and should be applied), but we shouldn=E2=80=99t overplay the role of such changes. If you follow the logic, breaking up import cycles would mean, in the end, having one file per package. But would that be enough? Probably not, because low-level packages are bound to depend on high-level packages=E2=80=94e.g., glibc depends on Pytho= n, some other low-level tool might depend on Pandoc (GHC), librsvg depends on Rust, and so on. IOW, since the graph of build dependency really is a graph, and not a tree, there=E2=80=99ll always be import cycles. (guix self), the module that =E2=80=98guix pull=E2=80=99 uses, already auto= matically splits package modules into two groups. It=E2=80=99s not as modular as we= =E2=80=99d like, but it=E2=80=99s a start. What would be useful is to come up with me= trics and tools to reduce the closure of the =E2=80=9Cguix-packages-base=E2=80=9D= group. WDYT? Thanks, Ludo=E2=80=99.