From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Subject: bug#26062: Spurious "environment variable may be needed" output Date: Fri, 17 Mar 2017 21:34:54 +0100 Message-ID: <87h92rej69.fsf@gmail.com> References: <87r3233brn.fsf@gmail.com> <87tw6sgrjh.fsf@inria.fr> 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]:53910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coyTm-0004hY-S8 for bug-guix@gnu.org; Fri, 17 Mar 2017 16:28:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coyTi-0000UH-3x for bug-guix@gnu.org; Fri, 17 Mar 2017 16:28:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34721) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1coyTi-0000U6-0j for bug-guix@gnu.org; Fri, 17 Mar 2017 16:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1coyTh-0000iJ-OB for bug-guix@gnu.org; Fri, 17 Mar 2017 16:28:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tw6sgrjh.fsf@inria.fr> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22\?\= \=\?utf-8\?Q\?'s\?\= message of "Fri, 17 Mar 2017 10:51:14 +0100") 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 26062@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello Taylan, > > taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") skribi= s: > >> taylan@T420:~$ guix package -r nano >> [... snip ...] >> 75 packages in profile >> The following environment variable definitions may be needed: >> export GUILE_LOAD_COMPILED_PATH=3D"/home/taylan/.guix-profile/lib/gui= le/2.0/site-ccache:/home/taylan/.guix-profile/share/guile/site/2.0${GUILE_L= OAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH" >> taylan@T420:~$ echo $GUILE_LOAD_COMPILED_PATH >> /home/taylan/.guix-profile/lib/guile/2.0/site-ccache:/home/taylan/.guix-= profile/share/guile/site/2.0 >> taylan@T420:~$=20 > > Weird, I don=E2=80=99t seem to have this problem. > > Could you add a few =E2=80=98pk=E2=80=99 in =E2=80=98search-path-environm= ent-variables=E2=80=99 in (guix > scripts package) to see what=E2=80=99s happening? After some poking around, I found the issue; it's the following in the guix-0.12.0 recipe: (wrap-program (string-append out "/bin/guix") `("GUILE_LOAD_PATH" ":" prefix (,path)) `("GUILE_LOAD_COMPILED_PATH" ":" =3D (,path))) As you see, it sets GUILE_LOAD_COMPILED_PATH to an absolute value rather than prefixing it. So whenever I execute 'guix package ...' from the shell, the installed wrapper overrides my correct value of GUILE_LOAD_COMPILED_PATH with something insufficient. FWIW, it overrides it with the following (split for readability): "/gnu/store/f4pw2jr2ial53awa34rjj3wb4b4k3nag-guile-json-0.6.0/share/guile/s= ite/2.0: /gnu/store/y9k9l62cf8hhr5m3np3756swrbxws0dl-guile-ssh-0.10.2/share/guile/si= te/2.0: /gnu/store/iyvx2rpyndi3k7dzbl4jnv7k6ddkx88a-gnutls-3.5.8/share/guile/site/2= .0" Should the 'wrap-program' call simply use 'prefix' instead of '=3D'? I'm not sure if there's a reason it uses '=3D'. Taylan