* [Buildroot] [PATCH] package/x11r7/xwayland: add mesa3d ordering dependency
@ 2026-07-16 13:30 Adam Ford
2026-07-16 19:30 ` John Ernberg
0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2026-07-16 13:30 UTC (permalink / raw)
To: buildroot; +Cc: Raphael Pavlidis, Adam Ford
Xwayland's glamor/DRI configure check looks for Mesa's dri.pc in staging.
Without an explicit ordering dependency, a highly parallel build can run
Xwayland's configure before mesa3d is installed, failing with:
ERROR: Dependency "dri" not found
Add mesa3d to XWAYLAND_DEPENDENCIES when it is enabled.
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/package/x11r7/xwayland/xwayland.mk b/package/x11r7/xwayland/xwayland.mk
index 2b8513602c..bce9a572ab 100644
--- a/package/x11r7/xwayland/xwayland.mk
+++ b/package/x11r7/xwayland/xwayland.mk
@@ -30,6 +30,14 @@ XWAYLAND_CONF_OPTS = \
-Ddtrace=false \
-Ddocs=false
+# Xwayland's glamor/DRI configure check needs Mesa's dri.pc in staging.
+# Without an explicit ordering dependency, a highly parallel build can run
+# Xwayland's configure before mesa3d is installed, failing with:
+# ERROR: Dependency "dri" not found
+ifeq ($(BR2_PACKAGE_MESA3D),y)
+XWAYLAND_DEPENDENCIES += mesa3d
+endif
+
ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_LIBEPOXY),yy)
XWAYLAND_CONF_OPTS += -Dglamor=true
XWAYLAND_DEPENDENCIES += libepoxy
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [Buildroot] [PATCH] package/x11r7/xwayland: add mesa3d ordering dependency
2026-07-16 13:30 [Buildroot] [PATCH] package/x11r7/xwayland: add mesa3d ordering dependency Adam Ford
@ 2026-07-16 19:30 ` John Ernberg
0 siblings, 0 replies; 2+ messages in thread
From: John Ernberg @ 2026-07-16 19:30 UTC (permalink / raw)
To: Adam Ford; +Cc: buildroot, Raphael Pavlidis
Hi Adam,
On Thu, Jul 16, 2026 at 3:30 PM Adam Ford <aford173@gmail.com> wrote:
>
> Xwayland's glamor/DRI configure check looks for Mesa's dri.pc in staging.
> Without an explicit ordering dependency, a highly parallel build can run
> Xwayland's configure before mesa3d is installed, failing with:
>
> ERROR: Dependency "dri" not found
>
> Add mesa3d to XWAYLAND_DEPENDENCIES when it is enabled.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/package/x11r7/xwayland/xwayland.mk b/package/x11r7/xwayland/xwayland.mk
> index 2b8513602c..bce9a572ab 100644
> --- a/package/x11r7/xwayland/xwayland.mk
> +++ b/package/x11r7/xwayland/xwayland.mk
> @@ -30,6 +30,14 @@ XWAYLAND_CONF_OPTS = \
> -Ddtrace=false \
> -Ddocs=false
>
> +# Xwayland's glamor/DRI configure check needs Mesa's dri.pc in staging.
> +# Without an explicit ordering dependency, a highly parallel build can run
> +# Xwayland's configure before mesa3d is installed, failing with:
> +# ERROR: Dependency "dri" not found
> +ifeq ($(BR2_PACKAGE_MESA3D),y)
> +XWAYLAND_DEPENDENCIES += mesa3d
> +endif
I found this problem as well but haven't succeeded making a valid
patch for it yet.
xwayland only needs dri when glx=true.
Should the check be closer to there to make it clearer that they are
connected? Maybe even inside the HAS_GL check?
However, I can't seem to find any other of the HAS_LIBGL providers
that produce a dri.pc, such as libglvnd, which conflicts with mesa3d
libgl provisions. (I wasn't able to build nvidia-driver last I tried,
so I don't know if they have a dri.pc)
Should mesa3d always be selected by xwayland?
Thanks! // John Ernberg
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-16 19:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-16 13:30 [Buildroot] [PATCH] package/x11r7/xwayland: add mesa3d ordering dependency Adam Ford
2026-07-16 19:30 ` John Ernberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox