[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: statedir locations
From: |
Ludovic Courtès |
Subject: |
Re: statedir locations |
Date: |
Tue, 28 Jan 2014 23:11:21 +0100 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
John Darrington <address@hidden> skribis:
> On Tue, Jan 28, 2014 at 10:23:16AM +0100, Ludovic Court??s wrote:
>
> I was overconfident: the patch broke everything, because
> Automake-generated makefiles typically try to mkdir $localstatedir:
>
> http://hydra.gnu.org/eval/45514
>
> So I just reverted it, and I think we???re stuck with the status quo
> until
> someone has a better idea.
>
> So the status quo is, that these packages mkdir /nix/store.../var/com .
> Presumably they do that for a reason, viz the program needs to write
> to these directories.
Right. Apparently Automake doesn’t emit anything for packages that do
not use the ‘localstate’ prefix.
> But they will not be able to do that because /nix/store is immutable.
> These programs will then break. :(
Well, yes.
> For the longer term, we could submit an Automake patch such that it
> doesn???t insist on creating $localstatedir et al.
>
> That sounds like a good idea. In the meantime, couldn't we patch the
> generated Makefile.in so that it will not die if the mkdir fails?
Yes, as done for DBus for instance. Unfortunately, I don’t see any
obvious way to do that patching automatically.
Thanks,
Ludo’.