From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: bug#34679: --load-path does not work with guix environment Date: Wed, 27 Feb 2019 21:52:14 +0100 Message-ID: <63426bc6-57ef-0468-fa6d-5776deb92389@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz6CQ-00007A-Kg for bug-guix@gnu.org; Wed, 27 Feb 2019 15:53:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gz6CP-0007rA-Mr for bug-guix@gnu.org; Wed, 27 Feb 2019 15:53:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gz6CM-0007p2-Hi for bug-guix@gnu.org; Wed, 27 Feb 2019 15:53:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gz6CM-0004cu-Dz for bug-guix@gnu.org; Wed, 27 Feb 2019 15:53:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:42587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz6Bn-0008WL-Ht for bug-guix@gnu.org; Wed, 27 Feb 2019 15:52:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gz6Bl-0007Br-0X for bug-guix@gnu.org; Wed, 27 Feb 2019 15:52:26 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:37418) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gz6Bj-0006tZ-4I for bug-guix@gnu.org; Wed, 27 Feb 2019 15:52:24 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 448ntS0YCnz1qwfP for ; Wed, 27 Feb 2019 21:52:15 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 448ntR6tltz1qsww for ; Wed, 27 Feb 2019 21:52:15 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ePwo3Nuo9E6g for ; Wed, 27 Feb 2019 21:52:15 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-83-171-170-220.dynamic.mnet-online.de [83.171.170.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Wed, 27 Feb 2019 21:52:14 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 1D81C600DE for ; Wed, 27 Feb 2019 21:54:10 +0100 (CET) Content-Language: en-US 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: 34679@debbugs.gnu.org According to the manual: |--load-path=3Ddirectory| Add directory *to the front* of the package module search path. This does not work for guix environment (guix 0.16.0-3.6ddc63e): Prepare to reproduce $ git clone https://gnunet.org/git/gnunet.git $ cd gnunet guix package honors --load-path: $ guix package --load-path=3D$PWD/contrib/guix -A gnunet [...] gnunet=C2=A0 v0.11.0pre66-1108-g8bb29d2fb=C2=A0=C2=A0=C2=A0 out=C2=A0=C2=A0= =C2=A0=C2=A0 .../contrib/guix/gnu/packages/gnunet.scm:274:2 [...] guix environment still installs gnunet 0.10.1 (which is defined in guix 0.16): $ guix environment --load-path=3D$PWD/contrib/guix --ad-hoc gnunet [guix]$ realpath $(which gnunet-arm) /gnu/store/...-gnunet-0.10.1/bin/gnunet-arm Using GUIX_PACKAGE_PATH the correct version of gnunet is installed into the environment: $ export GUIX_PACKAGE_PATH=3D$PWD/contrib/guix $ guix environment --ad-hoc gnunet [guix]$ realpath $(which gnunet-arm) /gnu/store/...-gnunet-v0.11.0pre66-1108-g8bb29d2fb/bin/gnunet-arm --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |