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: Mon, 27 Jan 2014 13:57:43 +0100 Message-ID: <87ha8pk2ew.fsf@gnu.org> References: <20140127115015.GA13396@jocasta.intra> 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]:48853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7lq0-0001VT-Qz for guix-devel@gnu.org; Mon, 27 Jan 2014 08:02:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7lpu-000842-Lq for guix-devel@gnu.org; Mon, 27 Jan 2014 08:02:52 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:47053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7lpu-00083u-Ej for guix-devel@gnu.org; Mon, 27 Jan 2014 08:02:46 -0500 In-Reply-To: <20140127115015.GA13396@jocasta.intra> (John Darrington's message of "Mon, 27 Jan 2014 12:50:15 +0100") 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: John Darrington Cc: guix-devel@gnu.org John Darrington skribis: > It has come to my attention that guix packages (at least those with gnu b= uild system) > default their statedirs to directories under /nix/store/. Recall that th= e statedirs (ie:=20 > sharedstatedir localstatedir and runstatedir) are for installing data fil= es *which the programs > modify while they run* [1]. Obviously a program cannot modify anything = 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 specify an= other setting. I=E2=80=99ll do that in =E2=80=98core-updates=E2=80=99. Thanks, Ludo=E2=80=99.