bug-guix
[Top][All Lists]
Advanced

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

Re: [PATCH] gnu: tcl: Avoid a circular dependency.


From: Ludovic Courtès
Subject: Re: [PATCH] gnu: tcl: Avoid a circular dependency.
Date: Wed, 05 Jun 2013 23:36:32 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Nikita Karetnikov <address@hidden> skribis:

> You'll get the following error if you run 'git pull && make clean &&
> make'.  Feel free to push if the patch is OK.

Arrgh, good catch.

This is getting annoying.  I will instead push something along these
lines shortly:

--8<---------------cut here---------------start------------->8---
diff --git a/guix/packages.scm b/guix/packages.scm
index 4f8d87e..bb46131 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -147,7 +147,7 @@ corresponds to the arguments expected by 
`set-path-environment-variable'."
   (inputs package-inputs                  ; input packages or derivations
           (default '()) (thunked))
   (propagated-inputs package-propagated-inputs    ; same, but propagated
-                     (default '()))
+                     (default '()) (thunked))
   (native-inputs package-native-inputs    ; native input packages/derivations
                  (default '()) (thunked))
   (self-native-input? package-self-native-input?  ; whether to use itself as
--8<---------------cut here---------------end--------------->8---

That will allow us to have circular dependencies among modules.

This is because Guile supports this:

  (define-module (a) #:use-module (b) #:export (foo))
  (define (foo) (bar))

and

  (define-module (b) #:use-module (a) #:export (bar))
  (define (bar) (foo))

... but not if ‘foo’ or ‘bar’ were directly referring to each other at
the top level, as in (define foo bar).

Thanks,
Ludo’.



reply via email to

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