Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Paul Barker <paul@pbarker.dev>
To: mark.jonas@de.bosch.com, openembedded-core@lists.openembedded.org
Cc: wangmy@fujitsu.com, mathieu.dubois-briand@bootlin.com,
	Ricardo Simoes <ricardo.simoes@pt.bosch.com>
Subject: Re: [PATCH] xorgproto: Set ALLOW_EMPTY for the main package
Date: Wed, 30 Sep 2026 10:19:17 +0100	[thread overview]
Message-ID: <f2101f97616baa3cee4c5733846dc6b64dd944c2.camel@pbarker.dev> (raw)
In-Reply-To: <20260918141849.1875-1-mark.jonas@de.bosch.com>

On Fri, 2026-09-18 at 16:18 +0200, mark.jonas@de.bosch.com wrote:
> 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"

Hi Mark, Ricardo,

I built the SDK for core-image-sato, and this already includes
xorgproto-dev without applying this patch. I can see the package listed
in the target manifest and I can see usr/include/X11/X.h in the target
sysroot.

Could you provide a bit more info on the SDK you're building, any local
config changes, etc, so I can reproduce the issue?

Best regards,

-- 
Paul Barker



  reply	other threads:[~2026-09-30  9:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18 14:18 [PATCH] xorgproto: Set ALLOW_EMPTY for the main package mark.jonas
2026-09-30  9:19 ` Paul Barker [this message]
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=f2101f97616baa3cee4c5733846dc6b64dd944c2.camel@pbarker.dev \
    --to=paul@pbarker.dev \
    --cc=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