From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: Overrding the localstatedir Date: Fri, 3 Jan 2014 16:43:24 +0100 Message-ID: <20140103154324.GA5220@jocasta.intra> References: <20140101131947.GA17931@jocasta.intra> <8761q1nl6a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz6uP-0005DK-EA for guix-devel@gnu.org; Fri, 03 Jan 2014 10:43:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vz6uK-0000jq-BQ for guix-devel@gnu.org; Fri, 03 Jan 2014 10:43:37 -0500 Content-Disposition: inline In-Reply-To: <8761q1nl6a.fsf@gnu.org> 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: Ludovic Court??s Cc: guix-devel@gnu.org --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 03, 2014 at 04:23:57PM +0100, Ludovic Court??s wrote: Hi! =20 And happy new year to everyone, where applicable! :-) =20 John Darrington skribis: =20 > After a while I run "guix package -i guix" which installs just fine. =20 (Note that there???s little point in doing that since it gives you the same version that you just installed. If you wanted to use the latest, run ???guix pull??? instead (info "(guix) Invoking guix pull").) =20 > But sadly now guix is broken. Wheneve I run any command I get: > > guix package: error: failed to connect to `/var/nix/daemon-socket/s= ocket': No such file or directory > > Shouldn't we have a --localstatedir option or an environment variabl= e so that guix knows where to find its state > dir? =20 There is one already. Among other things, it tells the Guix clients (all the ???guix??? commands) where to find the daemon socket, and it = tells the daemon where to find its database that describes what???s in the store. Is there??!!! I don't see any mention of it in the documenation. And when= I type "guix --localstatedir=3D/var" I get the following error message: guix: unrecognized option '--localstatedir=3D/var' Try `guix --help' for more information I think you are refering to the configure variable. My suggestion is also = to add one to the guix binary itself to override that specified at configure time. =20 Presumably, the problem you have here is that the Guix you installed by hand had a different $localstatedir than the other one. The ???guix??? package in Guix is built with --localstatedir=3D/var. That is correct and this is the crux of the problem. When building guix f= rom a tarball, using ./configure; make ; make install the localstatedir is PREFIX/var but that defined in gnu/packages/package-management.scm uses --l= ocalstatedir=3D/var =20 Could you check that? =20 So so sum up, my suggestions are: 1. Either a) remove "--localstatedir=3D/var" from the configure-flags of t= he definition of guix in package-management.scm;=20 Or b) Set the default localstatedir in configure.ac to /var 2. Add a run time flag to guix to override whatever localstatedir was give= n at configure time. J' --=20 PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlLG2pwACgkQimdxnC3oJ7OOnwCeJsYih0H1t5qHSbw24ImSeQ0h gpcAniXhdBP4HrD+cN83x5y2+kNVXRrJ =mMHL -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--