<div dir="ltr"><div><div>Sorry, I mistakenly sent a useless file xxxxxxxxxx file with this patch, please ignore it, will send a V2 soon.<br></div><br></div>//Ming Liu<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-13 15:25 GMT+08:00  <span dir="ltr">&lt;<a href="mailto:liu.ming50@gmail.com" target="_blank">liu.ming50@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Ming Liu &lt;<a href="mailto:liu.ming50@gmail.com">liu.ming50@gmail.com</a>&gt;<br>
<br>
A flaw was found on my Ubuntu 14.04.5 LTS, on which that gnome-terminal is<br>
the default terminal, when I run any of the tasks:<br>
bitbake busybox -c menuconfig/devshell/devpyshell<br>
bitbake virtual/kernel -c menuconfig/devshell/devpyshell<br>
<br>
I got a error as follows:<br>
&quot;Failed to execute child process &quot;oe-gnome-terminal-phonehome&quot; (No such file or directory)&quot;<br>
<br>
Seems the environment of the process calling Popen is not passed to the<br>
child process, this behaviour is a known issue in Python bug tracker:<br>
<a href="http://bugs.python.org/issue8557" rel="noreferrer" target="_blank">http://bugs.python.org/<wbr>issue8557</a><br>
<br>
It could be fixed by using an absolute path instead per test.<br>
<br>
Signed-off-by: Ming Liu &lt;<a href="mailto:liu.ming50@gmail.com">liu.ming50@gmail.com</a>&gt;<br>
---<br>
 meta/lib/oe/terminal.py | 2 +-<br>
 xxxxxxxxxx              | 0<br>
 2 files changed, 1 insertion(+), 1 deletion(-)<br>
 create mode 100644 xxxxxxxxxx<br>
<br>
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py<br>
index 9eb19a2..94afe39 100644<br>
--- a/meta/lib/oe/terminal.py<br>
+++ b/meta/lib/oe/terminal.py<br>
@@ -224,7 +224,7 @@ def spawn(name, sh_cmd, title=None, env=None, d=None):<br>
     import time<br>
     pidfile = tempfile.NamedTemporaryFile(<wbr>delete = False).name<br>
     try:<br>
-        sh_cmd = &quot;oe-gnome-terminal-phonehome &quot; + pidfile + &quot; &quot; + sh_cmd<br>
+        sh_cmd = bb.utils.which(os.getenv(&#39;<wbr>PATH&#39;), &quot;oe-gnome-terminal-phonehome&quot;) + &quot; &quot; + pidfile + &quot; &quot; + sh_cmd<br>
         pipe = terminal(sh_cmd, title, env, d)<br>
         output = pipe.communicate()[0]<br>
         if output:<br>
diff --git a/xxxxxxxxxx b/xxxxxxxxxx<br>
new file mode 100644<br>
index 0000000..e69de29<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.4<br>
<br>
</font></span></blockquote></div><br></div>