Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] tons of setlocale warnings on fresh installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Sun Nov 29, 2015 3:55 pm    Post subject: [SOLVED] tons of setlocale warnings on fresh installation Reply with quote

Installing a new system and am getting tons of setlocale warning during the installation of some packages (whilst still in chroot)..

Code:
warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)

Code:
setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)

Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = (unset),
   LC_PAPER = "nl_NL.UTF-8",
   LC_ADDRESS = "nl_NL.UTF-8",
   LC_MONETARY = "nl_NL.UTF-8",
   LC_NUMERIC = "nl_NL.UTF-8",
   LC_TELEPHONE = "nl_NL.UTF-8",
   LC_MESSAGES = "C",
   LC_IDENTIFICATION = "nl_NL.UTF-8",
   LC_MEASUREMENT = "nl_NL.UTF-8",
   LC_TIME = "nl_NL.UTF-8",
   LC_NAME = "nl_NL.UTF-8",
   LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.utf8").


Code:
>>> Installing (27 of 40) virtual/libudev-215-r1::gentoo
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 61: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 64: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
 * checking 0 files for package collisions
>>> Merging virtual/libudev-215-r1 to /
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 61: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 64: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 61: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 64: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 61: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 64: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
>>> virtual/libudev-215-r1 merged.
>>> Regenerating /etc/ld.so.cache...
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 61: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/virtual/libudev-215-r1/temp/environment: line 64: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)


I ran locale-gen and (pretty much) followed the online manual. Currently I have set the following locale.
Quote:

(chroot) livecd / # eselect locale list
Available targets for the LANG variable:
[1] C
[2] en_US
[3] en_US.iso88591
[4] en_US.utf8 *
[5] POSIX
[ ] (free form)




Am i missing something here?

Cheers,
guid0


Last edited by guid0 on Mon Nov 30, 2015 10:12 am; edited 1 time in total
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 538

PostPosted: Sun Nov 29, 2015 4:01 pm    Post subject: Reply with quote

Did you run
Code:
#env-update && source /etc/profile


?

What is in your /etc/locale.conf?
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Sun Nov 29, 2015 4:04 pm    Post subject: Reply with quote

yes. sorry, should have mentioned this.

Quote:
(chroot) livecd / # cat /etc/env.d/02locale
# Configuration file for eselect
# This file has been automatically generated.
LANG="en_US.utf8"


It seems that my LC_ vars have been set to nl_NL (possibly due Europe/Amsterdam being the correct timezone)..

Quote:
(chroot) livecd / # env|sort
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
CONFIG_PROTECT_MASK=/etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/ca-certificates.conf
EDITOR=/bin/nano
GCC_SPECS=
HOME=/root
INFOPATH=/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.25.1/info
LANG=en_US.utf8
LC_ADDRESS=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LESS=-R -M --shift 5
LESSOPEN=|lesspipe %s
LOGNAME=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:
sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:
*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:
*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:
*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:
*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:
*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:
*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:
*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:
*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:
*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:
*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAIL=/var/mail/root
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.25.1/man
MULTIOSDIRS=../lib64
PAGER=/usr/bin/less
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3
PS1=(chroot) \[\033]0;\u@\h:\w\007\]\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\]
PWD=/
SHELL=/bin/bash
SHLVL=2
TERM=xterm
USER=root
_=/usr/bin/env


Gave LS_COLORS a family of breaks to prevent it from pushing the forum layout way over yonder for some browsers. —Chiitoo
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Sun Nov 29, 2015 4:06 pm    Post subject: Reply with quote

(chroot) livecd / # cat /etc/locale.conf
cat: /etc/locale.conf: No such file or directory

if you are referring to locale.gen..

(chroot) livecd / # cat /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Nov 29, 2015 5:47 pm    Post subject: Reply with quote

guid0 ... you haven't said whether you did as mrbassie suggested ... if you make any change to env.d via 'eselect' you must then run 'env-update && source /etc/profile' ... its seems as though you haven't.

BTW, you can (and probably should) set the following ...
/etc/portage/make.conf:
LANG=C
LC_CTYPE="$LANG"
LC_COLLATE="$LANG"
LC_MESSAGES="$LANG"

best ... khay
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Sun Nov 29, 2015 6:12 pm    Post subject: Reply with quote

Actually i did :)
guid0 wrote:
yes. sorry, should have mentioned this.


I can set up your suggestions in /etc/portage/make.conf but it feels wierd as I have never encountered this before. I also just managed to reproduce this by following regular handbook procedures on a hardneded no multilib stage3 setup.

The only other funny thing i noticed was the mention of the --xattrs flag to the tar command at https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Unpacking_the_stage_tarball whilst tar screams that there is no support for xattr..
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Sun Nov 29, 2015 6:19 pm    Post subject: Reply with quote

If i run:

Code:
locale


I get the following:

Quote:
(chroot) livecd / # locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="en_US.utf8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.utf8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=


When I use strace on the command the "No such file or directory" may seem noteworthy:

Quote:
(chroot) livecd / # strace locale
execve("/usr/bin/locale", ["locale"], [/* 36 vars */]) = 0
brk(0) = 0x7f8f623c5000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8f619d4000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=18045, ...}) = 0
mmap(NULL, 18045, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8f619cf000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\v\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1734128, ...}) = 0
mmap(NULL, 3843032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8f611fd000
mprotect(0x7f8f6139d000, 2097152, PROT_NONE) = 0
mmap(0x7f8f6159d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a0000) = 0x7f8f6159d000
mmap(0x7f8f615a3000, 17368, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8f615a3000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8f619ce000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8f619cd000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8f619cc000
arch_prctl(ARCH_SET_FS, 0x7f8f619cd700) = 0
mprotect(0x7f8f6159d000, 16384, PROT_READ) = 0
mprotect(0x7f8f619d5000, 4096, PROT_READ) = 0
mprotect(0x7f8f617ca000, 4096, PROT_READ) = 0
munmap(0x7f8f619cf000, 18045) = 0
brk(0) = 0x7f8f623c5000
brk(0x7f8f623e6000) = 0x7f8f623e6000
open("/usr/lib64/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1852560, ...}) = 0
mmap(NULL, 1852560, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8f61807000
close(3) = 0
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2492, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8f619d3000
read(3, "# Locale name alias data base.\n#"..., 1024) = 1024
read(3, "nd for the time being for\n# back"..., 1024) = 1024
read(3, "\nno_NO.ISO-8859-1 nb_NO.ISO-8859"..., 1024) = 444
read(3, "", 1024) = 0
close(3) = 0
munmap(0x7f8f619d3000, 4096) = 0
open("/usr/lib64/locale/nl_NL.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/nl_NL.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/nl_NL/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/nl.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/nl.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/nl/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "locale: ", 8locale: ) = 8
write(2, "Cannot set LC_ALL to default loc"..., 35Cannot set LC_ALL to default locale) = 35
write(2, ": No such file or directory", 27: No such file or directory) = 27
write(2, "\n", 1
) = 1
fstat(1, {st_mode=S_IFCHR|0622, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8f619d3000
write(1, "LANG=en_US.utf8\n", 16LANG=en_US.utf8
) = 16
write(1, "LC_CTYPE=\"en_US.utf8\"\n", 22LC_CTYPE="en_US.utf8"
) = 22
write(1, "LC_NUMERIC=nl_NL.UTF-8\n", 23LC_NUMERIC=nl_NL.UTF-8
) = 23
write(1, "LC_TIME=nl_NL.UTF-8\n", 20LC_TIME=nl_NL.UTF-8
) = 20
write(1, "LC_COLLATE=\"en_US.utf8\"\n", 24LC_COLLATE="en_US.utf8"
) = 24
write(1, "LC_MONETARY=nl_NL.UTF-8\n", 24LC_MONETARY=nl_NL.UTF-8
) = 24
write(1, "LC_MESSAGES=\"en_US.utf8\"\n", 25LC_MESSAGES="en_US.utf8"
) = 25
write(1, "LC_PAPER=nl_NL.UTF-8\n", 21LC_PAPER=nl_NL.UTF-8
) = 21
write(1, "LC_NAME=nl_NL.UTF-8\n", 20LC_NAME=nl_NL.UTF-8
) = 20
write(1, "LC_ADDRESS=nl_NL.UTF-8\n", 23LC_ADDRESS=nl_NL.UTF-8
) = 23
write(1, "LC_TELEPHONE=nl_NL.UTF-8\n", 25LC_TELEPHONE=nl_NL.UTF-8
) = 25
write(1, "LC_MEASUREMENT=nl_NL.UTF-8\n", 27LC_MEASUREMENT=nl_NL.UTF-8
) = 27
write(1, "LC_IDENTIFICATION=nl_NL.UTF-8\n", 30LC_IDENTIFICATION=nl_NL.UTF-8
) = 30
write(1, "LC_ALL=\n", 8LC_ALL=
) = 8
exit_group(0) = ?
+++ exited with 0 +++
(chroot) livecd / #


Is perhaps en_US no longer valid?

Quote:
(chroot) livecd / # ls -1 /usr/share/locale/ | grep en
en@boldquot
en@quot
en@shaw
en_CA
en_GB


update: en_GB seems not to make any difference
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Nov 29, 2015 6:25 pm    Post subject: Reply with quote

guid0 wrote:
Actually i did :)
guid0 wrote:
yes. sorry, should have mentioned this.

guid0 ... ok, but it wasn't altogether clear what that refered to.

guid0 wrote:
I can set up your suggestions in /etc/portage/make.conf but it feels wierd as I have never encountered this before. I also just managed to reproduce this by following regular handbook procedures on a hardneded no multilib stage3 setup.

The suggestion was an aside to the the actual problem ... you should do this as some builds will expect that the locale is C, or POSIX, and so fail if *.utf8 is set. Anyhow, to the problem, you edited /etc/locale.gen then run 'locale-gen'?

guid0 wrote:
The only other funny thing i noticed was the mention of the --xattrs flag to the tar command at https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Unpacking_the_stage_tarball whilst tar screams that there is no support for xattr..

That seems to be a case of the handbook being ahead of the version of tar in the stages (and/or their not having the USE=xattr set as was the recent change to the base profile).

best ... khay
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Sun Nov 29, 2015 6:32 pm    Post subject: Reply with quote

khayyam wrote:
guid0 wrote:
Actually i did :)
guid0 wrote:
yes. sorry, should have mentioned this.

guid0 ... ok, but it wasn't altogether clear what that refered to.

True. Srry about that.

khayyam wrote:
guid0 wrote:
I can set up your suggestions in /etc/portage/make.conf but it feels wierd as I have never encountered this before. I also just managed to reproduce this by following regular handbook procedures on a hardneded no multilib stage3 setup.

The suggestion was an aside to the the actual problem ... you should do this as some builds will expect that the locale is C, or POSIX, and so fail if *.utf8 is set. Anyhow, to the problem, you edited /etc/locale.gen then run 'locale-gen'?

Yes. I have edited /etc/locale.gen en ran locale-gen.

Still not sure what to do now as I am still seeing some reproducible errors.

Code:
livecd / # emerge --config sys-libs/timezone-data
setlocale: unsupported locale setting

Configuring pkg...

/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 66: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 68: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
 * Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam


khayyam wrote:
guid0 wrote:
The only other funny thing i noticed was the mention of the --xattrs flag to the tar command at https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Unpacking_the_stage_tarball whilst tar screams that there is no support for xattr..

That seems to be a case of the handbook being ahead of the version of tar in the stages (and/or their not having the USE=xattr set as was the recent change to the base profile).

best ... khay


Noted. Thanks.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Nov 29, 2015 7:01 pm    Post subject: Reply with quote

guid0 wrote:
Code:
/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 66: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 68: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
 * Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam

guid0 ... and 'Europe/Amsterdam' is what you have set in /etc/timezone? What does 'locale -a' and 'locale' show? Does the following still cause the above issue?

Code:
# LC_ALL=C emerge sys-libs/timezone-data

... or similarly with some other package/atom

best ... khay
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Sun Nov 29, 2015 7:15 pm    Post subject: Reply with quote

livecd ~ # chroot /mnt/gentoo /bin/bash

livecd / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...
livecd / # export PS1="(chroot) $PS1"

(chroot) livecd / # echo "Europe/Amsterdam" > /etc/timezone

(chroot) livecd / # emerge --config sys-libs/timezone-data
setlocale: unsupported locale setting


Configuring pkg...

/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 66: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 68: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
* Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam

(chroot) livecd / # cat /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8

(chroot) livecd / # locale-gen
* Generating 2 locales (this might take a while) with 1 jobs
* (1/2) Generating en_US.ISO-8859-1 ... [ ok ]
* (2/2) Generating en_US.UTF-8 ... [ ok ]
* Generation complete

(chroot) livecd / # cat /etc/env.d/02locale
# Configuration file for eselect
# This file has been automatically generated.
LANG="en_US.utf8"

(chroot) livecd / # locale -a
C
en_US
en_US.iso88591
en_US.utf8
POSIX

(chroot) livecd / # eselect locale list
Available targets for the LANG variable:
[1] C
[2] en_US
[3] en_US.iso88591
[4] en_US.utf8 *
[5] POSIX
[ ] (free form)

(chroot) livecd / # eselect locale set 4
Setting LANG to en_US.utf8 ...
Run ". /etc/profile" to update the variable in your shell.

(chroot) livecd / # source /etc/profile

livecd / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...

livecd / # emerge --config sys-libs/timezone-data
setlocale: unsupported locale setting


Configuring pkg...

/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 66: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 68: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
* Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam


:(

I remerged timezone-data as mentioned below:
Quote:
LC_ALL=C emerge sys-libs/timezone-data

and it seems to install fine. However i still get:

>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
* Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam
>>> sys-libs/timezone-data-2015f merged.

>>> Recording sys-libs/timezone-data in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* GNU info directory index is up-to-date.

livecd / # emerge --config sys-libs/timezone-data
setlocale: unsupported locale setting


Configuring pkg...

/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 70: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 73: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
* Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam

livecd / # echo "Europe/Amsterdam" > /etc/timezone

livecd / # emerge --config sys-libs/timezone-data
setlocale: unsupported locale setting


Configuring pkg...

/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 70: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 73: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
* Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam

:(
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Nov 29, 2015 7:26 pm    Post subject: Reply with quote

guid0 wrote:
I remerged timezone-data as mentioned below:
Quote:
LC_ALL=C emerge sys-libs/timezone-data

and it seems to install fine. However i still get:

>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
* Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam
>>> sys-libs/timezone-data-2015f merged.

>>> Recording sys-libs/timezone-data in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* GNU info directory index is up-to-date.

guid0 ... that's fine ... you didn't provide the output of 'locale'.

best ... khay
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Sun Nov 29, 2015 7:42 pm    Post subject: Reply with quote

doh :(

livecd / # locale
Quote:
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="en_US.utf8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.utf8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Nov 29, 2015 9:43 pm    Post subject: Reply with quote

guid0 wrote:
Code:
livecd / # locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="en_US.utf8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.utf8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=

That doesn't make any sense ... setting LANG (as you do in /etc/env.d/02locale) should provide that locale for all those values. Even if they were coming from outside the chroot they should be re-asigned on sourcing /etc/profile. I can only assume that locale-gen is failing ... do you perhaps have both a /usr/lib and /usr/lib64? What stage3 did you use, and what is the output of 'emerge --info'.

best ... khay
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Mon Nov 30, 2015 7:25 am    Post subject: Reply with quote

regular symlink:
Code:
(chroot) livecd / # cd /usr && ls -alF lib
lrwxrwxrwx 1 root root 5 Nov 19 18:58 lib -> lib64/


verified stage3 used:
Code:
(chroot) livecd usr # ls /stage*
/stage3-amd64-hardened+nomultilib-20151119.tar.bz2
/stage3-amd64-hardened+nomultilib-20151119.tar.bz2.DIGESTS


emerge --info:
Code:
(chroot) livecd usr # emerge --info
setlocale: unsupported locale setting
Portage 2.2.20.1 (python 3.4.3-final-0, hardened/linux/amd64/no-multilib, gcc-4.9.3, glibc-2.21-r1, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_L3426_@_1.87GHz-with-gentoo-2.2
KiB Mem:     7284512 total,   6774216 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 29 Nov 2015 15:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"
APACHE2_MPMS="itk"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode internal-glib python_targets_python3_4 python_targets_python2_7 multilib hardened pax_kernel pic xtpax -jit -orc"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_SIZE="4096M"
CFLAGS="-march=native -O2 -pipe"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-march=native -O2 -pipe"
DEFAULT_ABI="amd64"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp -P \${port} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"
GCC_SPECS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx"
GRUB_PLATFORMS=""
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.5/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.25.1/info"
INPUT_DEVICES="keyboard"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest"
KERNEL="linux"
LANG="en_US.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ADDRESS="nl_NL.UTF-8"
LC_IDENTIFICATION="nl_NL.UTF-8"
LC_MEASUREMENT="nl_NL.UTF-8"
LC_MESSAGES="C"
LC_MONETARY="nl_NL.UTF-8"
LC_NAME="nl_NL.UTF-8"
LC_NUMERIC="nl_NL.UTF-8"
LC_PAPER="nl_NL.UTF-8"
LC_TELEPHONE="nl_NL.UTF-8"
LC_TIME="nl_NL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_arm="lib"
LIBDIR_arm64="lib64"
LIBDIR_n32="lib32"
LIBDIR_n64="lib64"
LIBDIR_o32="lib"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:
sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:
*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:
*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:
*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:
*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:
*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:
*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:
*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:
*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:
*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:
*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j8"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.5/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.25.1/man"
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec)"
MULTIOSDIRS="../lib64"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.5"
PHP_INI_VERSION="production"
PHP_TARGETS="php5-5"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips nios2 ppc ppc-aix ppc-macos ppc-openbsd ppc64 ppc64-linux riscv s390 sh sparc sparc-fbsd sparc-solaris sparc64-freebsd sparc64-solaris x64-cygwin x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.4"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_NICENESS="19"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib64/python3.4/site-packages"
PORTAGE_PYTHONPATH="/usr/lib64/python3.4/site-packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima    security.selinux system.nfs4_acl"
PORT_LOGDIR="/var/log/portage"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PROFILE_IS_HARDENED="1"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PS1="(chroot) \[\033]0;\u@\h:\w\007\]\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] "
PWD="/usr"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7 python3_4"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby20 ruby21"
SHELL="/bin/bash"
SHLVL="2"
SSH_CLIENT="192.168.178.9 46833 22"
SSH_CONNECTION="192.168.178.9 46833 192.168.178.63 22"
SSH_TTY="/dev/pts/1"
SYMLINK_LIB="yes"
TERM="xterm"
UNINSTALL_IGNORE="/lib/modules/* /var/run /var/lock"
USE="amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri gd hardened iconv imagemagick imap justify lzo maildir mailwrapper mbox mmx mmxext modules mysql ncurses nptl nptlonly openmp pam pax_kernel pcre pdo perlsuid pie readline seccomp session sse sse2 ssl ssp suidperl svg tiff unicode urandom xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="itk" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USER="root"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_X86 CROSSCOMPILE_OPTS CURL_SSL DRACUT_MODULES DVB_CARDS ELIBC ENLIGHTENMENT_MODULES FCDSL_CARDS FFTOOLS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips nios2 ppc ppc64 ppc64-linux ppc-aix ppc-macos ppc-openbsd riscv s390 sh sparc sparc64-freebsd sparc64-solaris sparc-fbsd sparc-solaris x64-cygwin x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

(chroot) livecd usr #


Many thanks for looking into this.

Gave LS_COLORS a break (or breaks, rather) to prevent it from pushing the forum layout way over yonder for some browsers. —Chiitoo
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Nov 30, 2015 8:01 am    Post subject: Reply with quote

guid0 ... nothing unusual there ... other than perhaps the hardened. Can you try the following:

Code:
# export LC_ALL="C"
# source /etc/profile
# locale

Also, are you perhaps ssh'ing in from a machine with the nl_NL-UTF-8 locale?

best ... khay
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2614

PostPosted: Mon Nov 30, 2015 8:01 am    Post subject: Reply with quote

guid0 wrote:
Configuring pkg...

/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 66: warning: setlocale: LC_NUMERIC: cannot change locale (nl_NL.UTF-8)
/var/tmp/portage/sys-libs/timezone-data-2015f/temp/environment: line 68: warning: setlocale: LC_TIME: cannot change locale (nl_NL.UTF-8)
* Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam

(chroot) livecd / # cat /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8

(chroot) livecd / # locale-gen
* Generating 2 locales (this might take a while) with 1 jobs
* (1/2) Generating en_US.ISO-8859-1 ... [ ok ]
* (2/2) Generating en_US.UTF-8 ... [ ok ]
* Generation complete

What if you added nl_NL.UTF-8 UTF-8 to /etc/locale.gen and did another # locale-gen?
Would timezone-data still complain about LC_NUMERIC and LC_TIME?
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Mon Nov 30, 2015 8:32 am    Post subject: Reply with quote

khayyam wrote:
guid0 ... nothing unusual there ... other than perhaps the hardened. Can you try the following:

Code:
# export LC_ALL="C"
# source /etc/profile
# locale

Also, are you perhaps ssh'ing in from a machine with the nl_NL-UTF-8 locale?

I have several machines from which i ssh in. Current machine indeed has nl_NL.UTF-8 set. Other machines do not have this.

best ... khay

Code:

(chroot) livecd ~ # export LC_ALL="C"
(chroot) livecd ~ # source /etc/profile
livecd ~ # locale
LANG=en_US.utf8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
livecd ~ #
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Mon Nov 30, 2015 8:35 am    Post subject: Reply with quote

charles17 wrote:
What if you added nl_NL.UTF-8 UTF-8 to /etc/locale.gen and did another # locale-gen?
Would timezone-data still complain about LC_NUMERIC and LC_TIME?


That seems to help remove the errormessages. I did leave chroot for a bit to negate the effects of my previous response/post.

Code:
livecd / # locale-gen
 * Generating 3 locales (this might take a while) with 1 jobs
 *  (1/3) Generating en_US.ISO-8859-1 ...                                                                                                                                                                      [ ok ]
 *  (2/3) Generating en_US.UTF-8 ...                                                                                                                                                                           [ ok ]
 *  (3/3) Generating nl_NL.UTF-8 ...                                                                                                                                                                           [ ok ]
 * Generation complete
livecd / # emerge --config sys-libs/timezone-data


Configuring pkg...

 * Updating /etc/localtime with /usr/share/zoneinfo/Europe/Amsterdam

livecd / # locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Nov 30, 2015 9:06 am    Post subject: Reply with quote

guid0 wrote:
khayyam wrote:
Also, are you perhaps ssh'ing in from a machine with the nl_NL-UTF-8 locale?

I have several machines from which i ssh in. Current machine indeed has nl_NL.UTF-8 set. Other machines do not have this.

guid0 ... ok, its due to the changes to sshd_config that came as the result of bug 367017. So, comment that line, restart sshd, logout, login. Either that or generate ALL the locales you might expect to have in the env.

best ... khay
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Mon Nov 30, 2015 9:19 am    Post subject: Reply with quote

I have the same issues on my shellbox. Which only seem to have LC_COLLATE
Code:
guid0@box ~ $ env|grep LC
LC_COLLATE=C


It feels like something I should be ignoring for now..
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 319
Location: The Netherlands / Nederland

PostPosted: Mon Nov 30, 2015 9:25 am    Post subject: Reply with quote

I did not realize that sshd now supports passing locales from the client. Although I have -nls as a useflag throughout , this could confuse some of my manually run expect scripts!

Thanks a lot for helping and pointing out the root-cause of the issue!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum