Re: Binary substituter

2013-04-26 Thread Ludovic Courtès
Andreas Enge andr...@enge.fr skribis:

 Am Donnerstag, 25. April 2013 schrieb Ludovic Courtès:
 I believe that commit 1c9e7d6 partly solves that.  That is, if you
 ‘rm -rf /nix/var/nix/substitute-binary/’, and then run
 ‘guix build hello -n’, it should report things that it would download.

 Yes, it tells it will download hello. And the cache directory is filled 
 with data containing the urls of packages to download.

Good.

 However, if you type ‘guix build hello’, it will barf in ‘filtered-port’
 when trying to actually download the thing.

 Maybe. Here is the output:

 the following file will be downloaded:
/nix/store/w2121wnp8xv3ycjsgj3ymhb147mrgpc9-hello-2.8
 @ substituter-started /nix/store/w2121wnp8xv3ycjsgj3ymhb147mrgpc9-hello-2.8 
 /usr/local/guix-git/libexec/guix/substitute-binary
 guix substitute-binary: warning: using Guile 2.0.5-deb+1-3, which does not 
 support HTTP () encoding
 guix substitute-binary: error: download failed; use a newer Guile

Oh, it’s not failing where I was expecting.

Hmm, I see no easy workaround for this one.  Mark?

 @ substituter-failed /nix/store/w2121wnp8xv3ycjsgj3ymhb147mrgpc9-hello-2.8 
 256 fetching path `/nix/store/w2121wnp8xv3ycjsgj3ymhb147mrgpc9-hello-2.8' 
 failed with exit code 1
 guix build: error: build failed: some substitutes for the outputs of 
 derivation `/nix/store/7b51j955338q2kxj3ssvly0i2pw20z7q-hello-2.8.drv' 
 failed; try `--fallback'

 Adding --fallback leads to an error message about an unrecognised option.

Yes, it’s actually a ‘nix-store’ option.  We should add that option.

Thanks for testing!

Ludo’.



Re: Binary substituter

2013-04-23 Thread Ludovic Courtès
Nikita Karetnikov nik...@karetnikov.org skribis:

 I suppose it shouldn't fail like this:

Indeed.  :-)

 # ./pre-inst-env guix package -i gnutls
 accepted connection from pid 23127, uid 0
 The following package will be installed:
gnutls-3.1.9.1 
 /nix/store/7k65yjwz4xs6vfyqggi77lbacj5hwcz7-gnutls-3.1.9.1

 guix package: error: build failed: substituter 
 `/home/guix-test/nix/scripts/substitute-binary' failed: Backtrace:
 In ice-9/boot-9.scm:
  157: 9 [catch #t #catch-closure 9258ef0 ...]
 In unknown file:
?: 8 [apply-smob/1 #catch-closure 9258ef0]
 In ice-9/boot-9.scm:
   63: 7 [call-with-prompt prompt0 ...]
 In ice-9/eval.scm:
  432: 6 [eval # #]
 In ice-9/boot-9.scm:
 2320: 5 [save-module-excursion #procedure 91a3e80 at ice-9/boot-9.scm:3961:3 
 ()]
 3966: 4 [#procedure 91a3e80 at ice-9/boot-9.scm:3961:3 ()]
 In unknown file:
?: 3 [load-compiled/vm 
 /root/.cache/guile/ccache/2.0-LE-4-2.0/home/guix-test/scripts/guix.go]
 In guix/ui.scm:
  403: 2 [guix-main /home/guix-test/scripts/guix substitute-binary 
 --query]
 In guix/scripts/substitute-binary.scm:
  422: 1 [guix-substitute-binary --query]
 In ice-9/threads.scm:
   99: 0 [loop (#)]

 ice-9/threads.scm:99:22: In procedure loop:
 ice-9/threads.scm:99:22: In procedure string-append: Wrong type (expecting 
 string): #f

Unfortunately, the backtrace isn’t helpful because of threads, and I
can’t reproduce it.

Could you replace ‘par-map’ with ‘map’ and try again?

You can also add ‘pk’ calls in ‘lookup-narinfo’ and similar to get more
details.

TIA,
Ludo’.



Re: Binary substituter

2013-04-19 Thread Andreas Enge
Am Donnerstag, 18. April 2013 schrieb Ludovic Courtès:
 Basically 90% of the packages from either branch.  See
 http://hydra.gnu.org:3000/eval/692?full=1 for master, for instance.

It definitely does not work for me.
   guix build attr
in master builds
   /nix/store/mwrk9wcwwzji8xqh5pr7a5ksicyb70f3-attr-2.4.46
which is available in hydra, see
   http://hydra.gnu.org:3000/build/6991

Do I need to do anything special to activate binary packages?

Andreas



Re: Binary substituter

2013-04-19 Thread Andreas Enge
Am Donnerstag, 18. April 2013 schrieb Ludovic Courtès:
 And guess what: until commit ea0ee75 (right now), the substituter
 mechanism was actually disabled in the installed daemon.
 
 Now it should really be enabled.  :-)

PS: I am using the later commit 6858f9d13217b14eeeacede9c42a279468242891 
without success.



Re: Binary substituter

2013-04-19 Thread Ludovic Courtès
Andreas Enge andr...@enge.fr skribis:

 Am Donnerstag, 18. April 2013 schrieb Ludovic Courtès:
 Basically 90% of the packages from either branch.  See
 http://hydra.gnu.org:3000/eval/692?full=1 for master, for instance.

 It definitely does not work for me.
guix build attr

What’s the output of that command?

Are you sure you run the daemon from yesterday?

What’s in /nix/var/nix/substitute-binary/cache?  (Adjust according to
your $localstatedir.)

 in master builds
/nix/store/mwrk9wcwwzji8xqh5pr7a5ksicyb70f3-attr-2.4.46
 which is available in hydra, see
http://hydra.gnu.org:3000/build/6991

 Do I need to do anything special to activate binary packages?

No.

Thanks for testing!

Ludo’.



Re: Binary substituter

2013-04-18 Thread Ludovic Courtès
Nikita Karetnikov nik...@karetnikov.org skribis:

 Please test!

 It should only work for x86_64, right?

Currently yes.

Ludo’.



Re: Binary substituter

2013-04-18 Thread Ludovic Courtès
Andreas Enge andr...@enge.fr skribis:

 Am Mittwoch, 17. April 2013 schrieb Ludovic Courtès:
 And with commit dd36b51, ‘guix build’  co. report what will be
 downloaded in addition to what will be built.
 
 Please test!

 Do you have an example of a package that should be downloaded? I tried 
 hello, and it is still build locally.

Basically 90% of the packages from either branch.  See
http://hydra.gnu.org:3000/eval/692?full=1 for master, for instance.

Ludo’.



Re: Binary substituter

2013-04-16 Thread Ludovic Courtès
And with commit dd36b51, ‘guix build’  co. report what will be
downloaded in addition to what will be built.

Please test!

Ludo’.