dummy-sdk-package: inhibit build dependencies
PATCH 1/2 dummy-sdk-package: inhibit build dependencies
These recipes just provide names and so have zero build dependencies.
--- meta/recipes-core/meta/dummy-sdk-package.inc | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-core/meta/dummy-sdk-package.inc +2 -0
@@ -5,6 +5,8 @@ PACKAGE_ARCH = "all" inherit allarch +INHIBIT_DEFAULT_DEPS = "1" + python() { # Put the package somewhere separate to ensure it's never used except # when we want it
Signature · 1 line
2.43.0
PATCH 2/2 nativesdk: don't map packaging variables if the recipe inherits nativesdk
The nativesdk class uses a ClassExtender to remap variables and references, for example turning foo to nativesdk-foo. We need to do this always because when the nativesdk class is inherited in a recipe these need to update automatically: DEPENDS=bar should be DEPENDS=nativesdk-bar.
This mapping extends to the packaging variables (RDEPENDS, etc) as it is usual for nativesdk to be used via BBCLASSEXTEND, so the recipe would be written using RDEPENDS:${PN}=bar and the class would turn that into nativesdk-bar automatically.
Some recipes don't use BBCLASSEXTEND and instead inherit nativesdk directly. These recipes typically use "nativesdk-bar" explicitly and the remapping isn't needed. However, the remapping still runs: it normally has no effect but it will still run.
This is a problem for the recipes that use sdk-provides-dummy.inc to provide names that we don't want to be in the SDK. Notably, nativesdk-target-provides-dummy provides "pkgconfig" because packages can have that literal dependency injected into them by rpmdeps, and the remapping was changing this to nativesdk-pkgconfig: the intended provides wasn't present and it became impossible to install pkgconfig into the nativesdk sysroot.
Note that this broke when the class extension switched to use the new bitbake filtering API[1], as this meant the remapping happens when the variables are _read_ instead of at parse time.
[1] oe-core 24a9858a892 ("classes/lib: Switch classextend to use new filter API")
--- meta/classes-recipe/nativesdk.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes-recipe/nativesdk.bbclass +3 -1
@@ -104,9 +104,11 @@ python () { clsextend.set_filter("DEPENDS", deps=True) clsextend.set_filter("PACKAGE_WRITE_DEPS", deps=False) - clsextend.map_packagevars() clsextend.set_filter("PROVIDES", deps=False) + if "nativesdk" in (d.getVar("BBCLASSEXTEND") or ""): + clsextend.map_packagevars() + d.setVar("LIBCEXTENSION", "") d.setVar("ABIEXTENSION", "") }
Signature · 1 line
2.43.0