meta-virtualization/recipes-devtools
Robert Yang affb2252f4 yq_git: Set apply=no for SRC_URI diff
Fixed a do_patch error use git shallow tarball (BB_GIT_SHALLOW = "1"):

$ bitbake yp -cpatch

ERROR: do_patch: Importing patch 'github.com.pkg.diff' with striplevel '1'

The github.com.pkg.diff is ud.clonedir of git://github.com/pkg/diff:
* When use regular git repo as source, oe.patch.patch_path() will NOT
  handle it as a patch since the directory github.com.pkg.diff exists,
  and nothing is wrong.

* When use git shallow tarball, the github.com.pkg.diff doesn't exist since
  it is fetched as a tarball, then oe.patch.patch_path() will handle it
  as a patch, then the error happens.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-07-10 15:59:26 +00:00
..
go go-build: adapt SRC_URI to include destsuffix=${GO_SRCURI_DESTSUFFIX} 2024-05-29 13:16:56 +00:00
python layer-wide: drop PYTHON_PN 2024-02-21 22:48:29 +00:00
qemu qemu: adapt to OE-core qemu splitting 2023-08-01 14:42:25 -04:00
yq yq_git: Set apply=no for SRC_URI diff 2024-07-10 15:59:26 +00:00