From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: statedir locations Date: Tue, 28 Jan 2014 10:49:08 +0100 Message-ID: <87r47se8rv.fsf@gnu.org> References: <20140127115015.GA13396@jocasta.intra> <87ha8pk2ew.fsf@gnu.org> <87k3dlh74j.fsf@netris.org> <874n4piish.fsf@gnu.org> <874n4ohf27.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W85N5-0000Wn-LR for guix-devel@gnu.org; Tue, 28 Jan 2014 04:54:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W85My-0005NR-3D for guix-devel@gnu.org; Tue, 28 Jan 2014 04:54:19 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:49062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W85Mx-0005NE-Rs for guix-devel@gnu.org; Tue, 28 Jan 2014 04:54:11 -0500 In-Reply-To: <874n4ohf27.fsf@netris.org> (Mark H. Weaver's message of "Tue, 28 Jan 2014 00:05:04 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Mark H Weaver skribis: >> >>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> >>>> John Darrington skribis: >>>> >>>>> It has come to my attention that guix packages (at least those with g= nu build system) >>>>> default their statedirs to directories under /nix/store/. Recall tha= t the statedirs (ie:=20 >>>>> sharedstatedir localstatedir and runstatedir) are for installing data= files *which the programs >>>>> modify while they run* [1]. Obviously a program cannot modify anyth= ing under /nix/store >>>>> I think we need to update the default configure flags. >>>> >>>> Yes. We actually have a number of local modifications: >>>> >>>> $ grep -e --localstatedir gnu/packages/*.scm | wc -l >>>> 5 >>>> >>>> I think we should change gnu-build-system.scm to pass >>>> --localstatedir=3D/var, unless =E2=80=98configure-flags=E2=80=99 speci= fy another setting. >>>> >>>> I=E2=80=99ll do that in =E2=80=98core-updates=E2=80=99. >>> >>> What about 'sharestatedir' and 'runstatedir'? >> >> =E2=80=98runstatedir=E2=80=99 is in the not-yet-released Autoconf, but o= therwise, yeah, >> they all deserve the same treatment. > > So there's a problem. Lots of builds are now failing, because "make > install" often tries to create /var or /com and does not have sufficient > permissions to do so. Indeed (notice that I=E2=80=99m reading mail in the wrong order.) Ludo=E2=80=99.