[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (Geiser or guile bug) Guix-daemon output is missing
From: |
Ludovic Courtès |
Subject: |
Re: (Geiser or guile bug) Guix-daemon output is missing |
Date: |
Sun, 06 Sep 2015 23:28:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Alex Kost <address@hidden> skribis:
> Now the bug itself:
>
> 1. Start Geiser (M-x run-guile)
>
> 2. Make a scheme buffer and evaluate (use-modules (guix scripts build))
> there using "C-x C-e" or "C-M-x" (or any other "geiser-eval-…"
> command). This is important: do not ,use module in the REPL;
> evaluate ‘use-modules’ clause in a scheme buffer!
>
> 3. Go to the REPL and run the following there:
>
> (catch 'quit (lambda () (guix-build "test-package")) (const #t)).
>
> You get only "The following derivation will be built: …" but there is no
> build output from guix-daemon.
Ha ha! Try this before:
(current-build-output-port (current-error-port))
The trick here is that ‘current-build-output-port’ is initialized to
(current-error-port), but that initialization happens at the top-level,
apparently before Geiser has rebound ‘current-error-port’, hence the
silence.
HTH!
Ludo’.