diff mbox series

[meta-oe] libglvnd: provide virtual packages

Message ID 20250520160418.814173-1-dmitry.baryshkov@oss.qualcomm.com
State Under Review
Headers show
Series [meta-oe] libglvnd: provide virtual packages | expand

Commit Message

Dmitry Baryshkov May 20, 2025, 4:04 p.m. UTC
Add corresponding PROVIDES in order to let libglvnd declare that it
provides corresponding libraries.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Khem Raj May 20, 2025, 4:06 p.m. UTC | #1
On Tue, May 20, 2025 at 9:04 AM Dmitry Baryshkov via
lists.openembedded.org
<dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
>
> Add corresponding PROVIDES in order to let libglvnd declare that it
> provides corresponding libraries.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> index 4094aa4fc613..53f422aff1d2 100644
> --- a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> +++ b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> @@ -28,3 +28,10 @@ PACKAGECONFIG[gles1] = "-Dgles1=true,-Dgles1=false,"
>  PACKAGECONFIG[gles2] = "-Dgles2=true,-Dgles2=false,"
>
>  BBCLASSEXTEND = "native nativesdk"
> +
> +PROVIDES = " \
> +    ${@bb.utils.contains('PACKAGECONFIG', 'glx', 'virtual/libgl virtual/glx', '', d)} \
> +    ${@bb.utils.contains('PACKAGECONFIG', 'gles1', 'virtual/libgles1', '', d)} \
> +    ${@bb.utils.contains('PACKAGECONFIG', 'gles2', 'virtual/libgles2 virtual/libgles3', '', d)} \
> +    ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'virtual/egl', '', d)} \
> +"

Is there a corresponding changes/documentation update required to
reflect it in Core for selection

> --
> 2.39.5
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#117515): https://lists.openembedded.org/g/openembedded-devel/message/117515
> Mute This Topic: https://lists.openembedded.org/mt/113213745/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Dmitry Baryshkov May 20, 2025, 4:07 p.m. UTC | #2
On Tue, 20 May 2025 at 19:06, Khem Raj <raj.khem@gmail.com> wrote:
>
> On Tue, May 20, 2025 at 9:04 AM Dmitry Baryshkov via
> lists.openembedded.org
> <dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
> >
> > Add corresponding PROVIDES in order to let libglvnd declare that it
> > provides corresponding libraries.
> >
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > ---
> >  meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb | 7 +++++++
> >  1 file changed, 7 insertions(+)
> >
> > diff --git a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> > index 4094aa4fc613..53f422aff1d2 100644
> > --- a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> > +++ b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> > @@ -28,3 +28,10 @@ PACKAGECONFIG[gles1] = "-Dgles1=true,-Dgles1=false,"
> >  PACKAGECONFIG[gles2] = "-Dgles2=true,-Dgles2=false,"
> >
> >  BBCLASSEXTEND = "native nativesdk"
> > +
> > +PROVIDES = " \
> > +    ${@bb.utils.contains('PACKAGECONFIG', 'glx', 'virtual/libgl virtual/glx', '', d)} \
> > +    ${@bb.utils.contains('PACKAGECONFIG', 'gles1', 'virtual/libgles1', '', d)} \
> > +    ${@bb.utils.contains('PACKAGECONFIG', 'gles2', 'virtual/libgles2 virtual/libgles3', '', d)} \
> > +    ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'virtual/egl', '', d)} \
> > +"
>
> Is there a corresponding changes/documentation update required to
> reflect it in Core for selection

I'm working in it and will post separately, as it concerns OE-Core.
Khem Raj May 20, 2025, 4:18 p.m. UTC | #3
On Tue, May 20, 2025 at 9:07 AM Dmitry Baryshkov
<dmitry.baryshkov@oss.qualcomm.com> wrote:
>
> On Tue, 20 May 2025 at 19:06, Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Tue, May 20, 2025 at 9:04 AM Dmitry Baryshkov via
> > lists.openembedded.org
> > <dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
> > >
> > > Add corresponding PROVIDES in order to let libglvnd declare that it
> > > provides corresponding libraries.
> > >
> > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > > ---
> > >  meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb | 7 +++++++
> > >  1 file changed, 7 insertions(+)
> > >
> > > diff --git a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> > > index 4094aa4fc613..53f422aff1d2 100644
> > > --- a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> > > +++ b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
> > > @@ -28,3 +28,10 @@ PACKAGECONFIG[gles1] = "-Dgles1=true,-Dgles1=false,"
> > >  PACKAGECONFIG[gles2] = "-Dgles2=true,-Dgles2=false,"
> > >
> > >  BBCLASSEXTEND = "native nativesdk"
> > > +
> > > +PROVIDES = " \
> > > +    ${@bb.utils.contains('PACKAGECONFIG', 'glx', 'virtual/libgl virtual/glx', '', d)} \
> > > +    ${@bb.utils.contains('PACKAGECONFIG', 'gles1', 'virtual/libgles1', '', d)} \
> > > +    ${@bb.utils.contains('PACKAGECONFIG', 'gles2', 'virtual/libgles2 virtual/libgles3', '', d)} \
> > > +    ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'virtual/egl', '', d)} \
> > > +"
> >
> > Is there a corresponding changes/documentation update required to
> > reflect it in Core for selection
>
> I'm working in it and will post separately, as it concerns OE-Core.
>

Thanks, I think both changes should go hand in hand.

>
> --
> With best wishes
> Dmitry
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
index 4094aa4fc613..53f422aff1d2 100644
--- a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
+++ b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.7.0.bb
@@ -28,3 +28,10 @@  PACKAGECONFIG[gles1] = "-Dgles1=true,-Dgles1=false,"
 PACKAGECONFIG[gles2] = "-Dgles2=true,-Dgles2=false,"
 
 BBCLASSEXTEND = "native nativesdk"
+
+PROVIDES = " \
+    ${@bb.utils.contains('PACKAGECONFIG', 'glx', 'virtual/libgl virtual/glx', '', d)} \
+    ${@bb.utils.contains('PACKAGECONFIG', 'gles1', 'virtual/libgles1', '', d)} \
+    ${@bb.utils.contains('PACKAGECONFIG', 'gles2', 'virtual/libgles2 virtual/libgles3', '', d)} \
+    ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'virtual/egl', '', d)} \
+"