* [Buildroot] [PATCH] xserver_xorg-server: add explicit handling for xwayland
@ 2016-05-24 13:04 Gustavo Zacarias
2016-05-24 15:43 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2016-05-24 13:04 UTC (permalink / raw)
To: buildroot
It's normally autodetected, which can lead to unexpected/unhandled
results.
configure checks for libdrm, libepoxy and wayland, however a proper
libxcomposite check is missing thus it can lead to build failure under
some odd conditions.
There's no autobuilder failure to quote here, however there's a mailing
list post that exemplifies this:
http://lists.busybox.net/pipermail/buildroot/2016-May/161793.html
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
index 31f6d0d..69e9151 100644
--- a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
+++ b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
@@ -80,6 +80,14 @@ XSERVER_XORG_SERVER_CONF_OPTS += \
--disable-systemd-logind
endif
+# Xwayland support needs libdrm, libepoxy, wayland and libxcomposite
+ifeq ($(BR2_PACKAGE_LIBDRM)$(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),yyyy)
+XSERVER_XORG_SERVER_CONF_OPTS += --enable-wayland
+XSERVER_XORG_SERVER_DEPENDENCIES += libdrm libepoxy wayland xlib_libXcomposite
+else
+XSERVER_XORG_SERVER_CONF_OPTS += --disable-wayland
+endif
+
# Present protocol only required for xserver 1.15+, but does not matter if
# enabled for older versions as they don't use it (not even optionally).
ifeq ($(BR2_PACKAGE_XPROTO_PRESENTPROTO),y)
--
2.7.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] xserver_xorg-server: add explicit handling for xwayland
2016-05-24 13:04 [Buildroot] [PATCH] xserver_xorg-server: add explicit handling for xwayland Gustavo Zacarias
@ 2016-05-24 15:43 ` Peter Korsgaard
2016-05-24 17:51 ` Gustavo Zacarias
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2016-05-24 15:43 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
> It's normally autodetected, which can lead to unexpected/unhandled
> results.
> configure checks for libdrm, libepoxy and wayland, however a proper
> libxcomposite check is missing thus it can lead to build failure under
> some odd conditions.
> There's no autobuilder failure to quote here, however there's a mailing
> list post that exemplifies this:
> http://lists.busybox.net/pipermail/buildroot/2016-May/161793.html
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/x11r7/xserver_xorg-server/xserver_xorg-server.mk | 8 ++++++++
> 1 file changed, 8 insertions(+)
> diff --git a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
> index 31f6d0d..69e9151 100644
> --- a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
> +++ b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
> @@ -80,6 +80,14 @@ XSERVER_XORG_SERVER_CONF_OPTS += \
> --disable-systemd-logind
> endif
> +# Xwayland support needs libdrm, libepoxy, wayland and libxcomposite
> +ifeq ($(BR2_PACKAGE_LIBDRM)$(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),yyyy)
> +XSERVER_XORG_SERVER_CONF_OPTS += --enable-wayland
> +XSERVER_XORG_SERVER_DEPENDENCIES += libdrm libepoxy wayland xlib_libXcomposite
Thanks. Except for libepoxy (and wayland) these are just normal
libraries. Would it make sense to pull them in in Config.in:
E.G.:
select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_WAYLAND
select BR2_PACKAGE_XLIB_LIBXCOMPOSITE if BR2_PACKAGE_WAYLAND
But ok, that can be done as a followup patch. Committed, thanks!
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] xserver_xorg-server: add explicit handling for xwayland
2016-05-24 15:43 ` Peter Korsgaard
@ 2016-05-24 17:51 ` Gustavo Zacarias
0 siblings, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2016-05-24 17:51 UTC (permalink / raw)
To: buildroot
On 24/05/16 12:43, Peter Korsgaard wrote:
> Thanks. Except for libepoxy (and wayland) these are just normal
> libraries. Would it make sense to pull them in in Config.in:
>
> E.G.:
>
> select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_WAYLAND
> select BR2_PACKAGE_XLIB_LIBXCOMPOSITE if BR2_PACKAGE_WAYLAND
>
> But ok, that can be done as a followup patch. Committed, thanks!
Hi.
Ideally this should be an option together with "classic" X server (since
they're both different binaries).
Xwayland (X on top of wayland) doesn't need/have use for all the xorg
drivers, and doesn't need the classic server either, but that's material
for 2016.08+
This solves the corner case where all of the automatic deps trigger a
failure because configure isn't complete.
Regards.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-24 17:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24 13:04 [Buildroot] [PATCH] xserver_xorg-server: add explicit handling for xwayland Gustavo Zacarias
2016-05-24 15:43 ` Peter Korsgaard
2016-05-24 17:51 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox