When a recipe has multiple git SRC_URI entries with destsuffix values
nested inside S, devtool modify left all but the top-level repo with a
.git/objects/info/alternates file pointing into the downloads cache.
Running 'bitbake -c cleanall' then removed those shared objects, breaking
all subsequent git operations in the workspace.
Fix git_convert_standalone_clone() to walk all git repos nested inside S
and repack each one to a fully standalone clone.
v1:
- Fix git_convert_standalone_clone() to walk all git repos nested
inside S and repack each one to a standalone clone
v2:
- Add selftest recipe devtool-test-multi-destsuffix with six nested
git SRC_URI entries to reproduce the scenario
- Add test_devtool_modify_multi_git_destsuffix_standalone to verify
all nested repos have their alternates removed after devtool modify
and remain usable after 'bitbake -c cleanall'
Jamin Lin (3):
scripts/scriptutils: Convert nested git repos to standalone clones in
devtool workspace
meta-selftest: Add devtool-test-multi-destsuffix recipe
oeqa/selftest/devtool: Add test for multiple nested git destsuffix
repos
.../devtool-test-multi-destsuffix_git.bb | 29 ++++++++
meta/lib/oeqa/selftest/cases/devtool.py | 67 +++++++++++++++++++
scripts/lib/scriptutils.py | 28 ++++++--
3 files changed, 120 insertions(+), 4 deletions(-)
create mode 100644
meta-selftest/recipes-test/devtool/devtool-test-multi-destsuffix_git.bb
--
2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237529):
https://lists.openembedded.org/g/openembedded-core/message/237529
Mute This Topic: https://lists.openembedded.org/mt/119437908/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-