Re: [PATCH] guix package: Add '--delete-generations'.

2013-09-24 Thread Nikita Karetnikov
> Oh. I’d prefer if it would delete all generations but the current one. > That’s a fairly useful pattern: suppose you want to make space on your > disk (and you know you won’t need to roll back), it’d be handy to run: > guix package --delete-generations && guix gc > Whereas if you have to us

Re: [PATCH] guix package: Show which generation is the current one.

2013-09-24 Thread Nikita Karetnikov
> I’m suggesting to have a procedure like this: > (define (current-generation-number profile) > ;; Return the current generation number of PROFILE. > ...) We already have such a procedure. It’s called ‘generation-number’. What do you think about this patch? Can I push it to ‘master’?

Re: Generation 0

2013-09-24 Thread Nikita Karetnikov
What about these patches? Should the first patch also test the following case? +(let ((numbers (generation-numbers profile))) + (if (equal? numbers '(0)) + (exit 1) + (for-each list-generation numbers From f42056aa768

Re: Goals for 0.4

2013-09-24 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: > First, I’d like to release 0.4 by (or on) GNU’s 30th birthday, which is > on Sep. 28th [0]. On the 28th, I’d also like to have a bootable QEMU > image built with Guix, featuring at least the init system (dmd), a > console login, and bare utilities. > > Wh

Re: QEMU image boots into dmd

2013-09-24 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: > We need to at least make a proper profile, put it in $PATH via > /etc/bashrc; we need to have Guix installed in the image, and the > packages already there recognized. There are many details to fix > (setting a host name, etc.) With commit 30f25b0, the i

Re: GNU Guix hackathon on Sep. 28-29

2013-09-24 Thread Thompson, David
On Tue, Sep 24, 2013 at 9:05 AM, Ludovic Courtès wrote: > Hello, > > GNU Guix [0] joins other projects in celebrating GNU’s 30th birthday > this week-end [1]. Join us for an on-line hackathon on #guix on the > Freenode IRC network on Saturday and Sunday, Sept. 28-29! > > Tasks will include packag

Re: FAIL: tests/guix-register.sh

2013-09-24 Thread Ludovic Courtès
Nikita Karetnikov skribis: > HEAD (caf96debc257dee9ad8b0ea74cc6a8241c30dad4) fails. ‘guix-register.log’: > > + type -P sqlite3 > /usr/local/bin/sqlite3 > + echo 'select * from ValidPaths where > path="/nix/store/z4pyj3rbgpqpd3mj0rxpbbpg45hlfcbh-guile-bootstrap-2.0";' > + sqlite3 /home/tester/gu

Re: GNU Guix hackathon on Sep. 28-29

2013-09-24 Thread Nikita Karetnikov
> I will be physically present at the hackathon in Cambridge. Most Guix developers are not in the US, but it would be great if you could find interested people in Cambridge. > I have experience with Guile, but I haven't done much work with package > management systems before. That’s not a proble

Re: [PATCH] guix package: Show which generation is the current one.

2013-09-24 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> Could we instead of a global (current-generation-number profile) >> procedure? We’d store the number in a local variable here, to avoid >> repeated ‘readlink’ calls. > > I don’t see how the former implies the latter. Could you expand on > this? I’m suggesting to h

Re: [PATCH] guix package: Add '--delete-generations'.

2013-09-24 Thread Nikita Karetnikov
> Nothing has to be changed; it’s just that I’d prefer to put the bits > that introduce ‘link-to-empty-environment’ in a separate patch, for > clarity. > I could do it, but it may be easier for you to do it, no? Ah, I simply misunderstood. I’ll do it. pgpBmYpaLw3VH.pgp Description: PGP signatu

Re: [PATCH] guix package: Show which generation is the current one.

2013-09-24 Thread Nikita Karetnikov
> Could we instead of a global (current-generation-number profile) > procedure? We’d store the number in a local variable here, to avoid > repeated ‘readlink’ calls. I don’t see how the former implies the latter. Could you expand on this? pgpo0JF9ism4T.pgp Description: PGP signature

GNU Guix hackathon on Sep. 28-29

2013-09-24 Thread Ludovic Courtès
Hello, GNU Guix [0] joins other projects in celebrating GNU’s 30th birthday this week-end [1]. Join us for an on-line hackathon on #guix on the Freenode IRC network on Saturday and Sunday, Sept. 28-29! Tasks will include packaging your favorite software, hunting bugs, and improving stand-alone b

Re: [PATCH] guix package: Add '--delete-generations'.

2013-09-24 Thread Ludovic Courtès
Nikita Karetnikov skribis: > I had noticed that ‘--roll-back’ doesn’t output anything with > ‘--dry-run’, so I implemented ‘--delete-generations’ similarly. Maybe > it would be better to print something. WDYT? > Agreed (in a separate patch.) > > I don’t think that I’ll have tim

Re: [PATCH] guix package: Show which generation is the current one.

2013-09-24 Thread Ludovic Courtès
Nikita Karetnikov skribis: > Will these lines be i18n’d? I fail to configure the locales properly, > so I can’t check. > > + (format #t "~a\t(current)~%" header) > + (format #t "~a~%" header))) Change the first one to: (format #t (_ "~a\t(current)~

Re: Generation 0

2013-09-24 Thread Ludovic Courtès
Nikita Karetnikov skribis: >>> I think we should change ‘--list-generations’ to not output the zeroth >>> generation. Even though it could be present in the profile, users >>> shouldn’t be concerned about it. > >> Agreed. > > Can I push these patches to ‘master’? Should I document that the zero

Re: [PATCH] guix package: Add '--delete-generations'.

2013-09-24 Thread Nikita Karetnikov
I had noticed that ‘--roll-back’ doesn’t output anything with ‘--dry-run’, so I implemented ‘--delete-generations’ similarly. Maybe it would be better to print something. WDYT? >>> Agreed (in a separate patch.) I don’t think that I’ll have time for this before the release. I’d l