Skip to content

oe: Fix build failures with multiple git SRC_URI entries

Jamin Lin openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2externalsrc: Handle nested git repos from multiple SRC_URI entriesmeta/classes/externalsrc.bbclass+36 -17 replies
2/2reproducible: Handle nested git repos in find_git_repositoriesmeta/lib/oe/reproducible.py+5 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] oe: Fix build failures with multiple git SRC_URI entries

Some recipes (e.g. Zephyr-based) use multiple git SRC_URI entries with different destsuffix values, causing each source to be unpacked into a separate subdirectory of EXTERNALSRC that retains its own .git directory.

These nested git repositories trigger two independent failures:

1. externalsrc.bbclass: 'git add -A .' exits with code 128 during srctree_hash_files(), halting the bitbake parse phase.

2. oe/reproducible.py: 'git log -1' exits with code 128 inside a nested repo found by find_git_repositories(), aborting do_unpack.

Jamin Lin (2):
externalsrc: Handle nested git repos from multiple SRC_URI entries
reproducible: Handle nested git repos in find_git_repositories

 meta/classes/externalsrc.bbclass | 37 +++++++++++++++++++++++++++++++-
 meta/lib/oe/reproducible.py      |  6 +++++-
 2 files changed, 41 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0