Skip to contentSkip to conversation

mesa-demos: split info tools to a separate package

PATCH In review Dmitry Baryshkov 4 participants 7 messages Oct 2, 2025 – Oct 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesa-demos: split info tools to a separate package

While the rest of programs inside mesa-demos are really "demos", several *info utilities have separate value as they allow gathering information about the running system in a manner similar to clinfo or vulkaninfo. Split them into a separate package in order to allow picking them info the images without picking up the rest of "demos".

---
 meta/recipes-graphics/mesa/mesa-demos_9.0.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-graphics/mesa/mesa-demos_9.0.0.bb +4 -0
index a9e84039d2c9..0bc8519e90e2 100644
@@ -20,6 +20,10 @@ REQUIRED_DISTRO_FEATURES = "opengl x11"
 
 EXTRA_OEMESON = "-Dwith-system-data-files=true"
 
+PACKAGE_BEFORE_PN = "${PN}-info"
+RDEPENDS:${PN} += " ${PN}-info"
+FILES:${PN}-info = "${bindir}/*info"
+
 # Note: wayland is not included as the feature requires libdecor recipe,
 # which is not currently in core
 PACKAGECONFIG ?= "drm egl gles1 gles2 \
Signature · 1 line
2.47.3
#1 lore raw

Hi Dmitry,

Quoted 16 lines · Dmitry Baryshkov via lists.openembedded.org

While the rest of programs inside mesa-demos are really "demos", several *info utilities have separate value as they allow gathering information about the running system in a manner similar to clinfo or vulkaninfo. Split them into a separate package in order to allow picking them info the images without picking up the rest of "demos".

---
  meta/recipes-graphics/mesa/mesa-demos_9.0.0.bb | 4 ++++
  1 file changed, 4 insertions(+)
meta/recipes-graphics/mesa/mesa-demos_9.0.0.bb +0 -0
index a9e84039d2c9..0bc8519e90e2 100644

meta/recipes-graphics/mesa/mesa-demos_9.0.0.bb REQUIRED_DISTRO_FEATURES = "opengl x11" · line 24

Quoted 5 lines
meta/recipes-graphics/mesa/mesa-demos_9.0.0.bb +2 -0
@@ -20,6 +20,10 @@ REQUIRED_DISTRO_FEATURES = "opengl x11"
 
  EXTRA_OEMESON = "-Dwith-system-data-files=true"
 
+PACKAGE_BEFORE_PN = "${PN}-info"
+RDEPENDS:${PN} += " ${PN}-info"

Is there really a dependency from demo applications on the various info binaries?

Can you justify this dependency?

Otherwise this looks good to me.

Cheers,
Quentin

#2 lore raw
Quoted 6 lines · Quentin Schulz via lists.openembedded.org

Is there really a dependency from demo applications on the various info binaries?

Can you justify this dependency?

Otherwise this looks good to me.

I’m not Dmitry, but I’d imagine so that if you install mesa-demos you get _all_ of mesa-demos, but you can just install mesa-demos-info for just the info tools if desired.

Ross

#3 lore raw
Quoted 9 lines · Ross Burton
Quoted 6 lines · Quentin Schulz via lists.openembedded.org

Is there really a dependency from demo applications on the various info binaries?

Can you justify this dependency?

Otherwise this looks good to me.

I’m not Dmitry, but I’d imagine so that if you install mesa-demos you get _all_ of mesa-demos, but you can just install mesa-demos-info for just the info tools if desired.

Exactly. The distros / users might be pulling mesa-demos and expecting both kinds of apps. Let's not disappoint them.

Signature · 2 lines
With best wishes
Dmitry
#4 lore raw
Quoted 5 lines · Dmitry Baryshkov
Quoted 4 lines · Ross Burton
Quoted 3 lines · Quentin Schulz via lists.openembedded.org

Is there really a dependency from demo applications on the various info binaries?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Can you justify this dependency?

Otherwise this looks good to me.

I’m not Dmitry, but I’d imagine so that if you install mesa-demos you get _all_ of mesa-demos, but you can just install mesa-demos-info for just the info tools if desired.

Exactly. The distros / users might be pulling mesa-demos and expecting both kinds of apps. Let's not disappoint them.

That's making mesa-demos kind of a meta package that pulls in everything built by the recipe and at the same time the only package bringing binaries other than the info ones.

Can you simply add this to the commit log/as a comment so that we can remove this RDEPENDS in the future if we want to without having to guess why it's there? It doesn't reflect an actual dependency but a personal preference.

We could also use RRECOMMENDS here to show it's even not required per-se but we think you probably want the info packages too.

Cheers,
Quentin

#5 lore raw
Quoted 11 lines · Quentin Schulz via lists.openembedded.org

That's making mesa-demos kind of a meta package that pulls in everything built by the recipe and at the same time the only package bringing binaries other than the info ones.

Can you simply add this to the commit log/as a comment so that we can remove this RDEPENDS in the future if we want to without having to guess why it's there? It doesn't reflect an actual dependency but a personal preference.

We could also use RRECOMMENDS here to show it's even not required per-se but we think you probably want the info packages too.

FWIW, I agree with Ross and Dmitry: preserving existing behavior is the right call here, and that is not a matter of personal preference. The patch has now merged, so anything needs to be done as followup, whether you want to add a comment, or split demos into mesa-demos-demos, and make mesa-demos an empty meta-package is up to you, but I'd really rather see you spend your time on high-impact things that matter to the project as a whole.

Such as:
- sorting out the ungodly mess that is linux-firmware packaging (if the packaging subject is close to your heart)
- solving perf reproducibility problems, which is holding up the upcoming release
- writing documentation for bitbake-setup
- or any other items that you can find in weekly status reports.

Alex

#6 lore raw

Hi Alex,

Quoted 11 lines · Alexander Kanavin via lists.openembedded.org
Quoted 9 lines · Quentin Schulz via lists.openembedded.org

That's making mesa-demos kind of a meta package that pulls in everything built by the recipe and at the same time the only package bringing binaries other than the info ones.

Can you simply add this to the commit log/as a comment so that we can remove this RDEPENDS in the future if we want to without having to guess why it's there? It doesn't reflect an actual dependency but a personal preference.

Quoted 4 lines
Quoted 2 lines

We could also use RRECOMMENDS here to show it's even not required per-se but we think you probably want the info packages too.

FWIW, I agree with Ross and Dmitry: preserving existing behavior is

This is personal preference. We need to do it with existing releases, but nothing forces us to do it with master.

I've pushed for that for linux-firmware in the past for the release branches, but this simply doesn't scale if we want to ever be preserving existing behavior. We split linux-firmware recipe into even more packages quite often, that's never been an issue. That's what the migration manuals are for, documenting changes.

Now imagine I don't actually need the mesa-demos-info package and only want the benchmark/test tools. Would it really be possible for me to do this? I don't know because of the RDEPENDS being there which seems to indicate at least "something" needs one of the info tools to work at runtime. So now I have to do research to figure out if something actually requires it or not.

Quoted 10 lines

the right call here, and that is not a matter of personal preference. The patch has now merged, so anything needs to be done as followup, whether you want to add a comment, or split demos into mesa-demos-demos, and make mesa-demos an empty meta-package is up to you, but I'd really rather see you spend your time on high-impact things that matter to the project as a whole.

Such as:
- sorting out the ungodly mess that is linux-firmware packaging (if the packaging subject is close to your heart)

I've read Ross (?) was working with upstream to have some packaging script we could call based on WHENCE or whatever else to prevent us from doing the error-prone task of splitting things manually like we do currently. I don't know if this was pursued and if it's going on.

We have someone currently adding even more packages, see https://lore.kernel.org/openembedded-core/[email protected]/

Quoted 3 lines

- solving perf reproducibility problems, which is holding up the upcoming release
- writing documentation for bitbake-setup

There's currently work being done on that side. See https://lore.kernel.org/yocto-docs/[email protected]/.

Alex, I don't appreciate the tone used in this mail. You can disagree with what I'm suggesting, but you can't simply say "we are not interested in your review, please rather send patches for these other issues that are more important to me" which is how I took it. We are already lacking reviewers, there's no need to alienate the existing ones.

Finally, this isn't (always) me nitpicking about "useless" stuff. I've tried to understand some changes made to some recipes (sometimes decades ago) to know if I can undo them or what I need to keep if I'm cleaning things up. mesa comes to mind a lot lately. If we don't put this information out there, I cannot know without spending a lot of time figuring it out and/or risking regressing the recipe because I removed/reworked something I shouldn't have.

Cheers,
Quentin