From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: John Ernberg <j@j-ernberg.se>,
buildroot@buildroot.org, Adam Ford <aford173@gmail.com>,
Bernd Kuhls <bernd@kuhls.net>,
Joseph Kogut <joseph.kogut@gmail.com>,
Romain Naour <romain.naour@gmail.com>
Subject: Re: [Buildroot] [RFC PATCH] package: {libgl, libglvnd, mesa3d}: Propagate libglvnd GL provider to libgl dependencies
Date: Mon, 19 Oct 2026 14:23:45 +0200 [thread overview]
Message-ID: <atYLM_NKiCwSpJSU@windsurf> (raw)
In-Reply-To: <atXov2HEcIiVzCAU@landeda>
On Mon, Oct 19, 2026 at 11:54:07AM +0200, Yann E. MORIN wrote:
> Thomas, All,
>
> On 2026-10-19 09:40 +0200, Thomas Petazzoni spake thusly:
> > On Mon, Oct 19, 2026 at 07:53:40AM +0200, Yann E. MORIN wrote:
> > Yes, because right now we have:
> > [GL-using package] -> libgl -> libglvnd
> > And separately
> > mesa3d -> libglvnd
> > which means that [GL-using package] can be built before mesa3d, except
> > that libglvnd doesn't provide *all* what is needed to act as a GL
> > provider, for example it doesn't provide dri.pc.
> [--SNIP--]
> > > I wonder if should further have this:
> > > [GL-using package] -> libgl -> libglvnd
> > > \-> mesa3d -/
> > I'm afraid I don't understand your diagrams :-/
>
> * libgl depends on libglvnd
> * libgl depends on all actual GL providers (like mesa3d)
> * actual GL providers (like mesa3d) depend on libglvnd
But what are you describing here? How it _should_ work, or how it
works _today_?
Because today the part:
* libgl depends on all actual GL providers (like mesa3d)
is not there, and that's precisely the problem.
That being said: it is odd for mesa3d to provide dri.pc. This means
that if you have multiple OpenGL providers... they would all provide
their own dri.pc, overridding each other?
> > > ... even though the libgl -> mesa3d would be here just to ensure build
> > > ordering, and there would be nothing from mesa3d that the [GL-using
> > > package] would use at build time in practice. I think...
> > And that's where you're not correct, and that's the whole point of
> > John's patch in the first place. Check out his commit log for details.
>
> Sorry, I don't have the thread history here; only digest-subscribed.
Welcome to the world of lore/lei :-)
https://lore.kernel.org/buildroot/20261018160651.349981-1-j@j-ernberg.se/
> IIRC, one of the reason to bump the nvidia-driver back at the time,
> besides the bump itself, was that the newer driver was glvnd-aware.
> But this has stalled.
>
> Also, eventually, there are tricks to actually have multiple GL
> providers, when one uses br2-external trees, so even if GL providers
> bundled in Buildroot do not play nice with glvnd, it does not mean
> out-of-tree providers can't use it...
>
> > Essentially, I'm trying to figure out whether we should:
> > (1) Fix this libglvnd issue by adding more complexity
> > or
> > (2) Re-simplify everything by dropping libglvnd entirely
>
> Well, no longer my call to make anymore. I was just providing a
> recollection of what I remembered from back then.
Indeed, but I wanted to see if there was anything I was missing.
On my side, I believe I would be in favor of (2), i.e dropping
libglvnd.
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2026-10-19 12:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-18 16:06 [Buildroot] [RFC PATCH] package: {libgl, libglvnd, mesa3d}: Propagate libglvnd GL provider to libgl dependencies John Ernberg
2026-10-18 20:41 ` Thomas Petazzoni via buildroot
2026-10-18 20:57 ` John Ernberg
2026-10-19 7:42 ` Thomas Petazzoni via buildroot
2026-10-19 5:53 ` Yann E. MORIN via buildroot
2026-10-19 7:40 ` Thomas Petazzoni via buildroot
2026-10-19 9:54 ` Yann E. MORIN via buildroot
2026-10-19 12:23 ` Thomas Petazzoni via buildroot [this message]
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=atYLM_NKiCwSpJSU@windsurf \
--to=buildroot@buildroot.org \
--cc=aford173@gmail.com \
--cc=bernd@kuhls.net \
--cc=j@j-ernberg.se \
--cc=joseph.kogut@gmail.com \
--cc=romain.naour@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/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