<?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>14766</bug_id>
          
          <creation_ts>2022-03-23 14:22:46 +0000</creation_ts>
          <short_desc>bitbake lockfile patch incorrect when running builds in deep paths</short_desc>
          <delta_ts>2022-04-14 14:15:31 +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>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>4.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>92836</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2022-03-23 14:22:46 +0000</bug_when>
    <thetext>When the path to the build directory appears to be in a deep path the system is unable to connect to the bitbake socket.

To reproduce this:

mkdir -p \
/home/fray/testsuite/project/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc/dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

cd &lt;same long path&gt;

git clone https://git.yoctoproject.org/poky

. ./poky/oe-init-build-env build
bitbake-layers add-layer &lt;long_path&gt;/poky/meta-skeleton

Result
NOTE: Starting bitbake server...
NOTE: No reply from server in 30s
NOTE: No reply from server in 30s
Timeout while waiting for a reply from the bitbake server (60s)


Change to a shorter path (repeat this while in the &apos;cccccc...ccccc&apos; path) and it works.

It appears that this may be related to connecting to the socket.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92837</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2022-03-23 14:25:54 +0000</bug_when>
    <thetext>This works properly in gatesgarth.


This does NOT work in honister.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92845</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-03-24 14:33:26 +0000</bug_when>
    <thetext>In autobuilder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93047</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-14 11:47:33 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=09e826cfb021731c1b139046665d2d9fa24baa88</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93059</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2022-04-14 14:14:41 +0000</bug_when>
    <thetext>Verified this does fix the original reported problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93060</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2022-04-14 14:15:31 +0000</bug_when>
    <thetext>Verified this fixes the original issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>