all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: bug-guix@gnu.org
Subject: Re: [PATCH] gnu: tcl: Avoid a circular dependency.
Date: Wed, 05 Jun 2013 23:36:32 +0200	[thread overview]
Message-ID: <87y5aow87z.fsf@gnu.org> (raw)
In-Reply-To: <87r4ggd8oq.fsf@karetnikov.org> (Nikita Karetnikov's message of "Wed, 05 Jun 2013 16:49:09 +0400")

Nikita Karetnikov <nikita@karetnikov.org> 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	other threads:[~2013-06-05 21:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 12:49 [PATCH] gnu: tcl: Avoid a circular dependency Nikita Karetnikov
2013-06-05 21:36 ` Ludovic Courtès [this message]
2013-06-05 22:05   ` Ludovic Courtès
2013-06-07  3:59     ` Nikita Karetnikov
2013-06-07 13:00       ` Ludovic Courtès
2013-06-07 14:06         ` Nikita Karetnikov
2013-06-07 16:05           ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5aow87z.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guix@gnu.org \
    --cc=nikita@karetnikov.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.