From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: GUIX_LOCPATH in daemon unit file Date: Mon, 11 Jul 2016 12:02:03 +0200 Message-ID: <87twfwmr1g.fsf@gnu.org> References: <20160706.095103.2037769423207614861.post@thomasdanckaert.be> 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]:58244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMY2Y-0006bg-DO for guix-devel@gnu.org; Mon, 11 Jul 2016 06:02:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMY2U-0003T0-5h for guix-devel@gnu.org; Mon, 11 Jul 2016 06:02:13 -0400 In-Reply-To: (Ricardo Wurmus's message of "Thu, 7 Jul 2016 11:31:51 +0200") 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" To: Ricardo Wurmus Cc: guix-devel@gnu.org, Thomas Danckaert Hello, Ricardo Wurmus skribis: > Hi Thomas, > >> using Guix on Ubuntu, I kept seeing messages =E2=80=9Csubstitute: warnin= g:=20 >> failed to install locale: Invalid argument=E2=80=9D (though apart from t= his=20 >> warning, everything seemed to work normally). >> >> From a previous thread on this mailing list, I learnt that the=20 >> problem is that the daemon doesn't have GUIX_LOCPATH set correctly,=20 >> but I didn't know how to fix >> this. #guix explained to me that, for systemd users, this can be done=20 >> by adding "Environment=3DGUIX_LOCPATH=3D/root/.guix-profile/lib/locale"= =20 >> to the [Service] section of the guix-daemon.service file. (and=20 >> probably also installing the necessary locales for root, which I'd=20 >> already done). >> >> Should this environment setting be added to the default=20 >> guix-daemon.service, or could this break something for other=20 >> users/distributions (I'm not sure systems other than Ubuntu have this=20 >> problem?). > > I think GUIX_LOCPATH should be set automatically. There are no ill > effects of having it set when the directory doesn=E2=80=99t exist AFAIK. = Also, > only Guix honours GUIX_LOCPATH (hence the name), so it shouldn=E2=80=99t = screw > up the behaviour of other applications. > > This is a problem on all systems where Guix is used as a package > manager. > > What do others think? If it=E2=80=99s okay and my rationalisations above= are > not mistaken I=E2=80=99d like to accept this change. I agree, please push. Besides, I wonder if we should add =E2=80=98glibc-utf8-locales=E2=80=99 to = the binary tarball. It would add a few MiBs to the tarball, and would only =E2=80=9Cw= ork=E2=80=9D for people who use one of the few locales it provides; OTOH, that=E2=80=99s already an improvement for these users. Thoughts? Thanks! Ludo=E2=80=99.