[PATCH]

2014-04-14 Thread Ludovic Courtès
The patch below allows files such as /nix/store/foo to be protected from GC if a root refers to them. This makes it easy for a build hook to use such files for its temporary working files. WDYT? Thanks, Ludo’. diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 96e891f..299bf5f 100644 --

Re: [Nix-dev] [PATCH]

2014-04-14 Thread Shea Levy
Hi Ludo’, On Mon, Apr 14, 2014 at 03:38:01PM +0200, Ludovic Courtès wrote: > The patch below allows files such as /nix/store/foo to be protected from > GC if a root refers to them. This makes it easy for a build hook to use > such files for its temporary working files. > > WDYT? > It seems a b

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-14 Thread Ludovic Courtès
(Oops, forgot the Subject line; sorry!) Shea Levy skribis: > On Mon, Apr 14, 2014 at 03:38:01PM +0200, Ludovic Courtès wrote: >> The patch below allows files such as /nix/store/foo to be protected from >> GC if a root refers to them. This makes it easy for a build hook to use >> such files for

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-14 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: > Shea Levy skribis: > >> On Mon, Apr 14, 2014 at 03:38:01PM +0200, Ludovic Courtès wrote: >>> The patch below allows files such as /nix/store/foo to be protected from >>> GC if a root refers to them. This makes it easy for a build hook to use >>> such fil

Re: Installing a C tool chain

2014-04-14 Thread Andreas Enge
On Sat, Apr 05, 2014 at 10:44:55PM +0200, Ludovic Courtès wrote: > Comments welcome! This could be a useful package! Do I need to set any more environment variables in my .bashrc? So far, I have export PATH=$HOME/.guix-profile/bin:$PATH export LIBRARY_PATH=$HOME/.guix-profile/lib export CPATH=$HOM

Re: Installing a C tool chain

2014-04-14 Thread Ludovic Courtès
Andreas Enge skribis: > On Sat, Apr 05, 2014 at 10:44:55PM +0200, Ludovic Courtès wrote: >> Comments welcome! [...] > When I do a "./configure" of mpc, none of the standard headers are recognised; > I obtain something like: > > configure:12920: checking for ANSI C header files > configure:13024

Re: Installing a C tool chain

2014-04-14 Thread Andreas Enge
On Mon, Apr 14, 2014 at 09:16:31PM +0200, Ludovic Courtès wrote: > This is because you’re compiling with -Wundef -Werror, something that > libc 2.19 headers apparently don’t support. I tried without both, and then it works. Do you have a source and suggestion on what to do in such a case? Is it de

Re: Installing a C tool chain

2014-04-14 Thread Ludovic Courtès
Andreas Enge skribis: > On Mon, Apr 14, 2014 at 09:16:31PM +0200, Ludovic Courtès wrote: >> This is because you’re compiling with -Wundef -Werror, something that >> libc 2.19 headers apparently don’t support. > > I tried without both, and then it works. Do you have a source and suggestion > on wh

[PATCH] gnu: Add glibc-hurd-headers

2014-04-14 Thread Manolis Ragkousis
This patch adds glibc-hurd-headers so I can use them to bootstrap build libihash which needs glibc. Take notice that it needs the patch "glibc-make-4.0.patch" for the configure check to pass. I should bring up this issue to the hurd guys. From 8b828821c6b79a461ef067e9ae6a768c0df6378b Mon Sep 17 00

Re: [PATCH] gnu: Add glibc-hurd-headers

2014-04-14 Thread Ludovic Courtès
Manolis Ragkousis skribis: > Take notice that it needs the patch "glibc-make-4.0.patch" for the > configure check to pass. I should bring up this issue to the hurd > guys. That’s a sign that the Hurd’s libc should be rebased on top of libc 2.19. > +(define-public glibc/hurd-headers > + (packag

Re: [PATCH] gnu: Add glibc-hurd-headers

2014-04-14 Thread Manolis Ragkousis
> This looks good to me, but unnecessarily complex: get rid of > ‘substitute-keyword-arguments’: The problem is that we need the phases from the glibc package except the two I changed. I would end up just copying them. Is there a better way to use the inherited phases and just change the ones we n