Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"source /etc/profile" not persistent on new install
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
Melsion
n00b
n00b


Joined: 01 Nov 2007
Posts: 33

PostPosted: Wed May 25, 2016 6:44 pm    Post subject: "source /etc/profile" not persistent on new instal Reply with quote

So... I just bought a new computer (substituting my ancient Athlon X2) and decided to do a clean gentoo install on it.

My problem appeared when configuring my locales, I'm spanish so I setup my locale.gen file with: es_ES.UTF-8 UTF-8, generated locales, and set localectl (I'm using systemd) wich returns this:
Code:

   System Locale: LANG=es_ES.utf8
       VC Keymap: es
      X11 Layout: es
       X11 Model: pc105
     X11 Options: terminate:ctrl_alt_bksp


I enter env-update && source /etc/profile and everything works wonderfully, locale returns this:
Code:

LANG=es_ES.utf8
LC_CTYPE="es_ES.utf8"
LC_NUMERIC="es_ES.utf8"
LC_TIME="es_ES.utf8"
LC_COLLATE="es_ES.utf8"
LC_MONETARY="es_ES.utf8"
LC_MESSAGES="es_ES.utf8"
LC_PAPER="es_ES.utf8"
LC_NAME="es_ES.utf8"
LC_ADDRESS="es_ES.utf8"
LC_TELEPHONE="es_ES.utf8"
LC_MEASUREMENT="es_ES.utf8"
LC_IDENTIFICATION="es_ES.utf8"
LC_ALL=


The problem appears when I open another console (also, I've rebooted several times trying to figure this one out), my locale configuration is completely ignored and locale output becomes this:
Code:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=es_ES.US-ASCII
LC_CTYPE="es_ES.US-ASCII"
LC_NUMERIC="es_ES.US-ASCII"
LC_TIME="es_ES.US-ASCII"
LC_COLLATE="es_ES.US-ASCII"
LC_MONETARY="es_ES.US-ASCII"
LC_MESSAGES="es_ES.US-ASCII"
LC_PAPER="es_ES.US-ASCII"
LC_NAME="es_ES.US-ASCII"
LC_ADDRESS="es_ES.US-ASCII"
LC_TELEPHONE="es_ES.US-ASCII"
LC_MEASUREMENT="es_ES.US-ASCII"
LC_IDENTIFICATION="es_ES.US-ASCII"
LC_ALL=


which I don't really know where does it come from. No matter how many times I do env-update && source /etc/profile, it only holds for the running session. I have three machines more with the same setup and they work perfectly. By the way, my /etc/env.d/02locale file looks like this:
Code:

LANG="es_ES.utf8"
LC_COLLATE="C"


I'm sure it must be something really stupid that I'm missing, but I swear this is driving me crazy (more than usual). I could add source /etc/profile to my .bashrc, but it would only work on consoles, some apps like QtCreator are misbehabing a little because of this. Any hints?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Wed May 25, 2016 7:23 pm    Post subject: Reply with quote

Have you tried turning it off and on again? Your sessions are tied to systemd, so anything involving an environment change is going to require a reboot from now on.
Back to top
View user's profile Send private message
Melsion
n00b
n00b


Joined: 01 Nov 2007
Posts: 33

PostPosted: Thu May 26, 2016 11:40 am    Post subject: Reply with quote

Yeah, rebooted several times. It's just not persistent between sessions. My guess is that it's a permission problem, but can't find the culprit.
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