<?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>7829</bug_id>
          
          <creation_ts>2015-05-31 21:29:32 +0000</creation_ts>
          <short_desc>Bitbake shouldn&apos;t complain about empty method</short_desc>
          <delta_ts>2016-02-22 08:26:11 +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.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Igor Stoppa">igor.stoppa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>daniel.alexandrux.istrate</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51371</commentid>
    <comment_count>0</comment_count>
    <who name="Igor Stoppa">igor.stoppa</who>
    <bug_when>2015-05-31 21:29:32 +0000</bug_when>
    <thetext>Sometimes one might want to override a default method.
For example, I wanted to prevent the execution of the real do_build, so I created an empty one:

python do_build () {
}

This apparently simple trick didn&apos;t work, I got the error: 
&quot; ... Failure expanding variable do_build: IndexError: string index out of range&quot;


changing the method to:

python do_build () {
# gibberish
}

did the trick.

The limitation imposed seems unnecessary.

Btw, I still didn&apos;t get any line number for the error, which tends to be annoying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51974</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-06-27 21:53:39 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=dcbbe545bf5dbd34c8e2f934a33e59e5d38843cc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59070</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2016-02-16 09:02:30 +0000</bug_when>
    <thetext>Verified on master: 36b43b233c841b3c09fc17e04686b4b758780963

Steps:

1. git checkout 43c6e8c0dd7a7139b476b94d69a0252c639393bf
2. Create meta-selftest/recipes-test/ed/ed_1.9.bbappend and add
python do_build () {
}
3. bitbake ed --&gt;
NOTE: Error during finalise of /home/daniel/poky/meta/recipes-extended/ed/ed_1.9.bb                                      | ETA:  00:00:18
ERROR: ExpansionError during parsing /home/daniel/poky/meta/recipes-extended/ed/ed_1.9.bb: Failure expanding variable do_build: IndexError: string index out of range
4. git checkout master
5. bitbake ed --&gt; build successfully</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>