<?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>3112</bug_id>
          
          <creation_ts>2012-09-13 22:17:21 +0000</creation_ts>
          <short_desc>runqemu fails with misleading error message when bitbake -e fails with an error</short_desc>
          <delta_ts>2012-10-26 13:00:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>unspecified</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.3 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>sgw</cc>
    
    <cc>sstncr</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>25225</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-09-13 22:17:21 +0000</bug_when>
    <thetext>The runqemu script needs to determine TMPDIR in order to find the native sysroot to run qemu, tunctl, etc. It executes bitbake -e | grep ^TMPDIR in order to do this. However, in certain edge cases this command can fail to run, and when this happens you get the following error message:

Error: this script needs to be run from your build directory,
or you need to explicitly set OE_TMPDIR in your environment

Which is misleading, when, for example, bitbake is failing because LCONF_VERSION in bblayers.conf needs to be upgraded. 

In order to show this error message from bitbake, an additional check is needed to collect the error output of bitbake and show it to the user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25548</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-09-21 18:07:43 +0000</bug_when>
    <thetext>Fixed in oe-core and poky master as of:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=32fdbd879c83dae7c23ee0f17d0035bbae832495</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26966</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2012-10-26 13:00:22 +0000</bug_when>
    <thetext>Verified in 27af23e65f63b41962a7cfddba9e9372d5212396</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>