From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Circular dependencies in gnu/packages, weird error message Date: Fri, 04 Nov 2016 15:37:52 +0100 Message-ID: <871syr1fb3.fsf@gnu.org> References: <20161104022451.4c7690eb@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2fd1-0000v8-9G for guix-devel@gnu.org; Fri, 04 Nov 2016 10:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2fcy-0000DL-4E for guix-devel@gnu.org; Fri, 04 Nov 2016 10:37:59 -0400 In-Reply-To: <20161104022451.4c7690eb@scratchpost.org> (Danny Milosavljevic's message of "Fri, 4 Nov 2016 02:24:51 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org Hi, Danny Milosavljevic skribis: > I cannot import (gnu packages cross-base) in (gnu packages admin) (it gav= e an incomprehensible-to-me error message [*]). What could be the cause? Some (gnu packages =E2=80=A6) modules were referring to bindings from other modules at the top level, which doesn=E2=80=99t play well with circular mod= ule dependencies. Commits fb77c61422ae2d03c0bf655d96b0e88f5f8001da and bd2e1a8cb07088bdc54b9bb05d9b2e99f78e5b28 work around that. You should now be able to add #:use-module (gnu packages cross-base) in admin.scm. > Since I speculated maybe circular dependencies are the cause (?), I wrote= a quick one-off script to find define-module and #:use-module forms and re= format them into Makefile rules. This allowed me to find all the circular d= ependencies between the modules in gnu/packages. Fun hack. :-) Thanks, Ludo=E2=80=99.