From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] zlib: bump to 1.2.8. Date: Wed, 05 Jun 2013 09:31:30 +0200 Message-ID: <878v2p3tf1.fsf@gnu.org> References: <1369274041-6981-1-git-send-email-tipecaml@gmail.com> <87vc69aoo0.fsf@gnu.org> <519E2D4B.5030408@gmail.com> <87vc697mh3.fsf@gnu.org> <51A12574.5060703@gmail.com> <87vc651pgx.fsf@gnu.org> <51A5167D.7070302@gmail.com> <877giiahx0.fsf@gnu.org> <51AD3146.9030206@gmail.com> <87ppw2cpwe.fsf@gnu.org> <51AE84DD.2050507@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uk8Gs-0003uj-Cv for bug-guix@gnu.org; Wed, 05 Jun 2013 03:36:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uk8Gn-00063B-PC for bug-guix@gnu.org; Wed, 05 Jun 2013 03:36:38 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:44316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uk8Gn-00062y-JQ for bug-guix@gnu.org; Wed, 05 Jun 2013 03:36:33 -0400 In-Reply-To: <51AE84DD.2050507@gmail.com> (Cyril Roelandt's message of "Wed, 05 Jun 2013 02:22:53 +0200") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Cyril Roelandt Cc: bug-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cyril Roelandt skribis: > On 06/04/2013 09:10 AM, Ludovic Court=C3=A8s wrote: >> Can you check whether you have >> /nix/var/nix/substitute-binary/cache/i35q1vm2sl27sjhs7mx8n2m05056ya9x, >> and what its value is (use the right $localstatedir value)? >> > > # cat > /usr/local/var/nix/substitute-binary/cache/i35q1vm2sl27sjhs7mx8n2m05056ya= 9x > (narinfo (version 0) (date 1370389238) (value #f)) OK, so that=E2=80=99s a negative cache=E2=80=93i.e., it cached the fact tha= t there is no substitute available. >> If it=E2=80=99s there and has (value #f), which means that it=E2=80=99s = a negative >> cached lookup, can you remove it and try again =E2=80=98guix build -S >> subversion=E2=80=99? > > # rm > /usr/local/var/nix/substitute-binary/cache/i35q1vm2sl27sjhs7mx8n2m05056ya= 9x > > Then I tried building subversion and got the same error. What are the contents of the above file now? Still (value #f)? Can you remove it, apply the patch below, and run: echo info /nix/store/i35q1vm2sl27sjhs7mx8n2m05056ya9x-subversion-1.7.8.ta= r.bz2 | \ sudo ./pre-inst-env guix substitute-binary --query (This is how the daemon invokes the substituter.) BTW, I assume that =E2=80=98make check=E2=80=99 passes, right? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/scripts/substitute-binary.scm b/guix/scripts/substitute-binary.scm index 13c3828..786193a 100755 --- a/guix/scripts/substitute-binary.scm +++ b/guix/scripts/substitute-binary.scm @@ -238,7 +238,7 @@ reading PORT." (define (download url) ;; Download the .narinfo from URL, and return its contents as a list of ;; key/value pairs. - (false-if-exception (fetch (string->uri url)))) + (fetch (string->uri url))) (and (string=? (cache-store-directory cache) (%store-prefix)) (and=> (download (string-append (cache-url cache) "/" --=-=-=--