From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Subject: bug#32245: Guix does not search sources locally by hash Date: Mon, 23 Jul 2018 11:50:53 +0200 Message-ID: <20180723115053.67423d42@alma-ubu> References: <20180722115607.1eea6917@alma-ubu> <877elmuyxh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/ZnU2l4dFxC4_V51OVqepGn7"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhXUe-0001l1-JA for bug-guix@gnu.org; Mon, 23 Jul 2018 05:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhXUd-0002e8-Mp for bug-guix@gnu.org; Mon, 23 Jul 2018 05:51:04 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhXUd-0002dz-IU for bug-guix@gnu.org; Mon, 23 Jul 2018 05:51:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fhXUb-0002rZ-M6 for bug-guix@gnu.org; Mon, 23 Jul 2018 05:51:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <877elmuyxh.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: 32245@debbugs.gnu.org --Sig_/ZnU2l4dFxC4_V51OVqepGn7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 23 Jul 2018 10:41:14 +0200 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Hi, >=20 > Bj=C3=B6rn H=C3=B6fling skribis: >=20 > > $> ./pre-inst-env guix build java-eclipse > > [..] > > @ > > build-started /gnu/store/lqfw971srfifgql68ibdgh58vi4d8fq3-java-eclipse-= oxygen-3a-linux-gtk-x86_64.tar.gz.drv > > - > > x86_64-linux /var/log/guix/drvs/lq//fw971srfifgql68ibdgh58vi4d8fq3-java= -eclipse-oxygen-3a-linux-gtk-x86_64.tar.gz.drv.bz2 >=20 > [...] >=20 > > But it does NOT search locally. Because I already have: > > > > guix > > hash /gnu/store/56h6snwcawpzk6rhcwgk442wsx6k86q2-eclipse-java-oxygen-3a= -linux-gtk-x86_64.tar.gz > > 0m7y7jfm059w01x9j5b5qkinjjmhkyygpjabhjf19fg2smxmwcim >=20 > It does, but the file name matters. In this case what you have is > =E2=80=9Ceclipse-java-=E2=80=A6=E2=80=9D but you=E2=80=99re trying to bui= ld =E2=80=9Cjava-eclipse-=E2=80=A6=E2=80=9D. >=20 > So you first need to add the file to the store under its expected > name. You can do that for instance with: >=20 > guix download file://=E2=80=A6/java-eclipse-=E2=80=A6 >=20 > HTH! Not sure yet. I havent't tried it yet, but I'm sure your solution helps with the specific problem here. (Also updating the URL helps even better :-)) What I feel strange here is: * When the file is already on the local disk, it has to match a certain file name criteria. Quite hard criteria. * But when asking outside repositories over the network, we just "take anything that has the hashsum". Is that wanted behaviour?=20 Bj=C3=B6rn --Sig_/ZnU2l4dFxC4_V51OVqepGn7 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAltVpP4ACgkQvyhstlk+X/1sjACePjPgdVtwt5gGd93/nRAPtvOo JDIAnjJpFlxD8iKMFngh5ffo7loW8AW9 =D49w -----END PGP SIGNATURE----- --Sig_/ZnU2l4dFxC4_V51OVqepGn7--