<?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>487</bug_id>
          
          <creation_ts>2010-10-19 01:51:57 +0000</creation_ts>
          <short_desc>[bash] job control doesn&apos;t work: e.g., fg/bg of bash not available</short_desc>
          <delta_ts>2011-11-04 10:09:20 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Qing He">qing.he</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>10659</commentid>
    <comment_count>0</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-19 01:51:57 +0000</bug_when>
    <thetext>The fb/bg subcommand cannot run in bash, this also fails bash testsuite

reproduce step:
  $ bash
  $ fg
  bash: fg: command not found


expected result: &quot;no current job&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10693</commentid>
    <comment_count>1</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-20 01:52:11 +0000</bug_when>
    <thetext>job control can&apos;t be detected when cross-compiling, can be enabled explicitly by &quot;--enable-job-control&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10697</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-20 02:29:32 +0000</bug_when>
    <thetext>Fixed in master in http://git.pokylinux.org/cgit.cgi/poky/commit/?id=9393ff833f44570fd5f500bc9de6c72db94b0296</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17012</commentid>
    <comment_count>3</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-10-31 23:09:50 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; job control can&apos;t be detected when cross-compiling, can be enabled explicitly
&gt; by &quot;--enable-job-control&quot;

Actually this doesn&apos;t work.  --enable-job-control is only a hint of wanting job control to work -- it can&apos;t 100% make sure the feature is properly enabled.

The config script actually reports:

configure:29262: checking for presence of necessary job control definitions
configure:29268: WARNING: cannot check job control if cross-compiling -- defaulting to missing
configure:29362: result: missing


According to the discussions at 
http://www.mail-archive.com/bug-bash@gnu.org/msg03107.html,
looks &quot;export bash_cv_job_control_missing=present&quot; would work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17013</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-10-31 23:13:32 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #1)
&gt; &gt; job control can&apos;t be detected when cross-compiling, can be enabled explicitly
&gt; &gt; by &quot;--enable-job-control&quot;
&gt; 
&gt; Actually this doesn&apos;t work.  --enable-job-control is only a hint of wanting job
&gt; control to work -- it can&apos;t 100% make sure the feature is properly enabled.
BTW, busybox&apos;s sh does support job control properly.
In core-image-minimal, busybox&apos;s sh is used by default, so people might think the bug has been fixed...
In core-image-sato, the bash from the recipe bash is used and we can reproduce this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17015</commentid>
    <comment_count>5</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-11-01 01:09:42 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #1)
&gt; &gt; job control can&apos;t be detected when cross-compiling, can be enabled explicitly
&gt; &gt; by &quot;--enable-job-control&quot;
&gt; 
&gt; Actually this doesn&apos;t work.  --enable-job-control is only a hint of wanting job
&gt; control to work -- it can&apos;t 100% make sure the feature is properly enabled.
&gt; 
&gt; The config script actually reports:
&gt; 
&gt; configure:29262: checking for presence of necessary job control definitions
&gt; configure:29268: WARNING: cannot check job control if cross-compiling --
&gt; defaulting to missing
&gt; configure:29362: result: missing
&gt; 
&gt; 
&gt; According to the discussions at 
&gt; http://www.mail-archive.com/bug-bash@gnu.org/msg03107.html,
&gt; looks &quot;export bash_cv_job_control_missing=present&quot; would work.


BTW, I worked out a fix and sent to oe-core ML:
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=dcui/bug487&amp;id=ac7b821f266e932e267a4d62af83586ba3261a98.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17110</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-04 10:09:20 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3b856e1cdf38705f1ae79df09e7e6f388673a683</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>