mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Lucas Stach <l.stach@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] xwayland: split out of xorg-server, update to 22.1.3
Date: Tue, 30 Aug 2022 11:09:32 +0200	[thread overview]
Message-ID: <20220830090932.924660-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20220811104551.1545447-2-l.stach@pengutronix.de>

Thanks, applied as 393077a765a41ce18b32fe01ea18a96c7ee65cc2.

Michael

[sent from post-receive hook]

On Tue, 30 Aug 2022 11:09:32 +0200, Lucas Stach <l.stach@pengutronix.de> wrote:
> Separate XWayland out of the xorg-server package into a new xwayland
> package and update to version 22.1.3.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> Message-Id: <20220811104551.1545447-2-l.stach@pengutronix.de>
> [mol: don't duplicate XORG_FONT_DIRS definition]
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/weston.in b/rules/weston.in
> index ca2e06a53201..550eda4b19aa 100644
> --- a/rules/weston.in
> +++ b/rules/weston.in
> @@ -23,11 +23,11 @@ menuconfig WESTON
>  	select MESALIB_GLES2		if WESTON_GL
>  	select CAIRO_GLES2		if WESTON_GL
>  	select CAIRO_EGL		if WESTON_GL
> +	select XORG			if WESTON_XWAYLAND
>  	select CAIRO_XCB		if WESTON_XWAYLAND
>  	select LIBXCB			if WESTON_XWAYLAND
>  	select XORG_LIB_XCURSOR		if WESTON_XWAYLAND
> -	select XORG_SERVER		if WESTON_XWAYLAND && RUNTIME
> -	select XORG_SERVER_XWAYLAND	if WESTON_XWAYLAND && RUNTIME
> +	select XWAYLAND			if WESTON_XWAYLAND && RUNTIME
>  	select SEATD			if WESTON_SEATD
>  	select SYSTEMD			if WESTON_SYSTEMD
>  	select SYSTEMD_LOGIND		if WESTON_SYSTEMD_LOGIND
> diff --git a/rules/xorg-server.in b/rules/xorg-server.in
> index 5632991c32b3..030b3a72de4b 100644
> --- a/rules/xorg-server.in
> +++ b/rules/xorg-server.in
> @@ -62,11 +62,6 @@ menuconfig XORG_SERVER
>  	# xorg ddx
>  	select LIBPCIACCESS		if XORG_SERVER_XORG
>  
> -	# xwayland ddx
> -	select WAYLAND			if XORG_SERVER_XWAYLAND
> -	select LIBDRM			if XORG_SERVER_XWAYLAND
> -	select LIBEPOXY			if XORG_SERVER_XWAYLAND
> -
>  	# glamor module
>  	select LIBEPOXY			if XORG_SERVER_GLAMOR
>  	select MESALIB			if XORG_SERVER_GLAMOR
> @@ -168,12 +163,6 @@ config XORG_SERVER_XNEST
>  	  An X server working on a running X server. Disadvantage is Xnest
>  	  supports only features the running X server itself supports.
>  
> -config XORG_SERVER_XWAYLAND
> -	bool
> -	select XORG_SERVER_EXT_COMPOSITE
> -	select XORG_SERVER_EXT_DRI3
> -	prompt "Xwayland server"
> -
>  config XORG_SERVER_XWIN
>  	bool
>  	depends on BROKEN
> diff --git a/rules/xorg-server.make b/rules/xorg-server.make
> index 0a2d4436f5e2..15049f5ea29e 100644
> --- a/rules/xorg-server.make
> +++ b/rules/xorg-server.make
> @@ -88,7 +88,7 @@ XORG_SERVER_CONF_OPT	= \
>  	-Dxv=$(call ptx/truefalse, PTXCONF_XORG_SERVER_EXT_XV) \
>  	-Dxvfb=$(call ptx/truefalse, PTXCONF_XORG_SERVER_XVFB) \
>  	-Dxvmc=$(call ptx/truefalse, PTXCONF_XORG_SERVER_EXT_XVMC) \
> -	-Dxwayland=$(call ptx/truefalse, PTXCONF_XORG_SERVER_XWAYLAND) \
> +	-Dxwayland=false \
>  	-Dxwayland_eglstream=false \
>  	-Dxwin=$(call ptx/truefalse, PTXCONF_XORG_SERVER_XWIN)
>  
> @@ -127,10 +127,6 @@ ifdef PTXCONF_XORG_SERVER_XNEST
>  	@$(call install_copy, xorg-server, 0, 0, 0755, -, \
>  		$(XORG_PREFIX)/bin/Xnest)
>  endif
> -ifdef PTXCONF_XORG_SERVER_XWAYLAND
> -	@$(call install_copy, xorg-server, 0, 0, 0755, -, \
> -		$(XORG_PREFIX)/bin/Xwayland)
> -endif
>  ifdef PTXCONF_XORG_SERVER_XWIN
>  	@$(call install_copy, xorg-server, 0, 0, 0755, -, \
>  		$(XORG_PREFIX)/bin/Xwin)
> diff --git a/rules/xwayland.in b/rules/xwayland.in
> new file mode 100644
> index 000000000000..d756b4ab1c5c
> --- /dev/null
> +++ b/rules/xwayland.in
> @@ -0,0 +1,75 @@
> +## SECTION=multimedia_xorg
> +
> +menuconfig XWAYLAND
> +	tristate
> +	prompt "XWayland"
> +	select HOST_MESON
> +	select LIBC_M
> +	select LIBDRM
> +	select LIBEPOXY
> +	select LIBXCVT
> +	select NETTLE
> +	select PIXMAN
> +	select WAYLAND
> +	select XORGPROTO
> +	select XORG_LIB_FONTENC
> +	select XORG_LIB_XAU
> +	select XORG_LIB_XEXT
> +	select XORG_LIB_XFONT2
> +	select XORG_LIB_XKBFILE
> +	select XORG_LIB_XSHMFENCE
> +	select XORG_LIB_XTRANS
> +	select MESALIB			if XWAYLAND_GLAMOR
> +	select MESALIB_GBM		if XWAYLAND_GLAMOR
> +	select XORG_LIB_XV		if XWAYLAND_EXT_XV
> +	select XORG_LIB_XRES		if XWAYLAND_EXT_XRES
> +	select XORG_APP_XKBCOMP		if RUNTIME
> +
> +if XWAYLAND
> +
> +menu "xwayland extensions"
> +
> +config XWAYLAND_EXT_GLX
> +	bool
> +	prompt "glx extension"
> +	default y
> +	help
> +	  Support for the GLX extension allowing clients to set up
> +	  a OpenGL context on a X display when not using EGL.
> +
> +config XWAYLAND_EXT_SHM
> +	bool
> +	prompt "shm extension"
> +	default y
> +	help
> +	  Support for MIT Shared Memory
> +
> +config XWAYLAND_EXT_XRES
> +	bool
> +	prompt "xres extension"
> +	default y
> +	help
> +	  The X-Resource extension allows a client to query the X server about
> +	  its usage of various resources.
> +
> +config XWAYLAND_EXT_XV
> +	bool
> +	prompt "xv extension"
> +	default y
> +	help
> +	  The Xv extension provides support for video adaptors attached to an X
> +	  display. It takes the approach that a display may have one or more
> +	  video adaptors, each of which has one or more ports through which
> +	  independent video streams pass
> +
> +config XWAYLAND_GLAMOR
> +	bool
> +	prompt "glamor module"
> +	help
> +	  The glamor module is an open-source 2D graphics common driver
> +	  for the X Window System as implemented by X.org. It supports a
> +	  variety of graphics chipsets which have EGL/GBM/OpenGL 2.1 support.
> +
> +endmenu
> +
> +endif
> diff --git a/rules/xwayland.make b/rules/xwayland.make
> new file mode 100644
> index 000000000000..2cb82fd4b9b2
> --- /dev/null
> +++ b/rules/xwayland.make
> @@ -0,0 +1,99 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 Philipp Zabel
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_XWAYLAND) += xwayland
> +
> +#
> +# Paths and names
> +#
> +XWAYLAND_VERSION	:= 22.1.3
> +XWAYLAND_MD5		:= 83849961283e8cea32be6740914822e5
> +XWAYLAND		:= xwayland-$(XWAYLAND_VERSION)
> +XWAYLAND_SUFFIX		:= tar.xz
> +XWAYLAND_URL		:= $(call ptx/mirror, XORG, individual/xserver/$(XWAYLAND).$(XWAYLAND_SUFFIX))
> +XWAYLAND_SOURCE		:= $(SRCDIR)/$(XWAYLAND).$(XWAYLAND_SUFFIX)
> +XWAYLAND_DIR		:= $(BUILDDIR)/$(XWAYLAND)
> +XWAYLAND_LICENSE	:= MIT
> +XWAYLAND_LICENSE_FILES	:= \
> +	file://COPYING;md5=5df87950af51ac2c5822094553ea1880
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# meson
> +#
> +XWAYLAND_CONF_TOOL	:= meson
> +XWAYLAND_CONF_OPT	:= \
> +	$(CROSS_MESON_USR) \
> +	-Dbuilder_addr=ptxdist@pengutronix.de \
> +	-Dbuilder_string=PTXdist \
> +	-Ddefault_font_path=$(subst $(space),$(comma),$(addprefix $(XORG_FONTDIR)/,$(XORG_FONT_DIRS))) \
> +	-Ddpms=false \
> +	-Ddri3=true \
> +	-Ddtrace=false \
> +	-Dglamor=$(call ptx/truefalse, PTXCONF_XWAYLAND_GLAMOR) \
> +	-Dglx=$(call ptx/truefalse, PTXCONF_XWAYLAND_EXT_GLX) \
> +	-Dinput_thread=auto \
> +	-Dipv6=$(call ptx/truefalse, PTXCONF_GLOBAL_IPV6) \
> +	-Dlibunwind=false \
> +	-Dlisten_local=true \
> +	-Dlisten_tcp=false \
> +	-Dlisten_unix=true \
> +	-Dmitshm=$(call ptx/truefalse, PTXCONF_XWAYLAND_EXT_SHM) \
> +	-Dscreensaver=false \
> +	-Dsecure-rpc=false \
> +	-Dsha1=libnettle \
> +	-Dvendor_name=PTXdist \
> +	-Dvendor_name_short=PTXdist \
> +	-Dvendor_web=https://www.ptxdist.org/ \
> +	-Dxace=false \
> +	-Dxcsecurity=false \
> +	-Dxdm-auth-1=false \
> +	-Dxdmcp=false \
> +	-Dxf86bigfont=false \
> +	-Dxinerama=false \
> +	-Dxkb_bin_dir=/usr/bin \
> +	-Dxkb_default_layout=us \
> +	-Dxkb_default_model=pc105 \
> +	-Dxkb_default_options= \
> +	-Dxkb_default_rules=evdev \
> +	-Dxkb_default_variant= \
> +	-Dxkb_dir=/usr/share/X11/xkb \
> +	-Dxkb_output_dir= \
> +	-Dxres=$(call ptx/truefalse, PTXCONF_XWAYLAND_EXT_XRES) \
> +	-Dxselinux=false \
> +	-Dxv=$(call ptx/truefalse, PTXCONF_XWAYLAND_EXT_XV) \
> +	-Dxvfb=false \
> +	-Dxwayland-path= \
> +	-Dxwayland_eglstream=false
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/xwayland.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, xwayland)
> +	@$(call install_fixup, xwayland,PRIORITY,optional)
> +	@$(call install_fixup, xwayland,SECTION,base)
> +	@$(call install_fixup, xwayland,AUTHOR,"Philipp Zabel <p.zabel@pengutronix.de>")
> +	@$(call install_fixup, xwayland,DESCRIPTION,missing)
> +
> +	@$(call install_copy, xwayland, 0, 0, 0755, -, $(XORG_PREFIX)/bin/Xwayland)
> +
> +	@$(call install_finish, xwayland)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make



  reply	other threads:[~2022-08-30  9:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-11 10:45 [ptxdist] [PATCH 1/2] libxcvt: new package Lucas Stach
2022-08-11 10:45 ` [ptxdist] [PATCH 2/2] xwayland: split out of xorg-server, update to 22.1.3 Lucas Stach
2022-08-30  9:09   ` Michael Olbrich [this message]
2022-08-30  9:09 ` [ptxdist] [APPLIED] libxcvt: new package Michael Olbrich

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=20220830090932.924660-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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