Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133758

Summary: unset LC_ALL in the portage build env to allow english error messages
Product: Portage Development Reporter: Stefan Schweizer (RETIRED) <genstef>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: andres, jakub, truedfx
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: force LC_ALL=C in the ebuild env and allow PORTAGE_LC_ALL to override it

Description Stefan Schweizer (RETIRED) gentoo-dev 2006-05-19 02:15:53 UTC
Can we please disable locales in the portage build environment to make the gcc error-messages english only?

Also it solves bugs that only happen with a specific locale, like the et_EE ones which are pretty annoying:
http://tinyurl.com/jsqzb

This is currently a bug because I cannot change LC_ALL in make.conf and thus am not able to have german manpages and english compiler output.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-19 02:42:49 UTC
*** Bug 133747 has been marked as a duplicate of this bug. ***
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2006-05-19 06:06:47 UTC
> This is currently a bug because I cannot change LC_ALL in make.conf and thus am
> not able to have german manpages and english compiler output.

The order is (currently) profile.env - user environment - make.conf. To get what you want, you can just create an entry in /etc/env.d/ with LC_ALL=C, while your .bashrc (or whatever) sets LC_ALL to something else to get your manpages in German.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-19 06:08:56 UTC
zmedico has already made a patch for this: http://dev.gentoo.org/~zmedico/tmp/portage_lc_all.patch
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-19 11:07:30 UTC
I set my LC_ALL=de_DE.utf8 in my /etc/env.d/02locale like advise in the official gentoo documentation[1]. I do not use the bashrc-file and I am not able to set a systemwide default in the .bashrc, but I want to have this systemwide, since all my family that is using the computer speaks the same language that I speak. I would not want to modify every user account and the skeleton for every new user account - it is just wrong.

also see the official doc about this
[1] http://www.gentoo.org/doc/en/utf-8.xml
at "Setting the Locale"

just explaining why this solution is not feasible

Please consider applying it now to portage rather then later, because when we apply it now it can get a little more testing.
Comment 5 Zac Medico gentoo-dev 2006-05-19 11:09:07 UTC
Created attachment 87069 [details, diff]
force LC_ALL=C in the ebuild env and allow PORTAGE_LC_ALL to override it

(In reply to comment #3)
> zmedico has already made a patch for this:
> http://dev.gentoo.org/~zmedico/tmp/portage_lc_all.patch

Now attached.
Comment 6 Zac Medico gentoo-dev 2006-05-19 11:22:27 UTC
(In reply to comment #4)
> I would not want to modify every user account and the
> skeleton for every new user account - it is just wrong.

You can export LC_ALL=C in /etc/portage/bashrc.
Comment 7 Zac Medico gentoo-dev 2006-05-19 11:36:56 UTC
There are essentially two ways to look at this type of issue.  You can say that portage doesn't protect the build environment adequately, but you can also say that the build is too fragile.  I lean toward the latter, because fragile builds can and should be fixed IMO.  Historically, that's been the portage team's stance, so I'm duping it...

*** This bug has been marked as a duplicate of 57973 ***