From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Gerber Subject: bug#34590: Effects of GUIX_PACKAGE_PATH and --load-path differ Date: Wed, 06 Mar 2019 15:43:41 +0100 Message-ID: <87h8cg3vxe.fsf@atufi.org> References: <8736oivj6s.fsf@atufi.org> <87lg1si0n0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:48674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Xl9-0008Rc-Fz for bug-guix@gnu.org; Wed, 06 Mar 2019 09:43:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1Xl8-0001hz-MF for bug-guix@gnu.org; Wed, 06 Mar 2019 09:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48566) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1Xl8-0001hn-IL for bug-guix@gnu.org; Wed, 06 Mar 2019 09:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h1Xl8-0006eY-BL for bug-guix@gnu.org; Wed, 06 Mar 2019 09:43:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87lg1si0n0.fsf@gnu.org> 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: 34590@debbugs.gnu.org Hi, 2019-03-06, Ludovic Court=C3=A8s:=20 > However, what do /gnu/guix-local-packages/ contain? I suppose=20 > it provides node@11.10.0?=20 Yes, it provides node@11.10.0 *plus* its dependency libuv@1.26.0.=20 $ tree /gnu/guix-local-packages/ /gnu/guix-local-packages/ =E2=94=9C=E2= =94=80=E2=94=80=20 gnu =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 packages =E2=94=82= =C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 libevent.scm =E2=94=82=C2=A0= =C2=A0 =E2=94=94=E2=94=80=E2=94=80=20 node.scm =E2=94=94=E2=94=80=E2=94=80 node-llhttp.patch=20 =20 > Then my guess is that =E2=80=9Cnode@11.10.0=E2=80=9D is ambiguous and tha= t=20 > =E2=80=98specification->package=E2=80=99 chooses one of the two in a=20 > non-deterministic fashion.=20 >=20 > Can you show the output of:=20 >=20 > guix package -A node guix package -A node -L=20 > /gnu/guix-local-packages=20 > GUIX_PACKAGE_PATH=3D/gnu/guix-local-packages guix package -A=20 > node=20 $ guix package -A '^(node|libuv)' libuv 1.24.0 out=20 gnu/packages/libevent.scm:125:2 libuv 1.19.2 out=20 gnu/packages/libevent.scm:159:2 node 9.11.1 out=20 gnu/packages/node.scm:46:2 node-lts 8.12.0 out=20 gnu/packages/node.scm:202:2=20 =20 $ guix package -A '^(node|libuv)' -L /gnu/guix-local-packages=20 ;;; note: source file=20 /gnu/guix-local-packages/gnu/packages/libevent.scm ;;;=20 newer than compiled=20 /gnu/store/l6wkk4kzhvkg014slv3plx513cgxqx6h-guix-module-union/lib/guile/2= .2/site-ccache/gnu/packages/libevent.go=20 ;;; note: source file=20 /gnu/guix-local-packages/gnu/packages/node.scm ;;; newer=20 than compiled=20 /gnu/store/l6wkk4kzhvkg014slv3plx513cgxqx6h-guix-module-union/lib/guile/2= .2/site-ccache/gnu/packages/node.go=20 libuv 1.19.2 out=20 /gnu/guix-local-packages/gnu/packages/libevent.scm:159:2 libuv=20 1.26.0 out=20 /gnu/guix-local-packages/gnu/packages/libevent.scm:125:2 node=20 11.10.0 out=20 /gnu/guix-local-packages/gnu/packages/node.scm:46:2 node-lts=20 8.12.0 out=20 /gnu/guix-local-packages/gnu/packages/node.scm:185:2=20 =20 $ GUIX_PACKAGE_PATH=3D/gnu/guix-local-packages guix package -A=20 '^(node|libuv)' ;;; note: source file=20 /gnu/guix-local-packages/gnu/packages/libevent.scm ;;;=20 newer than compiled=20 /gnu/store/l6wkk4kzhvkg014slv3plx513cgxqx6h-guix-module-union/lib/guile/2= .2/site-ccache/gnu/packages/libevent.go=20 ;;; note: source file=20 /gnu/guix-local-packages/gnu/packages/node.scm ;;; newer=20 than compiled=20 /gnu/store/l6wkk4kzhvkg014slv3plx513cgxqx6h-guix-module-union/lib/guile/2= .2/site-ccache/gnu/packages/node.go=20 libuv 1.26.0 out=20 /gnu/guix-local-packages/gnu/packages/libevent.scm:125:2 libuv=20 1.19.2 out=20 /gnu/guix-local-packages/gnu/packages/libevent.scm:159:2 node=20 11.10.0 out=20 /gnu/guix-local-packages/gnu/packages/node.scm:46:2 node-lts=20 8.12.0 out=20 /gnu/guix-local-packages/gnu/packages/node.scm:185:2=20 =20 I note the order of libuv packages varies, but versions are=20 correct. Also, should one worry about the "source newer than=20 compiled" messages? I presumed the cached .go files come from the=20 official channel, hence older than the sources in=20 /gnu/guix-local-packages. -- Daniel Gerber --