Bug 15591

Summary: layer paths referenced via symlinks confuse bitbake
Product: [Build System, Metadata & Runtime] BitBake Reporter: Richard Purdie <richard.purdie>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher
Version: 0.0.0   
Target Milestone: 6.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2024-09-09 22:01:56 UTC
Consider this failure:

https://valkyrie.yoctoproject.org/#/builders/7/builds/121

NOTE: Starting bitbake server...
ERROR: Found duplicated BBFILE_COLLECTIONS 'meta-mingw', check bblayers.conf or layer.conf to fix it.
ERROR: Parse failure with the specified layer added, exiting.

where bblayers.conf has:

BBLAYERS ?= " \
  /srv/pokybuild/yocto-worker/meta-mingw/build/meta \
  /srv/pokybuild/yocto-worker/meta-mingw/build/meta-poky \
  /srv/pokybuild/yocto-worker/meta-mingw/build/meta-yocto-bsp \
  /home/pokybuild/yocto-worker/meta-mingw/build/meta-mingw \
  "

and /home/pokybuild is a symlink to /srv/pokybuild

We need to fix bitbake so an add-layers on /srv/pokybuild/yocto-worker/meta-mingw/build/meta-mingw doesn't fail