Skip to contentSkip to conversation

lib/bb/utils.py: remove unnecessary preserved variables

PATCH New Paul Eggleton 1 participant 1 message Jun 21, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/bb/utils.py: remove unnecessary preserved variables

_ and LANG no longer need to be preserved from the external environment. The value of _ changes between non-pseudo-wrapped and pseudo-wrapped invocations (e.g. between "bitbake -p" and "bitbake target") and this will currently trigger a full reparse in the absence of a whitelist entry in BB_HASHCONFIG_WHITELIST, which is not ideal.

LANG used to be preserved in order to ensure the C locale was being used for tools invoked by bitbake, however we now set LC_ALL in bitbake.conf to take care of this.

Second part of the fix for [YOCTO #2600].

---
 lib/bb/utils.py |    2 --
 1 file changed, 2 deletions(-)
lib/bb/utils.py +0 -2
index fc389a3..c1e5a61 100644
@@ -422,8 +422,6 @@ def preserved_envvars():
         'BB_PRESERVE_ENV',
         'BB_ENV_WHITELIST',
         'BB_ENV_EXTRAWHITE',
-        'LANG',
-        '_',
     ]
     return v + preserved_envvars_exported() + preserved_envvars_exported_interactive()
 
Signature · 1 line
1.7.9.5