Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324239 - error: "unknown locale: UTF-8" with prefix-portage-2.2.00.15842
Summary: error: "unknown locale: UTF-8" with prefix-portage-2.2.00.15842
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 09:47 UTC by Gijs Molenaar
Modified: 2010-07-29 23:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gijs Molenaar 2010-06-16 09:47:27 UTC
When I follow the steps to bootstrap a gentoo prefix described here:

  http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml

I can't continue beyond "emerge --oneshot sed" since emerge is complaining:

Traceback (most recent call last):
  File "/Gentoo/usr/bin/emerge", line 45, in <module>
    retval = emerge_main()
  File "/Gentoo/usr/lib/portage/pym/_emerge/main.py", line 1556, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/Gentoo/usr/lib/portage/pym/_emerge/actions.py", line 69, in action_build
    old_tree_timestamp_warn(settings['PORTDIR'], settings)
  File "/Gentoo/usr/lib/portage/pym/_emerge/sync/old_tree_timestamp.py", line 92, in old_tree_timestamp_warn
    if have_english_locale():
  File "/Gentoo/usr/lib/portage/pym/_emerge/sync/old_tree_timestamp.py", line 16, in have_english_locale
    lang, enc = locale.getdefaultlocale()
  File "/Gentoo/tmp/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
    return _parse_localename(localename)
  File "/Gentoo/tmp/usr/lib/python2.6/locale.py", line 418, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8

I have a clean English OSX installation.

Adding the following lines somewhere around line 418 in ${EPREFIX}/tmp/usr/lib/python2.6/locale.py fixes the problem (i think):

    elif code == 'UTF-8':
        return None, None



Reproducible: Always

Steps to Reproduce:
1. bootstrap a gentoo OSX environment
2. emerge something with  prefix-portage
3.

Actual Results:  
no gentoo environment

Expected Results:  
A nice and shiny gentoo environment
Comment 1 Fabian Groffen gentoo-dev 2010-07-02 14:26:28 UTC
has this weirdness been reproducable at all?