From: Ricardo Simoes <[email protected]>

When creating an SDK, the populate_sdk task relies on
COMPLEMENTARY_GLOB[dev-pkgs] to decide which packages to install [1].

However, xorgproto is a header-only library, so bitbake does not emit a
main package. The only reference to the -dev package is an RRECOMMENDS
from the -dbg package, and such weak links are not honored when
installing complementary packages [2].

Fix this by setting ALLOW_EMPTY for the xorgproto package. The main
package is now emitted, which makes ${PN}-dev reachable through the
complementary packages and lets recipes that depend on xorgproto be
built with the SDK.

[1] 
https://git.openembedded.org/openembedded-core/tree/meta/classes-recipe/populate_sdk_base.bbclass#n38
[2] 
https://docs.yoctoproject.org/ref-manual/variables.html#term-COMPLEMENTARY_GLOB

Signed-off-by: Ricardo Simoes <[email protected]>
Signed-off-by: Mark Jonas <[email protected]>
---
 meta/recipes-graphics/xorg-proto/xorgproto_2025.1.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-graphics/xorg-proto/xorgproto_2025.1.bb 
b/meta/recipes-graphics/xorg-proto/xorgproto_2025.1.bb
index e187c56fbc..df09135e27 100644
--- a/meta/recipes-graphics/xorg-proto/xorgproto_2025.1.bb
+++ b/meta/recipes-graphics/xorg-proto/xorgproto_2025.1.bb
@@ -23,3 +23,6 @@ DEV_PKG_DEPENDENCY = ""
 RRECOMMENDS:${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
 
 BBCLASSEXTEND = "native nativesdk"
+
+# This is a header only library - thus everything lands in the -dev package
+ALLOW_EMPTY:${PN} = "1"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246217): 
https://lists.openembedded.org/g/openembedded-core/message/246217
Mute This Topic: https://lists.openembedded.org/mt/121314987/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to