Openembedded Core Discussions
 help / color / mirror / Atom feed
From: <mark.jonas@de.bosch.com>
To: <openembedded-core@lists.openembedded.org>
Cc: <wangmy@fujitsu.com>, <mathieu.dubois-briand@bootlin.com>,
	Ricardo Simoes <ricardo.simoes@pt.bosch.com>,
	Mark Jonas <mark.jonas@de.bosch.com>
Subject: [PATCH] xorgproto: Set ALLOW_EMPTY for the main package
Date: Fri, 18 Sep 2026 16:18:49 +0200	[thread overview]
Message-ID: <20260918141849.1875-1-mark.jonas@de.bosch.com> (raw)

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



             reply	other threads:[~2026-09-18 14:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18 14:18 mark.jonas [this message]
2026-09-30  9:19 ` [PATCH] xorgproto: Set ALLOW_EMPTY for the main package 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)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260918141849.1875-1-mark.jonas@de.bosch.com \
    --to=mark.jonas@de.bosch.com \
    --cc=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ricardo.simoes@pt.bosch.com \
    --cc=wangmy@fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox