[SOLVED] Re: locale warnings
Hello Ludovic, l...@gnu.org (Ludovic Courtès) writes: > Oleg Pykhalov skribis: > >> $ PAGER= systemctl show guix-daemon.service | grep locale >> Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale >> >> $ sudo guix package -I >> … >> guix0.14.0 out >> /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0 >> glibc-utf8-locales 2.25 out >> /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25 >> glibc-locales 2.27 out >> /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27 >> glibc 2.27out >> /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27 > > The problem you may have is that guix@0.14.0 is linked against glibc > 2.26, so it cannot use the 2.27 locales. You should upgrade ‘guix’. It seems I did a wrong thing before. ‘sudo guix pull’ doesn't produce ‘/root/.config/guix’ directory and files inside this directory. I tried another ‘guix pull’ after invoking ‘sudo -i’. Then I got ‘/root/.config/guix’. After I ran ‘guix package -u’ and ‘systemctl restart guix-daemon’. No warnings now. Also I probably need to say that ‘glibc-locales’ package replaced (with shell command ‘guix package -r glibc-utf8-locales -i glibc-locales’) ‘glibc-utf8-locales’ package for my non-root user, because only ‘glibc-utf8-locales’ package installed produced mentioned warnings. Thanks, Oleg. signature.asc Description: PGP signature
Re: locale warnings
Hi Oleg, Oleg Pykhalov skribis: > $ PAGER= systemctl show guix-daemon.service | grep locale > Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale > > $ sudo guix package -I > … > guix0.14.0 out > /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0 > glibc-utf8-locales 2.25out > /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25 > glibc-locales 2.27out > /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27 > glibc 2.27out /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27 The problem you may have is that guix@0.14.0 is linked against glibc 2.26, so it cannot use the 2.27 locales. You should upgrade ‘guix’. HTH, Ludo’.
Re: locale warnings
Have you tried setting GUIX_LOCPATH for the user (instead of just root) and also installing glibc-locales for the user (instead of only root)? I had the same problem with locales not being found, but installing the locales and setting the environment variable for the user fixed it for me. On Tue, 26 Jun 2018 19:48:53 +0300 Oleg Pykhalov wrote: > Hello Hinko, > > Hinko Kocevar writes: > > […] > > >> I followed the instructions to set up locale for user > >> (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), > >> but I'm still getting these messages for each guix invocation: > >> > >> substitute: guile: warning: failed to install locale > >> substitute: warning: failed to install locale: Invalid argument > > > > These warnings come from the ‘guix substitute’ process, which is spawned > > as root by ‘guix-daemon’. > > > > To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s > > not already there, like this: > > > > > > https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10 > > > > Did adding a GUIX_LOCPATH environment variable to the > guix-daemon.service help? I have the same issue on GNU/Linux Mint > workstation, but this tip didn't help me. > > --8<---cut here---start->8--- > $ PAGER= systemctl show guix-daemon.service | grep locale > Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale > --8<---cut here---end--->8--- > > --8<---cut here---start->8--- > $ sudo guix package -I > … > guix0.14.0 out > /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0 > glibc-utf8-locales 2.25out > /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25 > glibc-locales 2.27out > /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27 > glibc 2.27out /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27 > --8<---cut here---end--->8--- > > Thanks, > Oleg. pgpARB3BjpGnz.pgp Description: OpenPGP digital signature
Re: locale warnings
Hi Oleg, I just tried this in a root terminal (not using sudo): obzen ~ # export GUIX_LOCPATH=/root/.guix-profile/lib/locale obzen ~ # ~root/.guix-profile/bin/guix-daemon --build-users-group=guixbuild and it does not print warnings, as advertised, when using guix tool. Thanks, hinko From: Oleg Pykhalov Sent: Tuesday, June 26, 2018 6:48:53 PM To: Hinko Kocevar Cc: Ludovic Courtès; help-guix@gnu.org Subject: Re: locale warnings Hello Hinko, Hinko Kocevar writes: […] >> I followed the instructions to set up locale for user >> (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), >> but I'm still getting these messages for each guix invocation: >> >> substitute: guile: warning: failed to install locale >> substitute: warning: failed to install locale: Invalid argument > > These warnings come from the ‘guix substitute’ process, which is spawned > as root by ‘guix-daemon’. > > To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s > not already there, like this: > > > https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10 Did adding a GUIX_LOCPATH environment variable to the guix-daemon.service help? I have the same issue on GNU/Linux Mint workstation, but this tip didn't help me. --8<---cut here---start->8--- $ PAGER= systemctl show guix-daemon.service | grep locale Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale --8<---cut here---end--->8--- --8<---cut here---start->8--- $ sudo guix package -I … guix0.14.0 out /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0 glibc-utf8-locales 2.25out /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25 glibc-locales 2.27out /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27 glibc 2.27out /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27 --8<---cut here---end--->8--- Thanks, Oleg.
Re: locale warnings
Hello Hinko, Hinko Kocevar writes: […] >> I followed the instructions to set up locale for user >> (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), >> but I'm still getting these messages for each guix invocation: >> >> substitute: guile: warning: failed to install locale >> substitute: warning: failed to install locale: Invalid argument > > These warnings come from the ‘guix substitute’ process, which is spawned > as root by ‘guix-daemon’. > > To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s > not already there, like this: > > > https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10 Did adding a GUIX_LOCPATH environment variable to the guix-daemon.service help? I have the same issue on GNU/Linux Mint workstation, but this tip didn't help me. --8<---cut here---start->8--- $ PAGER= systemctl show guix-daemon.service | grep locale Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale --8<---cut here---end--->8--- --8<---cut here---start->8--- $ sudo guix package -I … guix0.14.0 out /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0 glibc-utf8-locales 2.25out /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25 glibc-locales 2.27out /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27 glibc 2.27out /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27 --8<---cut here---end--->8--- Thanks, Oleg. signature.asc Description: PGP signature
Re: locale warnings
Hi Ludovic, thanks for pointing this out! /hinko From: Ludovic Courtès Sent: Tuesday, June 26, 2018 1:39:25 PM To: Hinko Kocevar Cc: help-guix@gnu.org Subject: Re: locale warnings Hello, Hinko Kocevar skribis: > I followed the instructions to set up locale for user > (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), but > I'm still getting these messages for each guix invocation: > > substitute: guile: warning: failed to install locale > substitute: warning: failed to install locale: Invalid argument These warnings come from the ‘guix substitute’ process, which is spawned as root by ‘guix-daemon’. To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s not already there, like this: https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10 HTH, Ludo’.
Re: locale warnings
Hello, Hinko Kocevar skribis: > I followed the instructions to set up locale for user > (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), but > I'm still getting these messages for each guix invocation: > > substitute: guile: warning: failed to install locale > substitute: warning: failed to install locale: Invalid argument These warnings come from the ‘guix substitute’ process, which is spawned as root by ‘guix-daemon’. To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s not already there, like this: https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10 HTH, Ludo’.
Re: locale warnings
Seems that if I start the daemon on CLI locale warning appear.. if using systemctl start guix-daemon instead, no warnings. From: Help-Guix on behalf of Hinko Kocevar Sent: Monday, June 25, 2018 6:35:43 PM To: help-guix@gnu.org Subject: locale warnings HI, I followed the instructions to set up locale for user (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), but I'm still getting these messages for each guix invocation: substitute: guile: warning: failed to install locale substitute: warning: failed to install locale: Invalid argument Any ideas? TIA, Hinko Kocevar
locale warnings
HI, I followed the instructions to set up locale for user (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), but I'm still getting these messages for each guix invocation: substitute: guile: warning: failed to install locale substitute: warning: failed to install locale: Invalid argument Any ideas? TIA, Hinko Kocevar