mbox series

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

Message ID 20260515093615.126849-1-jamin_lin@aspeedtech.com
Headers show
Series oe: Fix build failures with multiple git SRC_URI entries | expand

Message

Jamin Lin May 15, 2026, 9:36 a.m. UTC
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(-)