From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#26062: Spurious "environment variable may be needed" output Date: Sat, 18 Mar 2017 11:33:33 +0100 Message-ID: <87tw6qan7m.fsf@gnu.org> References: <87r3233brn.fsf@gmail.com> <87tw6sgrjh.fsf@inria.fr> <87h92rej69.fsf@gmail.com> 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]:43785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpBgU-0001f8-3S for bug-guix@gnu.org; Sat, 18 Mar 2017 06:34:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpBgQ-0003Vz-5C for bug-guix@gnu.org; Sat, 18 Mar 2017 06:34:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35069) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cpBgQ-0003Vv-1e for bug-guix@gnu.org; Sat, 18 Mar 2017 06:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cpBgP-00058b-Sk for bug-guix@gnu.org; Sat, 18 Mar 2017 06:34:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87h92rej69.fsf@gmail.com> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Ba\?\= \=\?utf-8\?Q\?y\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Fri, 17 Mar 2017 21:34:54 +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: "Taylan Ulrich \"=?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=\"" Cc: 26062@debbugs.gnu.org Hi! taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") skribis: > 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. Oh, good catch! > FWIW, it overrides it with the following (split for readability): > > "/gnu/store/f4pw2jr2ial53awa34rjj3wb4b4k3nag-guile-json-0.6.0/share/guile= /site/2.0: > /gnu/store/y9k9l62cf8hhr5m3np3756swrbxws0dl-guile-ssh-0.10.2/share/guile/= site/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'. Above the =E2=80=98wrap-program=E2=80=99 call, there=E2=80=99s this comment: ;; Ignore user settings so that a bogus ;; GUILE_LOAD_COMPILED_PATH does not prevent use of ;; 'guix', notably when it contains entries pointing to ;; incompatible .go files as reported at ;; . Since 2.0.12, Guile skips invalid .go files, so this problem is gone. So I think you can go ahead and change '=3D to 'prefix there. Thanks! Ludo=E2=80=99.