From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fredrik Salomonsson Subject: bug#28168: rofi - Failed to set locale and relink messages Date: Wed, 23 Aug 2017 14:31:47 -0700 Message-ID: References: <87k21wasdb.fsf@gnu.org> <87efs2kmrv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114dda72a7b0c70557727153" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkdGr-0003Oq-LO for bug-guix@gnu.org; Wed, 23 Aug 2017 17:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkdGo-0005Ue-Et for bug-guix@gnu.org; Wed, 23 Aug 2017 17:33:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43124) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkdGo-0005US-B9 for bug-guix@gnu.org; Wed, 23 Aug 2017 17:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dkdGo-0005hy-31 for bug-guix@gnu.org; Wed, 23 Aug 2017 17:33:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87efs2kmrv.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 28168@debbugs.gnu.org --001a114dda72a7b0c70557727153 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi >> > >> > Failed to set locale. > >> > > >> > then it exits. > >> > > >> > I've set: > >> > GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale > >> > LANG=3Den_US.UTF-8 > >> > > >> > Using glibc-locales > >> > >> Does setting LC_ALL instead of LANG help? The LC_* variables take > >> precedence over LANG. > > > > setting LC_ALL didn't work. Same error. > > > > Did a strace on it just to see what's going on. > > Here's the last part just before it exits > > > >> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en_US/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en.UTF-8/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en.utf8/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> write(2, "Failed to set locale.\n", 22) =3D 22 > >> exit_group(1) =3D ? > >> +++ exited with 1 +++ > >> > > > > It's looking for locale specific things in /run/current-system. Which > Arch > > doesn't have. Is that a GuixSD specific thing? Don't have GuixSD > installed > > at the moment so cannot check myself. > > Yes, that=E2=80=99s a GuixSD-specific thing, but if you set GUIX_LOCPATH, t= hen > $GUIX_LOCPATH should take precedence. The strace output you sent > suggests that GUIX_LOCPATH was unset, wasn=E2=80=99t it? > Yeah I think it was unset, looked in my .zshrc and I had just added GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale forgot to add export. However it still complained when I set it properly. > > > > > > Failed to set locale. > > > > > > > > then it exits. > > > > > > > > I've set: > > > > GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale > > > > LANG=3Den_US.UTF-8 > > > > > > > > Using glibc-locales > > > > > > Does setting LC_ALL instead of LANG help? The LC_* variables take > > > precedence over LANG. > > > > setting LC_ALL didn't work. Same error. > > How recent is the guix you have? Did you run guix pull and > guix package -u .* recently? > I installed the one listed in arch AUR, which is 0.13.0 then did a guix pull a week ago or so. Did one this morning and that fixed it! Rofi now starts without any issues. Question though, do I need to add the regex when updating the packages? It seems it updated all my packages by just doing guix package -u. Anyway thanks for helping out, sorry to bother you with a non-issue. You can mark this bug as PEBCAK 2017-08-23 14:16 GMT-07:00 Ludovic Court=C3=A8s : > Hi Fredrik, > > Fredrik Salomonsson skribis: > > >> > >> > Failed to set locale. > >> > > >> > then it exits. > >> > > >> > I've set: > >> > GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale > >> > LANG=3Den_US.UTF-8 > >> > > >> > Using glibc-locales > >> > >> Does setting LC_ALL instead of LANG help? The LC_* variables take > >> precedence over LANG. > > > > setting LC_ALL didn't work. Same error. > > > > Did a strace on it just to see what's going on. > > Here's the last part just before it exits > > > >> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en_US/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en.UTF-8/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en.utf8/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> open("/run/current-system/locale/2.25/en/LC_IDENTIFICATION", > >> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) > >> write(2, "Failed to set locale.\n", 22) =3D 22 > >> exit_group(1) =3D ? > >> +++ exited with 1 +++ > >> > > > > It's looking for locale specific things in /run/current-system. Which > Arch > > doesn't have. Is that a GuixSD specific thing? Don't have GuixSD > installed > > at the moment so cannot check myself. > > Yes, that=E2=80=99s a GuixSD-specific thing, but if you set GUIX_LOCPATH,= then > $GUIX_LOCPATH should take precedence. The strace output you sent > suggests that GUIX_LOCPATH was unset, wasn=E2=80=99t it? > > For example, I get: > > --8<---------------cut here---------------start------------->8--- > $ GUIX_LOCPATH=3D/foo strace -e open true --help > > [...] > > open("/foo/2.25/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) =3D -1 > ENOENT (No such file or directory) > open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION", > O_RDONLY|O_CLOEXEC) =3D 3 > open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpi > w2-glibc-2.25/lib/gconv/gconv-modules.cache", O_RDONLY) =3D -1 ENOENT (No > such file or directory) > open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpi > w2-glibc-2.25/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) =3D 3 > open("/foo/2.25/en_US.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) =3D -1 > ENOENT (No such file or directory) > > [...] > > --8<---------------cut here---------------end--------------->8--- > > HTH, > Ludo=E2=80=99. > --=20 s/Fred[re]+i[ck]+/Fredrik/g --001a114dda72a7b0c70557727153 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi


>>
>> > Failed to set locale.
>> >
>> > then it exits.
>> >
>> > I've set:
>> > GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale
>> > LANG=3Den_US.UTF-8
>> >
>> > Using glibc-locales
>>
>> Does setting LC_ALL instead of LANG help?=C2=A0 The LC_* variables= take
>> precedence over LANG.
>
> setting LC_ALL didn't work. Same error.
>
> Did a strace on it just to see what's going on.
> Here's the last part just before it exits
>
>> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en_US/LC_IDEN= TIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en.UTF-8/LC_I= DENTIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en.utf8/LC_ID= ENTIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en/LC_IDENTIF= ICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> write(2, "Failed to set locale.\n", 22) =3D 22
>> exit_group(1)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D ?
>> +++ exited with 1 +++
>>
>
> It's looking for locale specific things in /run/current-system. Wh= ich Arch
> doesn't have. Is that a GuixSD specific thing?=C2=A0 Don't hav= e GuixSD installed
> at the moment so cannot check myself.
=C2=A0<= /div>
Yes, th= at=E2=80=99s a GuixSD-specific thing, but if you set GUIX_LOCPATH, then
= $GUIX_LOCPATH should take precedence.=C2=A0 The strace output you sent
s= uggests that GUIX_LOCPATH was unset, wasn=E2=80=99t it?

Yeah I think it was unset, looked in my .zshrc and I had just add= ed
GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale<=
/pre>forgot to add export. However it still complained when I set it proper=
ly.

> >
> > > Failed to set locale.
> > >
> > > then it exits.
> > >
> > > I've set:
> > > GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale
> > > LANG=3Den_US.UTF-8
> > >
> > > Using glibc-locales
> >
> > Does setting LC_ALL instead of LANG help?=C2=A0 The LC_* variable= s take
> > precedence over LANG.
>
> setting LC_ALL didn't work. Same error.

How recent is the guix you have? Did you run guix pull and
guix package -u .* recently?

I instal= led the one listed in arch AUR, which is 0.13.0 then did a guix pull a week= ago or so.

Did one this morning and that fixed it! Rofi = now starts without any issues.

Question though, do I need= to add the regex when updating the packages?
It seems it upd= ated all my packages by just doing guix package -u.

Anywa= y thanks for helping out, sorry to bother you with a non-issue. You can mar= k this bug as=C2=A0PEBCAK

2017-08-23 14:16 GMT-07:00 Ludovic Court=C3=A8s <ludo@gnu.o= rg>:
Hi Fredrik,

Fredrik Salomonsson <plattfot@gmai= l.com> skribis:

>>
>> > Failed to set locale.
>> >
>> > then it exits.
>> >
>> > I've set:
>> > GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale
>> > LANG=3Den_US.UTF-8
>> >
>> > Using glibc-locales
>>
>> Does setting LC_ALL instead of LANG help?=C2=A0 The LC_* variables= take
>> precedence over LANG.
>
> setting LC_ALL didn't work. Same error.
>
> Did a strace on it just to see what's going on.
> Here's the last part just before it exits
>
>> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en_US/LC_IDEN= TIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en.UTF-8/LC_I= DENTIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en.utf8/LC_ID= ENTIFICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en/LC_IDENTIF= ICATION",
>> O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory)
>> write(2, "Failed to set locale.\n", 22) =3D 22
>> exit_group(1)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D ?
>> +++ exited with 1 +++
>>
>
> It's looking for locale specific things in /run/current-system. Wh= ich Arch
> doesn't have. Is that a GuixSD specific thing?=C2=A0 Don't hav= e GuixSD installed
> at the moment so cannot check myself.

Yes, that=E2=80=99s a GuixSD-specific thing, but if you set GUI= X_LOCPATH, then
$GUIX_LOCPATH should take precedence.=C2=A0 The strace output you sent
suggests that GUIX_LOCPATH was unset, wasn=E2=80=99t it?

For example, I get:

--8<---------------cut here---------------start------------->8--= -
$ GUIX_LOCPATH=3D/foo strace -e open true --help

[...]

open("/foo/2.25/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CL= OEXEC) =3D -1 ENOENT (No such file or directory)
open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFI= CATION", O_RDONLY|O_CLOEXEC) =3D 3
open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25= /lib/gconv/gconv-modules.cache", O_RDONLY) =3D -1 ENOENT (No such= file or directory)
open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25= /lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) =3D 3
open("/foo/2.25/en_US.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEX= EC) =3D -1 ENOENT (No such file or directory)

[...]

--8<---------------cut here---------------end--------------->8--= -

HTH,
Ludo=E2=80=99.



--
s/Fred[re]+i[ck= ]+/Fredrik/g
--001a114dda72a7b0c70557727153--