<?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>12163</bug_id>
          
          <creation_ts>2017-10-03 15:16:35 +0000</creation_ts>
          <short_desc>Obtuse error if build dir != cwd</short_desc>
          <delta_ts>2017-11-07 15:58:39 +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>2.4</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.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77303</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-10-03 15:16:35 +0000</bug_when>
    <thetext>If I run a build from a directory that isn&apos;t the build directory:

$ cd poky
$ . oe-init-build-env
$ cd ..
$ bitbake m4
NOTE: Retrying server connection... (Traceback (most recent call last):
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/main.py&quot;, line 427, in setup_bitbake
    topdir, lock = lockBitbake()
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/main.py&quot;, line 494, in lockBitbake
    lockfile = topdir + &quot;/bitbake.lock&quot;
TypeError: unsupported operand type(s) for +: &apos;NoneType&apos; and &apos;str&apos;
)

[ repeated ]

ERROR: Unable to connect to bitbake server, or start one</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77311</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-10-03 18:57:23 +0000</bug_when>
    <thetext>Right, I&apos;ve seen this as well. 

Once upon a time you used to be able to run bitbake anywhere after having set up the environment, but that got broken some time ago (though this particular behaviour is fairly new).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77757</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-10-21 12:07:04 +0000</bug_when>
    <thetext>Patches for both issues on the lists (Oe-Core and Bitbake)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78030</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-11-07 15:58:39 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ba2cfcc6ddc06e45beb50fe1f2fc18755e155ffa
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5dacc5516718efdf0a470e074a5c05b1ecf8cc15</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>