]> code.ossystems Code Review - openembedded-core.git/commitdiff
libc-package.bbclass: fix qemu issue with pseudo
authorNitin A Kamble <nitin.a.kamble@intel.com>
Wed, 8 Sep 2010 19:30:19 +0000 (12:30 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 10 Sep 2010 11:53:10 +0000 (12:53 +0100)
This solution is what Mark Hatle recommended.

To disable pseudo, while already running, you need to set:
PSEUDO_RELOADED=YES, and then exec something...

This causes pseudo to disable itself from LD_PRELOAD, and thus fall
out of memory on the exec.

This Fixes [BUGID #226]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
meta/classes/libc-package.bbclass

index c0e7176472099f334162ed49afc1d7251ef1b5e0..1c034e09bed6e01c994ba6bdf6e8f264ea94f76d 100644 (file)
@@ -266,7 +266,7 @@ python package_do_split_gconvs () {
                if not qemu_options:
                        qemu_options = bb.data.getVar('QEMU_OPTIONS', d, 1)
 
-               cmd = "PATH=\"%s\" I18NPATH=\"%s\" %s -L %s \
+               cmd = "PSEUDO_RELOADED=YES PATH=\"%s\" I18NPATH=\"%s\" %s -L %s \
                        -E LD_LIBRARY_PATH=%s %s %s/bin/localedef %s" % \
                        (path, i18npath, qemu, treedir, ldlibdir, qemu_options, treedir, localedef_opts)
                bb.note("generating locale %s (%s)" % (locale, encoding))