<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1518</bug_id>
          
          <creation_ts>2011-09-22 15:40:44 +0000</creation_ts>
          <short_desc>Usage of spawned terminals is inconsistent</short_desc>
          <delta_ts>2011-11-04 10:07:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16420</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-09-22 15:40:44 +0000</bug_when>
    <thetext>A number of recipe steps may require a spawned terminal instance, e.g. patch resolution.

In some cases, this is handled via the configuration variables TERMCMD and TERMCMDRUN.
However, for other cases, in particular &apos;devshell&apos; and &apos;menuconfig&apos;, it is now handled
by the terminal class (oe_terminal).

The choice of what terminal type (GNOME, XTERM, ...) is inconsistent between these two
methods.  One way specifies them directly, the other relies on the *undocumented* variable 
OE_TERMINAL.

A worrisome case is &apos;bitbake virtual/kernel -c menuconfig&apos;.  This used to use the TERMCMD
style and was easily controlled.  It now uses terminal.bbclass and fails, at least in
the default, because of the undocumented setup above.  As is, I can no longer run this
step on a separate machine connected via SSH tunnels (GNOME terminal and bitbake don&apos;t
play well in this environment, as previously reported)

This change was introduced in commit 04c66de8abfd820380fcfc2882b84650ac0220d5

I think things should only be done one way; either put it back or make it consistent
and fully documented, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17084</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-03 16:15:47 +0000</bug_when>
    <thetext>Can you try adding the couple of patches I&apos;ve posted on the list in the last few hours (patch: Convert to use oe_terminal and bitbake.conf: Drop remaining TERMCMD pieces and document OE_TERMINAL usage instead) and see where things stand?

The intention is just to have OE_TERMINAL controlling everything. menuconfig is working quite nicely for me so if there are problems with that I&apos;d like to know about them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17109</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-04 10:07:31 +0000</bug_when>
    <thetext>Fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=426ad821065c50fc008a140e5b2334d2c97511c3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>