From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: (Geiser or guile bug) Guix-daemon output is missing Date: Mon, 07 Sep 2015 22:58:42 +0300 Message-ID: <87k2s22e8d.fsf@gmail.com> References: <87d1xvx6lb.fsf@gmail.com> <87lhcj44qc.fsf@gnu.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]:33045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ2Z0-0004ly-AW for guix-devel@gnu.org; Mon, 07 Sep 2015 15:58:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZ2Yv-0000TD-Ce for guix-devel@gnu.org; Mon, 07 Sep 2015 15:58:50 -0400 In-Reply-To: <87lhcj44qc.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 06 Sep 2015 23:28:43 +0200") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2015-09-07 00:28 +0300) wrote: > Alex Kost 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-=E2=80=A6" >> command). This is important: do not ,use module in the REPL; >> evaluate =E2=80=98use-modules=E2=80=99 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: =E2=80=A6" but the= re is no >> build output from guix-daemon. > > Ha ha! Try this before: > > (current-build-output-port (current-error-port)) > > The trick here is that =E2=80=98current-build-output-port=E2=80=99 is ini= tialized to > (current-error-port), but that initialization happens at the top-level, > apparently before Geiser has rebound =E2=80=98current-error-port=E2=80=99= , hence the > silence. > > HTH! Thanks for answering! This helped to make a simple recipe, so I reported it: . --=20 Alex