<?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>11402</bug_id>
          
          <creation_ts>2017-04-21 21:32:20 +0000</creation_ts>
          <short_desc>Refkit: Error when sourcing refkit-init-build-env outside of intel-iot-refkit directory tree</short_desc>
          <delta_ts>2017-05-17 19:04:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>IoT Reference OS Kit</product>
          <component>intel-iot-refkit-tools</component>
          <version>2.3</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>2.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Bruce">henry.bruce</reporter>
          <assigned_to name="Mikko Ylinen">mikko.ylinen</assigned_to>
          <cc>brian.avery</cc>
          
          
          <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>72771</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2017-04-21 21:32:20 +0000</bug_when>
    <thetext>&apos;source refkit-init-build-env&apos; fails when run outside of intel-iot-refkit directory tree

Steps to re-create
-------------------
$ cd ~
$ mkdir work
$ git clone --recursive https://github.com/intel/intel-iot-refkit.git
$ cd ~/work
$ source ~/intel-iot-refkit/refkit-init-build-env
Error: The bitbake directory (/home/hbruce/work/bitbake) does not exist!  Please ensure a copy of bitbake exists at this location or specify an alternative path on the command line

Contrast to behavior with poky
-------------------------------
$ cd ~
$ mkdir work
$ git clone https://git.yoctoproject.org/git/poky
$ cd ~/work
$ source ~/poky/oe-init-build-env
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. 
...
You can also run generated qemu images with a command like &apos;runqemu qemux86&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72828</commentid>
    <comment_count>1</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2017-04-25 14:33:40 +0000</bug_when>
    <thetext>As poky allows build workspace to be in a different directory tree from the meta-data, developers will expect this behavior to be supported by RefKit even though it is not the documented procedure. People to hit this issue so far include Brian Avery (Intel) and Khem Raj (Comcast). If bug is not addressed this number will grow over time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73108</commentid>
    <comment_count>2</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-05-08 11:06:34 +0000</bug_when>
    <thetext>A fix submitted: https://github.com/intel/intel-iot-refkit/pull/149</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73139</commentid>
    <comment_count>3</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-05-09 12:16:06 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; A fix submitted: https://github.com/intel/intel-iot-refkit/pull/149

Henry, Brian: can you please give the review feedback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73298</commentid>
    <comment_count>4</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-05-17 19:02:58 +0000</bug_when>
    <thetext>The fix is now merged</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73299</commentid>
    <comment_count>5</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-05-17 19:03:34 +0000</bug_when>
    <thetext>The fix is now merged</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>