[Nix-dev] gnutar 1.25 root conflict

Eelco Dolstra e.dolstra at tudelft.nl
Thu Nov 3 18:01:49 CET 2011


Hi,

On 11/03/2011 10:29 AM, Kevin Quick wrote:

> When trying to use build some recent derivations using Nix (in a non-NixOS  
> environment) with nix build workers (build-users-group = nixbld) I  
> encounter this:
> 
> checking whether mknod can create fifo without root privileges...  
> configure: error: in  
> `/tmp/nix-build-7b47bnsf295kdvwzqik8y23m7sb8dbnn-gnutar-1.25.drv-0/tar-1.25:
> configure: error: you should not run configure as root (set  
> FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)

Are you sure that the build isn't being performed as root?  There could be a
configuration error of some sort.  Try adding

  preConfigure = "id; exit 1";

to the GNU tar builder and do "nix-build -A gnutar".  It should print something like

  uid=30001 gid=30000

(or whatever the uid/gid is of the Nix build users).

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list