From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23475: no code for module (guix ui) Date: Sun, 08 May 2016 18:10:10 +0200 Message-ID: <87k2j45y59.fsf@gnu.org> References: <20160507025936.GA25173@jasmine> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azRIR-0005Pd-NU for bug-guix@gnu.org; Sun, 08 May 2016 12:11:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azRIM-0001h3-JQ for bug-guix@gnu.org; Sun, 08 May 2016 12:11:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azRIM-0001gx-Gf for bug-guix@gnu.org; Sun, 08 May 2016 12:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1azRIM-0003Ms-Am for bug-guix@gnu.org; Sun, 08 May 2016 12:11:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160507025936.GA25173@jasmine> (Leo Famulari's message of "Fri, 6 May 2016 22:59:36 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Leo Famulari Cc: 23475@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Leo Famulari skribis: > I had rebuilt from the git tree recently, but I'm not sure exactly when. > > It goes away after I rebuild. > > --- > $ ./pre-inst-env guix build hello > Backtrace:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 > In ice-9/boot-9.scm: > 157: 12 [catch #t # ...] > In unknown file: > ?: 11 [apply-smob/1 #] > In ice-9/boot-9.scm: > 63: 10 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 9 [eval # #] > In ice-9/boot-9.scm: > 2401: 8 [save-module-excursion #] > 4050: 7 [#] > 1724: 6 [%start-stack load-stack ...] > 1729: 5 [#] > In unknown file: > ?: 4 [primitive-load "/gnu/store/9p7mf2a21c6a5k06jgbb9yg9abx7ilh9-guix= -0.10.0-0.8062/bin/.guix-real"] Why is this file being loaded, instead of scripts/guix? Could it be that scripts/guix was missing at that time? Maybe it would be wise to apply a patch as attached to prevent such situations from arising. WDYT? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable --- a/build-aux/pre-inst-env.in +++ b/build-aux/pre-inst-env.in @@ -1,7 +1,7 @@ #!/bin/sh =20 # GNU Guix --- Functional package management for GNU -# Copyright =C2=A9 2012, 2013, 2014, 2015 Ludovic Court=C3=A8s +# Copyright =C2=A9 2012, 2013, 2014, 2015, 2016 Ludovic Court=C3=A8s # # This file is part of GNU Guix. # @@ -68,4 +68,11 @@ export NIX_HASH GUIX_UNINSTALLED=3D1 export GUIX_UNINSTALLED =20 +guix=3D"$abs_top_builddir/scripts/guix" +if [ ! -x "$guix" ] +then + echo "'$guix' is missing, please run 'make'." >&2 + exit 1 +fi + exec "$@" --=-=-=--