#11857 NORM Not Tri: olpc-os-builder: x11/kspost.99.gconf-normalize.inc: locale.Error: unsupported locale setting

Zarro Boogs per Child bugtracker at laptop.org
Tue May 15 04:16:51 EDT 2012

#11857: olpc-os-builder: x11/kspost.99.gconf-normalize.inc: locale.Error:
unsupported locale setting
           Reporter:  sascha_silbe  |       Owner:  dsd                               
               Type:  defect        |      Status:  new                               
           Priority:  normal        |   Milestone:  Not Triaged                       
          Component:  not assigned  |     Version:  Development source as of this date
         Resolution:                |    Keywords:                                    
        Next_action:  never set     |    Verified:  0                                 
Deployment_affected:                |   Blockedby:                                    
           Blocking:                |  

Comment(by sascha_silbe):

 I haven't tried your patch, but I did try unsetting LANG and it worked
 indeed. So there are two bugs here:

  1. locale.setlocale() failing for LC_ALL=C, LANG=en_GB if no en_GB locale
 is available. Not sure whether it breaks in Python or in glibc.
  1. olpc-os-builder (or kickstart) not sanitising the environment. Please
 note that the are various other variables that may have unintended
 consequences for the image: LC_*, LINGUAS, CFLAGS, to name just a few.
 Even shell functions can unexpectedly break things in rather non-obvious
 ways (e.g. [https://bugs.gentoo.org/show_bug.cgi?id=43793 a convenience
 alias "dir" caused gcc build to break on Gentoo]). The only sane way to
 handle this is to use a clean environment for building. If some
 environment variables were needed to customise the build, they should be
 set in the olpc-os-builder / kickstart configuration file and not taken
 from the environment of whoever is running the build today.

Ticket URL: <http://dev.laptop.org/ticket/11857#comment:2>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system

More information about the Bugs mailing list