Re: New “guix refresh” command

2013-06-02 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: >> + #:use-module (ice-9 optargs) > > This module is not needed (it’s for command-line argument processing.) Sorry, I just realized my mistake: (ice-9 optargs) was indeed for #:key, #:optional, and #:rest handling, but it no longer needs to be imported wit

Re: New “guix refresh” command

2013-06-01 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> That could be done by changing ‘gnupg-verify*’. An optional argument >> could be added to select between interactive behavior (“do you want to >> download this key and add it to your keyring?”), always-download, and >> never-download. > > I'm attaching my attempt.

Re: New “guix refresh” command

2013-05-29 Thread Nikita Karetnikov
> That could be done by changing ‘gnupg-verify*’. An optional argument > could be added to select between interactive behavior (“do you want to > download this key and add it to your keyring?”), always-download, and > never-download. I'm attaching my attempt. There are two similar but unrelated

Re: New “guix refresh” command

2013-05-24 Thread Ludovic Courtès
Nikita Karetnikov skribis: > (define (gnupg-receive-keys key-id server) > - (system* (%gpg-command) "--keyserver" server "--recv-keys" key-id)) > + (system* (%gpg-command) > + "--keyserver" server > + "--search-keys" (string-append "0x" key-id))) As the name suggests, this

Re: New “guix refresh” command

2013-05-24 Thread Nikita Karetnikov
>> And I still think that 'guix refresh' must ask before importing a key. > Patches welcome. :-) What do you think? diff --git a/guix/gnupg.scm b/guix/gnupg.scm index c17a495..ba5160a 100644 --- a/guix/gnupg.scm +++ b/guix/gnupg.scm @@ -143,7 +143,9 @@ missing key." status)) (define

Re: New “guix refresh” command

2013-05-11 Thread Nikita Karetnikov
> Oh, maybe it doesn’t distinguish between “command not found” and some > other error, that’s what you mean? Yes, I guess. >> '/etc/resolv.conf' isn't empty; '/usr/bin/gpg' works fine. > /usr/bin/gpg uses a different libc, and perhaps it uses the IPv4-only > gethostbyname too. >> And I still th

Re: New “guix refresh” command

2013-05-11 Thread Ludovic Courtès
Nikita Karetnikov skribis: >>> In execlp of gpg2: No such file or directory > >> You need to have GnuPG 2.x installed: > >> guix package -i gnupg > > Why is it trying to download tarballs after this error? I think it > should print an error message and exit. Doesn’t fe3e603 address this? Oh,

Re: New “guix refresh” command

2013-05-10 Thread Nikita Karetnikov
>> In execlp of gpg2: No such file or directory > You need to have GnuPG 2.x installed: > guix package -i gnupg Why is it trying to download tarballs after this error? I think it should print an error message and exit. How can I use packages from my profile? I've added '/root/.guix-profile'

Re: New “guix refresh” command

2013-05-10 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> Objects aren’t malicious. Perhaps you’re talking about situations where >> a mirror provides a tarball along with a valid signature, but said >> signature is made with a random key, and the tarball is actually not >> genuine, right? > > Yep. > >> Second, this is the

Re: New “guix refresh” command

2013-05-09 Thread Nikita Karetnikov
> Objects aren’t malicious. Perhaps you’re talking about situations where > a mirror provides a tarball along with a valid signature, but said > signature is made with a random key, and the tarball is actually not > genuine, right? Yep. > Second, this is the same model as used by the OpenSSH cli

Re: New “guix refresh” command

2013-05-07 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> When downloading new tarballs, it also retrieves signatures and checks >> them with GPG, via the new (guix gnupg) module. > > Could you point me to this part of the source code? I fail to find it. See ‘download-tarball’ in gnu-maintenance.scm. >> If the public key

Re: New “guix refresh” command

2013-05-07 Thread Nikita Karetnikov
> When downloading new tarballs, it also retrieves signatures and checks > them with GPG, via the new (guix gnupg) module. Could you point me to this part of the source code? I fail to find it. > If the public key is missing, it attempts to get it from keys.gnupg.net, > and tries again; in that

Re: New “guix refresh” command

2013-04-30 Thread Andreas Enge
Am Montag, 29. April 2013 schrieb Ludovic Courtès: > Commit e0fbbc8 should fix it. Can you confirm? So far, I just tried the binary substituter, and it works. Excellent, thanks for all your effort! Andreas

Re: New “guix refresh” command

2013-04-29 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: > Andreas Enge skribis: > >> Am Samstag, 27. April 2013 schrieb Ludovic Courtès: >>> Can you confirm that it all works beautifully? :-) >> >> No. But is there progress? >> >> $ guix build hello > > [...] > >> 359: 1 [filtered-port # #] >> In unknown file:

Re: New “guix refresh” command

2013-04-27 Thread Ludovic Courtès
Andreas Enge skribis: > Am Samstag, 27. April 2013 schrieb Ludovic Courtès: >> Can you confirm that it all works beautifully? :-) > > No. But is there progress? > > $ guix build hello [...] > 359: 1 [filtered-port # #] > In unknown file: >?: 0 [fileno #] > > ERROR: In procedure fileno: >

Re: New “guix refresh” command

2013-04-27 Thread Andreas Enge
Am Samstag, 27. April 2013 schrieb Ludovic Courtès: > Can you confirm that it all works beautifully? :-) No. But is there progress? $ guix build hello the following file will be downloaded: /nix/store/w2121wnp8xv3ycjsgj3ymhb147mrgpc9-hello-2.8 @ substituter-started /nix/store/w2121wnp8xv3ycj

Re: New “guix refresh” command

2013-04-27 Thread Ludovic Courtès
Andreas Enge skribis: > Am Samstag, 27. April 2013 schrieb Ludovic Courtès: >> I believe commit 1424a96 (in master) fixes that and the related >> substituter problem. Could you try and report back? > > For "refresh", things seem to work: > > starting download of `guix-file.yU56z7' from > `ftp:/

Re: New “guix refresh” command

2013-04-27 Thread Andreas Enge
Am Samstag, 27. April 2013 schrieb Ludovic Courtès: > I believe commit 1424a96 (in master) fixes that and the related > substituter problem. Could you try and report back? For "refresh", things seem to work: starting download of `guix-file.yU56z7' from `ftp://ftp.gnupg.org//gcrypt/libassuan/lib

Re: New “guix refresh” command

2013-04-27 Thread Ludovic Courtès
Andreas Enge skribis: > Am Donnerstag, 25. April 2013 schrieb Ludovic Courtès: >> There’s a new ‘guix refresh’ command. > > It also requires a newer guile than 2.0.5: > > guix refresh: warning: using Guile 2.0.5-deb+1-3, which does not support > HTTP ((chunked)) encodi

Re: New “guix refresh” command

2013-04-26 Thread Andreas Enge
Am Donnerstag, 25. April 2013 schrieb Ludovic Courtès: > There’s a new ‘guix refresh’ command. It also requires a newer guile than 2.0.5: guix refresh: warning: using Guile 2.0.5-deb+1-3, which does not support HTTP ((chunked)) encoding guix refresh: error: download failed; use a newer Gu

Re: New “guix refresh” command

2013-04-25 Thread Ludovic Courtès
I’ve added a --select option. The idea is that in ‘master’ you would run ‘guix refresh --select=non-core’ to avoid updating core packages, which would otherwise trigger a full rebuild. Conversely, on ‘core-updates’ you would happily run ‘guix refresh -s core’ to update only core packages. Ludo’

New “guix refresh” command

2013-04-24 Thread Ludovic Courtès
Hello! There’s a new ‘guix refresh’ command. The target audience is mostly Guix developers: the command reports GNU packages that are not up-to-date, and optionally updates the source files to reflect the new version number and tarball hash. (This is essentially a port of my ‘gnupdate’ program