guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Circular dependencies in gnu/packages, weird error message


From: Ludovic Courtès
Subject: Re: Circular dependencies in gnu/packages, weird error message
Date: Fri, 04 Nov 2016 15:37:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hi,

Danny Milosavljevic <address@hidden> skribis:

> I cannot import (gnu packages cross-base) in (gnu packages admin) (it gave an 
> incomprehensible-to-me error message [*]). What could be the cause?

Some (gnu packages …) modules were referring to bindings from other
modules at the top level, which doesn’t play well with circular module
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 
> reformat them into Makefile rules. This allowed me to find all the circular 
> dependencies between the modules in gnu/packages.

Fun hack.  :-)

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]