[oe-commits] Richard Purdie : terminal.bbclass: Ensure parent environment is set

git at git.openembedded.org git at git.openembedded.org
Thu Nov 1 11:50:50 UTC 2012


Module: openembedded-core.git
Branch: master-next
Commit: 424d2339b462081010af6e7525a71f64d97ff05e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=424d2339b462081010af6e7525a71f64d97ff05e

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Oct 30 16:36:50 2012 +0000

terminal.bbclass: Ensure parent environment is set

If this isn't done, various terminals fail to launch correctly
with "No such file or directory" errors. This adds back the environment
manipulation removed in the addition of "custom" terminal command
support but shouldn't regress that additional functionality

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/terminal.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index 51846c1..4a3ddef 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -20,6 +20,7 @@ def oe_terminal(command, title, d):
     for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d):
         value = d.getVar(export, True)
         if value is not None:
+            os.environ[export] = str(value)
             env[export] = str(value)
 
     terminal = oe.data.typed_value('OE_TERMINAL', d).lower()





More information about the Openembedded-commits mailing list