Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] xorgproto: Set ALLOW_EMPTY for the main package
@ 2026-09-18 14:18 mark.jonas
  2026-09-30  9:19 ` Paul Barker
  0 siblings, 1 reply; 6+ messages in thread
From: mark.jonas @ 2026-09-18 14:18 UTC (permalink / raw)
  To: openembedded-core
  Cc: wangmy, mathieu.dubois-briand, Ricardo Simoes, Mark Jonas

From: Ricardo Simoes <ricardo.simoes@pt.bosch.com>

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 <ricardo.simoes@pt.bosch.com>
Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com>
---
 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



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-02 12:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18 14:18 [PATCH] xorgproto: Set ALLOW_EMPTY for the main package mark.jonas
2026-09-30  9:19 ` Paul Barker
2026-10-01  9:00   ` AW: " Jonas Mark (BT-EL/ESW1)
2026-10-01 11:27     ` [OE-core] " Richard Purdie
2026-10-01 13:00       ` AW: " Jonas Mark (BT-EL/ESW1)
     [not found]       ` <18DA695297972727.1648921@lists.openembedded.org>
2026-10-02 12:40         ` Jonas Mark (BT-EL/ESW1)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox