unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Cyril Roelandt <tipecaml@gmail.com>
Cc: bug-guix@gnu.org
Subject: Re: [PATCH] zlib: bump to 1.2.8.
Date: Wed, 05 Jun 2013 09:31:30 +0200	[thread overview]
Message-ID: <878v2p3tf1.fsf@gnu.org> (raw)
In-Reply-To: <51AE84DD.2050507@gmail.com> (Cyril Roelandt's message of "Wed, 05 Jun 2013 02:22:53 +0200")

[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]

Cyril Roelandt <tipecaml@gmail.com> skribis:

> On 06/04/2013 09:10 AM, Ludovic Courtès 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/i35q1vm2sl27sjhs7mx8n2m05056ya9x
> (narinfo (version 0) (date 1370389238) (value #f))

OK, so that’s a negative cache–i.e., it cached the fact that there is no
substitute available.

>> If it’s there and has (value #f), which means that it’s a negative
>> cached lookup, can you remove it and try again ‘guix build -S
>> subversion’?
>
> # rm
> /usr/local/var/nix/substitute-binary/cache/i35q1vm2sl27sjhs7mx8n2m05056ya9x
>
> 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.tar.bz2 | \
    sudo ./pre-inst-env guix substitute-binary --query

(This is how the daemon invokes the substituter.)

BTW, I assume that ‘make check’ passes, right?

Thanks,
Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 574 bytes --]

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) "/"

      reply	other threads:[~2013-06-05  7:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23  1:54 [PATCH] zlib: bump to 1.2.8 Cyril Roelandt
2013-05-23 12:03 ` Ludovic Courtès
2013-05-23 14:52   ` Cyril Roelandt
2013-05-23 15:19     ` Ludovic Courtès
2013-05-25 20:56       ` Cyril Roelandt
2013-05-25 21:08         ` [PATCH] zlib: Add a sourceforge mirror Cyril Roelandt
2013-05-25 21:23           ` Ludovic Courtès
2013-05-26 20:00         ` [PATCH] zlib: bump to 1.2.8 Ludovic Courtès
2013-05-28 20:41           ` Cyril Roelandt
2013-05-28 21:55             ` Ludovic Courtès
2013-06-04  0:13               ` Cyril Roelandt
2013-06-04  7:10                 ` Ludovic Courtès
2013-06-05  0:22                   ` Cyril Roelandt
2013-06-05  7:31                     ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878v2p3tf1.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guix@gnu.org \
    --cc=tipecaml@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).