All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: reatmon@ti.com
Cc: Randolph Sapp <rs@ti.com>, Praneeth Bajjuri <praneeth@ti.com>,
	Denys Dmytriyenko <denys@konsulko.com>,
	meta-arago@lists.yoctoproject.org
Subject: Re: [meta-arago][master][PATCH 3/4] mesa-demos: Flip to a bbappend
Date: Tue, 24 Mar 2026 14:27:20 -0400	[thread overview]
Message-ID: <20260324182720.GW11121@denix.org> (raw)
In-Reply-To: <30965aea-5c51-41ee-b990-e856319aff90@ti.com>

On Tue, Mar 24, 2026 at 01:20:06PM -0500, Ryan Eatmon via lists.yoctoproject.org wrote:
> 
> 
> On 3/24/2026 1:14 PM, Denys Dmytriyenko wrote:
> >On Mon, Mar 23, 2026 at 08:51:31PM -0400, Denys Dmytriyenko wrote:
> >>On Mon, Mar 23, 2026 at 12:16:30PM -0500, Randolph Sapp wrote:
> >>>On Sun Mar 22, 2026 at 2:26 PM CDT, Denys Dmytriyenko wrote:
> >>>>On Fri, Mar 20, 2026 at 05:22:30PM -0500, Randolph Sapp via lists.yoctoproject.org wrote:
> >>>>>On Fri Mar 20, 2026 at 5:14 PM CDT, Ryan Eatmon via lists.yoctoproject.org wrote:
> >>>>>>Clean up a check layer error related to how this recipe was setup.
> >>>>>>
> >>>>>>Change the recipe to a bbappend instead of a new git version.  Apply all
> >>>>>>of the changes that were made in the new recipe to the bbappend, and
> >>>>>>remove the PREFERRED_VERSION in arago-prefs.inc.
> >>>>>>
> >>>>>>Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> >>>>>>---
> >>>>>>  .../conf/distro/include/arago-prefs.inc       |  3 --
> >>>>>>  .../mesa/mesa-demos-arago.inc                 | 17 ++++++++
> >>>>>>  .../mesa/mesa-demos_9.0.0.bbappend            |  4 ++
> >>>>>>  .../recipes-graphics/mesa/mesa-demos_git.bb   | 42 -------------------
> >>>>>>  4 files changed, 21 insertions(+), 45 deletions(-)
> >>>>>>  create mode 100644 meta-arago-distro/recipes-graphics/mesa/mesa-demos-arago.inc
> >>>>>>  create mode 100644 meta-arago-distro/recipes-graphics/mesa/mesa-demos_9.0.0.bbappend
> >>>>>>  delete mode 100644 meta-arago-distro/recipes-graphics/mesa/mesa-demos_git.bb
> >>>>>>
> >>>>>>diff --git a/meta-arago-distro/conf/distro/include/arago-prefs.inc b/meta-arago-distro/conf/distro/include/arago-prefs.inc
> >>>>>>index 4d1a6006..6a2faa53 100644
> >>>>>>--- a/meta-arago-distro/conf/distro/include/arago-prefs.inc
> >>>>>>+++ b/meta-arago-distro/conf/distro/include/arago-prefs.inc
> >>>>>>@@ -10,6 +10,3 @@ VIRTUAL-RUNTIME_dbus = "dbus-broker"
> >>>>>>  # application that does not have a GPLv3 license
> >>>>>>  PREFERRED_VERSION_crda = "3.18"
> >>>>>>  PREFERRED_VERSION_obex = "0.34"
> >>>>>>-
> >>>>>>-# Bump mesa-demos to include some patches not in a tagged release
> >>>>>>-PREFERRED_VERSION_mesa-demos = "9.0.0+git"
> >>>>>>diff --git a/meta-arago-distro/recipes-graphics/mesa/mesa-demos-arago.inc b/meta-arago-distro/recipes-graphics/mesa/mesa-demos-arago.inc
> >>>>>>new file mode 100644
> >>>>>>index 00000000..5a5412c2
> >>>>>>--- /dev/null
> >>>>>>+++ b/meta-arago-distro/recipes-graphics/mesa/mesa-demos-arago.inc
> >>>>>>@@ -0,0 +1,17 @@
> >>>>>>+SECTION = ""
> >>>>>>+
> >>>>>>+LIC_FILES_CHKSUM:remove = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=914225785450eff644a86c871d3ae00e"
> >>>>>>+
> >>>>>>+LIC_FILES_CHKSUM:append = " file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=a481fbdb2ac800ecb12405c33bcfacae"
> >>>>>>+
> >>>>>>+SRC_URI = "git://gitlab.freedesktop.org/mesa/demos.git;protocol=https;branch=main"
> >>>>>>+SRCREV = "02eae079cb0b8186064d5b194ca4cc2995f099ee"
> >>>>>>+
> >>>>>>+PV = "9.0.0+git"
> >>>>>>+
> >>>>>>+REQUIRED_DISTRO_FEATURES:remove = "x11"
> >>>>>>+
> >>>>>>+PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}"
> >>>>>>+
> >>>>>>+PACKAGECONFIG[glut] = "-Dwith-glut=${STAGING_EXECPREFIXDIR},-Dglut=disabled,freeglut"
> >>>>>>+PACKAGECONFIG[osmesa] = "-Dosmesa=enabled,-Dosmesa=disabled,"
> >>>>>>diff --git a/meta-arago-distro/recipes-graphics/mesa/mesa-demos_9.0.0.bbappend b/meta-arago-distro/recipes-graphics/mesa/mesa-demos_9.0.0.bbappend
> >>>>>>new file mode 100644
> >>>>>>index 00000000..3b26e342
> >>>>>>--- /dev/null
> >>>>>>+++ b/meta-arago-distro/recipes-graphics/mesa/mesa-demos_9.0.0.bbappend
> >>>>>>@@ -0,0 +1,4 @@
> >>>>>>+MESA_DEMOS_ARAGO = ""
> >>>>>>+MESA_DEMOS_ARAGO:arago = "mesa-demos-arago.inc"
> >>>>>>+
> >>>>>>+require ${MESA_DEMOS_ARAGO}
> >>>>>>diff --git a/meta-arago-distro/recipes-graphics/mesa/mesa-demos_git.bb b/meta-arago-distro/recipes-graphics/mesa/mesa-demos_git.bb
> >>>>>>deleted file mode 100644
> >>>>>>index 2da3ceff..00000000
> >>>>>>--- a/meta-arago-distro/recipes-graphics/mesa/mesa-demos_git.bb
> >>>>>>+++ /dev/null
> >>>>>>@@ -1,42 +0,0 @@
> >>>>>>-SUMMARY = "Mesa demo applications"
> >>>>>>-DESCRIPTION = "This package includes the demonstration application, such as glxgears. \
> >>>>>>-These applications can be used for Mesa validation and benchmarking."
> >>>>>>-HOMEPAGE = "http://mesa3d.org"
> >>>>>>-BUGTRACKER = "https://bugs.freedesktop.org"
> >>>>>>-
> >>>>>>-LICENSE = "MIT & PD"
> >>>>>>-LIC_FILES_CHKSUM = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=a481fbdb2ac800ecb12405c33bcfacae \
> >>>>>>-                    file://src/xdemos/glxdemo.c;beginline=1;endline=8;md5=b01d5ab1aee94d35b7efaa2ef48e1a06"
> >>>>>>-
> >>>>>>-SRC_URI = "git://gitlab.freedesktop.org/mesa/demos.git;protocol=https;branch=main"
> >>>>>>-SRCREV = "02eae079cb0b8186064d5b194ca4cc2995f099ee"
> >>>>>>-
> >>>>>>-DEFAULT_PREFERENCE = "-1"
> >>>>>>-PV = "9.0.0+git"
> >>>>>>-
> >>>>>>-inherit meson pkgconfig features_check
> >>>>>>-REQUIRED_DISTRO_FEATURES = "opengl"
> >>>>>>-
> >>>>>>-EXTRA_OEMESON = "-Dwith-system-data-files=true"
> >>>>>>-
> >>>>>>-PACKAGECONFIG ?= "drm egl gles1 gles2 \
> >>>>>>-                  ${@bb.utils.filter('DISTRO_FEATURES', 'vulkan x11 wayland', d)}"
> >>>>>>-
> >>>>>>-PACKAGECONFIG[drm] = "-Dlibdrm=enabled,-Dlibdrm=disabled,libdrm"
> >>>>>>-PACKAGECONFIG[egl] = "-Degl=enabled,-Degl=disabled,virtual/egl"
> >>>>>>-PACKAGECONFIG[gles1] = "-Dgles1=enabled,-Dgles1=disabled,virtual/libgles1"
> >>>>>>-PACKAGECONFIG[gles2] = "-Dgles2=enabled,-Dgles2=disabled,virtual/libgles2"
> >>>>>>-PACKAGECONFIG[glut] = "-Dwith-glut=${STAGING_EXECPREFIXDIR},-Dglut=disabled,freeglut"
> >>>>>>-PACKAGECONFIG[osmesa] = "-Dosmesa=enabled,-Dosmesa=disabled,"
> >>>>>>-PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-loader glslang-native"
> >>>>>>-PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,virtual/libgl wayland wayland-native wayland-protocols libxkbcommon libdecor"
> >>>>>>-PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 libglu libxkbcommon libxcb"
> >>>>>>-
> >>>>>>-do_install:append() {
> >>>>>>-	# it can be completely empty when all PACKAGECONFIG options are disabled
> >>>>>>-	rmdir --ignore-fail-on-non-empty ${D}${bindir}
> >>>>>>-
> >>>>>>-	if [ -f ${D}${bindir}/clear ]; then
> >>>>>>-		mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos
> >>>>>>-	fi
> >>>>>>-}
> >>>>>
> >>>>>I still hate that layer conformance thinks this is the correct way to do what is
> >>>>>essentially adding a new *optional* package version. Feels really backwards and
> >>>>>gross, but I'm already picking other fights right now.
> >>>>
> >>>>In order for a new version of a recipe to be *optional*, it should not be
> >>>>selected by bitbake by default.
> >>>>
> >>>>There are 2 ways to do this (besides making a bbappend):
> >>>>
> >>>>1. Use the same name, but lower the default preference DEFAULT_PREFERENCE="-1"
> >>>>and still able to select it with PREFERRED_VERSION_mesa-demos="9.0.0+git"
> >>>
> >>>Yeah, I did that. You can see it in the patch above, being removed. The
> >>>conformance still thinks it's wrong.
> >>
> >>Ah, indeed, missed that.
> >>
> >>Still not sure why the yocto-check-layer fails for this case...
> >
> >FTR, in our discussions during early days of YP Compat and yocto-check-layer
> >several years ago, this was one of the correct methods to deal with multiple
> >versions - see the comments here:
> >https://bugzilla.yoctoproject.org/show_bug.cgi?id=12688
> >
> >Do you have the exact error message that the tool now prints?
> 
> Of course not.  I was just fixing the issue not documenting things.
> I'll have to revert the patch to get the message.  I'll try and do
> that sometime this week... if I can remember to...

No worries, I'll try to reproduce it locally...


> >>>>2. Use a different name e.g. mesa-demos-arago and set PROVIDES="mesa-demos" -
> >>>>allows selecting it with PREFERRED_PROVIDER_mesa-demos="mesa-demos-arago"


  reply	other threads:[~2026-03-24 18:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-20 22:14 [meta-arago][master][PATCH 1/4] ti-test: Move libsdl2-tests inclusion behind guard Ryan Eatmon
2026-03-20 22:14 ` [meta-arago][master][PATCH 2/4] packagegroup-arago-graphics: Clean up check layer error Ryan Eatmon
2026-03-20 22:14 ` [meta-arago][master][PATCH 3/4] mesa-demos: Flip to a bbappend Ryan Eatmon
2026-03-20 22:22   ` Randolph Sapp
2026-03-22 19:26     ` Denys Dmytriyenko
2026-03-23 17:16       ` Randolph Sapp
2026-03-24  0:51         ` Denys Dmytriyenko
     [not found]         ` <189FA0BA138E397B.1003@lists.yoctoproject.org>
2026-03-24 18:14           ` Denys Dmytriyenko
2026-03-24 18:20             ` Ryan Eatmon
2026-03-24 18:27               ` Denys Dmytriyenko [this message]
     [not found]             ` <189FD9F3C6CA2766.55659@lists.yoctoproject.org>
2026-03-25 15:32               ` Ryan Eatmon
2026-03-20 22:14 ` [meta-arago][master][PATCH 4/4] packagegroup-arago-graphics: Add mesa-demos Ryan Eatmon
2026-03-20 22:19   ` Randolph Sapp
2026-03-20 22:32 ` [meta-arago][master][PATCH 1/4] ti-test: Move libsdl2-tests inclusion behind guard PRC Automation

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=20260324182720.GW11121@denix.org \
    --to=denis@denix.org \
    --cc=denys@konsulko.com \
    --cc=meta-arago@lists.yoctoproject.org \
    --cc=praneeth@ti.com \
    --cc=reatmon@ti.com \
    --cc=rs@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.