<?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>5063</bug_id>
          
          <creation_ts>2013-08-28 14:18:36 +0000</creation_ts>
          <short_desc>running bitbake from a location inside build/ gives python trace call</short_desc>
          <delta_ts>2013-10-01 15:23:25 +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.5</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>01 October 2013 - Completed Doc requirement</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35994</commentid>
    <comment_count>0</comment_count>
      <attachid>1445</attachid>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-08-28 14:18:36 +0000</bug_when>
    <thetext>Created attachment 1445
python trace call

master:2051e4dff4384e1b618a050aeebf72a76cadab4b

1) clone poky master
2) source the build environment
3) change current directory to build/conf
4) issue command &quot;bitbake man&quot;

Notice Python trace call (see attached)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36028</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-08-29 10:04:29 +0000</bug_when>
    <thetext>After talked with Paul E, it seems that we had two methods to fix it:

1) Change the include conf/local.conf to require con/local.conf

Or

2) Add a check for CONF_VERSION in sanity.bbclass, sys.exit(1) if it is None,
   but this is a little late since the cache, sstate-cache and tmp-eglibc dirs
   would be created in the conf dir.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36029</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-08-29 10:09:35 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; After talked with Paul E, it seems that we had two methods to fix it:
&gt; 
&gt; 1) Change the include conf/local.conf to require con/local.conf
&gt; 

For the way 1, the problem is that there maybe really a loca.conf, but we are just looking for it in the wrong place.

&gt; Or
&gt; 
&gt; 2) Add a check for CONF_VERSION in sanity.bbclass, sys.exit(1) if it is None,
&gt;    but this is a little late since the cache, sstate-cache and tmp-eglibc
&gt; dirs
&gt;    would be created in the conf dir.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36033</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-08-29 12:33:55 +0000</bug_when>
    <thetext>
RP&apos;s Patch, and the document needs update:
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rpurdie/wip76

this means we&apos;d now support:
a) running bitbake xxx anywhere within a build directory (the first patch)
b) running bitbake xxx anywhere at all if BBPATH is set to the build directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36035</commentid>
    <comment_count>4</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-08-29 12:37:15 +0000</bug_when>
    <thetext>Test cases created:
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=789
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=790

Will add them to future master branch Test Runs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36346</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-09-05 15:19:11 +0000</bug_when>
    <thetext>Resolved with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c7a389729a5453bf090f05946bfa64413a5e04ed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37430</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-01 14:46:51 +0000</bug_when>
    <thetext>Verified in:
poky master:2f64fae60b3f61a2c45dc9e5314d2d16b1e64605</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37432</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-01 15:07:11 +0000</bug_when>
    <thetext>Hi, 

I am not convinced that we need to change the documentation for this bug.  Right now, we specify that TOPDIR points to the build directory.  Within the documentation set, we do not restrict the user to being in any specific directory when they run the &apos;bitbake&apos; command.  

I am going to mark the docs as not needed here.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37433</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-01 15:23:25 +0000</bug_when>
    <thetext>Hi, 

After talking with Corneliu about this bug it was decided a small documentation change for the BBPATH variable was in order.  I added a note to the definition stating that if you run bitbake from outside the build directory, you need to have BBPATH set to point to the build directory.  You can see the change here - http://www.yoctoproject.org/docs/1.5/ref-manual/ref-manual.html#var-BBPATH

I updated the doc requirement to &quot;done&quot;.

Scott</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1445</attachid>
            <date>2013-08-28 14:18:36 +0000</date>
            <delta_ts>2013-08-28 14:18:36 +0000</delta_ts>
            <desc>python trace call</desc>
            <filename>file_5063.txt</filename>
            <type>text/plain</type>
            <size>2205</size>
            <attacher name="Stoicescu Cornel">corneliux.stoicescu</attacher>
            
              <data encoding="base64">RVJST1I6IEVycm9yIGV4ZWN1dGluZyBhIHB5dGhvbiBmdW5jdGlvbiBpbiAvaG9tZS9jb3JuZWwv
U1NELzJwb2t5L2J1aWxkL2NvbmYvYmJsYXllcnMuY29uZjoNCg0KVGhlIHN0YWNrIHRyYWNlIG9m
IHB5dGhvbiBjYWxscyB0aGF0IHJlc3VsdGVkIGluIHRoaXMgZXhjZXB0aW9uL2ZhaWx1cmUgd2Fz
Og0KRmlsZTogJ29lY29yZV91cGRhdGVfYmJsYXllcnMnLCBsaW5lbm86IDQ2LCBmdW5jdGlvbjog
PG1vZHVsZT4NCiAgICAgMDA0MjoNCiAgICAgMDA0MzogICAgc3lzLmV4aXQoKQ0KICAgICAwMDQ0
Og0KICAgICAwMDQ1Og0KICoqKiAwMDQ2Om9lY29yZV91cGRhdGVfYmJsYXllcnMoZCkNCiAgICAg
MDA0NzoNCkZpbGU6ICdvZWNvcmVfdXBkYXRlX2JibGF5ZXJzJywgbGluZW5vOiAxNSwgZnVuY3Rp
b246IG9lY29yZV91cGRhdGVfYmJsYXllcnMNCiAgICAgMDAxMTogICAgaWYgY3VycmVudF9sY29u
ZiA8IDQ6DQogICAgIDAwMTI6ICAgICAgICBzeXMuZXhpdCgpDQogICAgIDAwMTM6DQogICAgIDAw
MTQ6ICAgIGJibGF5ZXJzX2ZuID0gYmJsYXllcnNfY29uZl9maWxlKGQpDQogKioqIDAwMTU6ICAg
IGxpbmVzID0gc2FuaXR5X2NvbmZfcmVhZChiYmxheWVyc19mbikNCiAgICAgMDAxNjoNCiAgICAg
MDAxNzogICAgaWYgY3VycmVudF9sY29uZiA9PSA0IGFuZCBsY29uZl92ZXJzaW9uID4gNDoNCiAg
ICAg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