Bug 14766

Summary: bitbake lockfile patch incorrect when running builds in deep paths
Product: [Build System, Metadata & Runtime] BitBake Reporter: Mark Hatle <mark.hatle>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher, randy.macleod
Version: unspecified   
Target Milestone: 4.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Mark Hatle 2022-03-23 14:22:46 UTC
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 <same long path>

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

. ./poky/oe-init-build-env build
bitbake-layers add-layer <long_path>/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 'cccccc...ccccc' path) and it works.

It appears that this may be related to connecting to the socket.
Comment 1 Mark Hatle 2022-03-23 14:25:54 UTC
This works properly in gatesgarth.


This does NOT work in honister.
Comment 2 Randy MacLeod 2022-03-24 14:33:26 UTC
In autobuilder.
Comment 4 Mark Hatle 2022-04-14 14:14:41 UTC
Verified this does fix the original reported problem.
Comment 5 Mark Hatle 2022-04-14 14:15:31 UTC
Verified this fixes the original issue.