<?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>1229</bug_id>
          
          <creation_ts>2011-07-07 20:25:56 +0000</creation_ts>
          <short_desc>bitbake-runtask doesn&apos;t work in both 1.0.1 and 1.1</short_desc>
          <delta_ts>2012-03-12 07:55:10 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.2</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>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</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>14617</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2011-07-07 20:25:56 +0000</bug_when>
    <thetext>There is the following code in bitbake/bin/bitbake-runtask:

cooker.bb_cache.setData(fn, buildfile, the_data)
cooker.bb_cache.handle_data(fn, cooker.status)

The API setData has been removed in 1.0.1 and 1.1, so it doesn&apos;t work, I think that replace them by:

cooker.bb_cache.handle_data(fn, cooker.status) 

would make it work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16991</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-10-31 03:48:10 +0000</bug_when>
    <thetext>This is not an enhancement request, bitbake-runtask exists and its broken. That is a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17397</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-25 03:34:12 +0000</bug_when>
    <thetext>Fixed in master http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=37c4f373e42b54f6c65b8482bd1172563fbc1ea5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17444</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-12-01 00:50:12 +0000</bug_when>
    <thetext>verified on following git commit :
commit 4cd96710785eb05abeff1f281878655118d4a7dd
Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Fri Nov 25 14:57:53 2011 +0000

    bitbake: Update users of getVar/setVar to use the data store functions direc
   
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
 
git branch: poky/master

test steps:
1.set build env.
2.run &quot;bitbake man-1.6f&quot;.
3.run &quot;bitbake man-1.6f -cclean&quot;.
4.run &quot;bitbake-runtask man_1.6f do_fetch&quot; .
also run &quot;bitbake-runtask man_1.6f do_unpack&quot;,&quot;bitbake-runtask man_1.6f do_patch&quot;,&quot;bitbake-runtask man_1.6f do_configure&quot;,&quot;bitbake-runtask man_1.6f 
do_compile&quot;,&quot;bitbake-runtask man_1.6f do_install&quot;,&quot;bitbake-runtask man_1.6f do_populate_lic&quot;,&quot;bitbake-runtask man_1.6f do_populate_sysroot&quot;
5.check return value of these command using &quot;echo $?&quot;,all get 0.
6.check related logs in tmp/work/ppc603e-poky-linux/man-1.6f-r1/temp (qemuppc for example)

test following platforms:
qemux86,qemux86-64,qemuppc,qemumips,qemuarm,mpc8315e-rdb

no error met execute bitbake-runtask,so change status to verified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18860</commentid>
    <comment_count>4</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-03-05 04:01:18 +0000</bug_when>
    <thetext>bitbake-runtask can not work on 1.2 M3 RC1:
git info : 320558f494c618f53e0c773db3ea0109476e8359
git branch : 1.2_M3

test steps just as Comment 3:
when run &quot;bitbake-runtask man_1.6f do_fetch&quot; ,errors below found:
ERROR: Build of do_fetch failed
ERROR: Traceback (most recent call last):
  File &quot;/buildarea1/tester/test_git/bitbake/lib/bb/build.py&quot;, line 386, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File &quot;/buildarea1/tester/test_git/bitbake/lib/bb/build.py&quot;, line 376, in _exec_task
    make_stamp(task, localdata)
  File &quot;/buildarea1/tester/test_git/bitbake/lib/bb/build.py&quot;, line 431, in make_stamp
    stamp = stamp_internal(task, d, file_name)
  File &quot;/buildarea1/tester/test_git/bitbake/lib/bb/build.py&quot;, line 420, in stamp_internal
    stamp = bb.parse.siggen.stampfile(stamp, file_name, taskname, extrainfo)
  File &quot;/buildarea1/tester/test_git/bitbake/lib/bb/siggen.py&quot;, line 222, in stampfile
    h = self.taskhash[k]
KeyError: &apos;/buildarea1/tester/test_git/meta/recipes-extended/man/man_1.6f.bb.do_fetch&apos;

when change &quot;do_fecth&quot; to others such as &quot;do_unpack&quot;, same error as above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18897</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-07 20:28:50 +0000</bug_when>
    <thetext>Whilst the error is pretty nasty, if you set BB_SIGNATURE_HANDLER = &apos;OEBasic&apos;, the error will not happen.

The problem is the default handler, OEBasicHash is not going to be compatible with the bitbake-runtask mechanism of running tasks since there is no task signature data to use with the stamp. I&apos;m therefore not sure this is an error we can fix, it just needs to be documented as something that is not expected to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18899</commentid>
    <comment_count>6</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-03-08 03:58:15 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Whilst the error is pretty nasty, if you set BB_SIGNATURE_HANDLER = &apos;OEBasic&apos;,
&gt; the error will not happen.
&gt; 
&gt; The problem is the default handler, OEBasicHash is not going to be compatible
&gt; with the bitbake-runtask mechanism of running tasks since there is no task
&gt; signature data to use with the stamp. I&apos;m therefore not sure this is an error
&gt; we can fix, it just needs to be documented as something that is not expected to
&gt; work.

Thanks your advice, I have tried that :
change following part of file &quot;meta-yocto/conf/distro/poky.conf&quot;: 
# Default hash policy for distro
BB_SIGNATURE_HANDLER ?= &apos;OEBasicHash&apos;
to :
# Default hash policy for distro
BB_SIGNATURE_HANDLER ?= &apos;OEBasic&apos;

then rerun steps in Comment 3,bitbake-runtask can work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18908</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-03-08 17:37:21 +0000</bug_when>
    <thetext>This needs to have a reasonable error message vs the Python backtrace</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18961</commentid>
    <comment_count>8</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-03-12 04:52:46 +0000</bug_when>
    <thetext>Fixed:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=664fb2753798da8f4ea6a5556c6ada986fdda8e9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18962</commentid>
    <comment_count>9</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-03-12 07:55:10 +0000</bug_when>
    <thetext>bitbake-runtask can work using steps in Comment 3:
git info:fe0659991b826eb3b4163743d29533fe5f91cb12
git branch: poky/master

next weekly test if no error met, will change to verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>