mbox series

[PATCHv2,0/9] Improvements for devtool/recipetool

Message ID 20231206205531.4037549-1-pkj@axis.com
Headers show
Series Improvements for devtool/recipetool | expand

Message

Peter Kjellerstedt Dec. 6, 2023, 8:55 p.m. UTC
The recent Yocto Project Summit and the devtool hands-on class triggered
a couple of questions for me, and when I investigated them, I stumbled
upon a number of problems. This series of patches solves them.

The first four patches are needed for me to be able to execute the
devtool and recipetool selftests in our environment. The next four
patches improve the identification of the license(s) used by a recipe,
and makes the SRC_URI checksums used by devtool and recipetool
consistent. Finally, there is a patch to make `devtool --no-extract`
work again (it regressed with the recent devtool changes that improved
git submodule support).

[PATCHv2] Update the commit message for patch 8/9 to make it clear(er)
that md5sum is still being removed when updating recipes.

//Peter

Peter Kjellerstedt (9):
  oeqa/selftest/devtool: Correct git clone of local repository
  oeqa/selftest/devtool: Avoid global Git hooks when amending a patch
  oeqa/selftest/devtool: Make test_devtool_load_plugin more resilient
  oeqa/selftest/recipetool: Make test_recipetool_load_plugin more
    resilient
  lib/oe/recipeutils: Avoid wrapping any SRC_URI[sha*sum] variables
  recipetool: create: Improve identification of licenses
  recipetool: create: Only include the expected SRC_URI checksums
  devtool: upgrade: Update all existing checksums for the SRC_URI
  devtool: modify: Make --no-extract work again

 .../devtool/devtool-upgrade-test3_1.5.3.bb    | 16 ++++
 .../devtool-upgrade-test3_1.5.3.bb.upgraded   | 15 +++
 .../devtool/devtool-upgrade-test4_1.5.3.bb    | 22 +++++
 .../devtool-upgrade-test4_1.5.3.bb.upgraded   | 19 ++++
 meta/lib/oe/recipeutils.py                    |  2 +-
 meta/lib/oeqa/selftest/cases/devtool.py       | 77 +++++++++++++--
 meta/lib/oeqa/selftest/cases/recipetool.py    | 44 ++++-----
 scripts/lib/devtool/standard.py               |  3 +-
 scripts/lib/devtool/upgrade.py                | 51 +++++-----
 scripts/lib/recipetool/create.py              | 95 ++++++++++---------
 10 files changed, 241 insertions(+), 103 deletions(-)
 create mode 100644 meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb
 create mode 100644 meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb.upgraded
 create mode 100644 meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb
 create mode 100644 meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb.upgraded