Subject: Re: bug#30768: Gettext : test-copy-file-1.sh fail if --with-store-dir=/var/tmp/xxxxx/gnu/store

From: [email-masked] (Ludovic Courtès)
Date: Mon, 12 Mar 2018 14:47:25 +0100

Hello Yoann,

YOANN P <[email-masked]> skribis:

> --- a/nix/libstore/build.cc
> +++ b/nix/libstore/build.cc
> @@ -1849,6 +1849,11 @@ void DerivationGoal::startBuilder()
>          createDirs(chrootTmpDir);
>          chmod_(chrootTmpDir, 01777);
>  
> +        /* Create a writable /var/tmp in the chroot. */
> +        Path chrootVarTmpDir = chrootRootDir + "/var/tmp";
> +        createDirs(chrootVarTmpDir);
> +        chmod_(chrootVarTmpDir, 01777);

We won’t apply this patch because in general there’s no reason for build
processes to require /var/tmp (we’ve never encountered that.)

That said, are you sure you want to use
--with-store-dir=/var/tmp/xxxxx/gnu/store?

You probably got a ‘configure’ warning already that certain things may
not work, for instance that the shebang max length may be exceeded.

Also using a store other than /gnu/store means you won’t be able to use
substitutes, nor to compare build results with other machines.

Thanks,
Ludo’.