source: x/installing/xwayland.xml@ 40c9be7

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 40c9be7 was 40c9be7, checked in by Pierre Labastie <pierre.labastie@…>, 15 months ago

Update to xwayland-22.1.8

  • Property mode set to 100644
File size: 8.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY xwayland-download-http "&xorg-download-http;/xserver/xwayland-&xwayland-version;.tar.xz">
8 <!ENTITY xwayland-download-ftp "&xorg-download-ftp;/xserver/xwayland-&xwayland-version;.tar.xz">
9 <!ENTITY xwayland-md5sum "96879f938a91b0441ea784220159d843">
10 <!ENTITY xwayland-size "1.2 MB">
11 <!ENTITY xwayland-buildsize "76 MB (add 358 MB for tests)">
12 <!ENTITY xwayland-time "0.2 SBU (with parallelism=4; add 1.0 SBU for tests, not including clone time)">
13]>
14
15<sect1 id="xwayland" xreflabel="Xwayland-&xwayland-version;">
16 <?dbhtml filename="xwayland.html"?>
17
18
19 <title>Xwayland-&xwayland-version;</title>
20
21 <indexterm zone="xwayland">
22 <primary sortas="a-xwayland">xwayland</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Xwayland</title>
27
28 <para>
29 The <application>Xwayland</application> package is an Xorg server
30 running on top of the wayland server. It has been separated from the
31 main Xorg server package. It allows running X clients inside a
32 wayland session.
33 </para>
34
35 &lfs112_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&xwayland-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&xwayland-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &xwayland-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &xwayland-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &xwayland-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &xwayland-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Xwayland Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <xref linkend="libxcvt"/>,
76 <xref linkend="pixman"/>,
77 <xref linkend="wayland-protocols"/>, and
78 <xref linkend="xorg7-font"/> (only font-util)
79 </para>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
83 <xref linkend="libepoxy"/>,
84 <xref linkend="libtirpc"/>, and
85 <xref linkend="mesa"/>
86 </para>
87
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
90 <xref linkend="git"/> (to download packages needed for the tests),
91 <xref linkend="libgcrypt"/>,
92 <xref linkend="nettle"/>,
93 <xref linkend="xmlto"/>,
94 <xref linkend="xorg7-legacy"/>
95 (only bdftopcf, for building fonts required for the tests),
96 <ulink url="https://gitlab.freedesktop.org/xorg/test/rendercheck">rendercheck</ulink> (for tests), and
97 <ulink url="https://wayland.pages.freedesktop.org/weston/">weston</ulink> (for tests)
98 </para>
99
100 <para condition="html" role="usernotes">
101 User Notes: <ulink url="&blfs-wiki;/xwayland"/>
102 </para>
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of Xwayland</title>
107
108 <para>
109 Install <application>xwayland</application> by running the following
110 commands:
111 </para>
112
113<screen><userinput>sed -i '/install_man/,$d' meson.build &amp;&amp;
114
115mkdir build &amp;&amp;
116cd build &amp;&amp;
117
118meson --prefix=$XORG_PREFIX \
119 -Dxkb_output_dir=/var/lib/xkb \
120 .. &amp;&amp;
121ninja</userinput></screen>
122
123 <para>
124 Building the test framework needs some work. First,
125 <ulink url="https://wayland.pages.freedesktop.org/weston/">weston</ulink>
126 brings in several dependencies, but the number can be reduced by
127 disabling unneeded features. The <command>meson</command> command
128 for a stripped down build of <application>weston</application> is shown
129 in <ulink
130 url="https://gitlab.freedesktop.org/xorg/xserver/-/blob/xwayland-22.1/.gitlab-ci/debian-install.sh">
131 Upstream continuous integration build</ulink>.
132 </para>
133<!--
134 <para>
135 Furthermore, an X server needs to be running during the build of
136 <application>xts</application>. If not running the tests in a
137 graphical environment, you'll need to enable <command>Xvfb</command>
138 by removing the <parameter>-Dxvfb=false</parameter> above. The
139 instructions below expect this has been done.
140 </para>
141-->
142 <para>
143 Running the tests involves downloading two other frameworks, in addition
144 to the mentioned optional dependencies:
145 </para>
146
147<screen remap="test"><userinput>mkdir tools &amp;&amp;
148pushd tools &amp;&amp;
149
150git clone https://gitlab.freedesktop.org/mesa/piglit.git --depth 1 &amp;&amp;
151cat &gt; piglit/piglit.conf &lt;&lt; EOF &amp;&amp;
152<literal>[xts]
153path=$(pwd)/xts
154EOF</literal>
155
156git clone https://gitlab.freedesktop.org/xorg/test/xts --depth 1 &amp;&amp;
157
158export DISPLAY=:22 &amp;&amp;
159../hw/vfb/Xvfb $DISPLAY &amp;
160VFB_PID=$! &amp;&amp;
161cd xts &amp;&amp;
162CFLAGS=-fcommon ./autogen.sh &amp;&amp;
163make &amp;&amp;
164kill $VFB_PID &amp;&amp;
165unset DISPLAY VFB_PID &amp;&amp;
166popd</userinput></screen>
167
168 <para>
169 Then the tests can be run with:
170 </para>
171
172<screen remap="test"><userinput>XTEST_DIR=$(pwd)/tools/xts PIGLIT_DIR=$(pwd)/tools/piglit ninja test</userinput></screen>
173
174 <!-- The xfontset tests fail on my system -renodr -->
175 <para>
176 Now, as the <systemitem class="username">root</systemitem> user:
177 </para>
178
179<screen role="root" revision="sysv"><userinput>ninja install &amp;&amp;
180mkdir -pv /etc/X11/xorg.conf.d &amp;&amp;
181cat &gt;&gt; /etc/sysconfig/createfiles &lt;&lt; "EOF"
182<literal>/tmp/.X11-unix dir 1777 root root</literal>
183EOF</userinput></screen>
184
185<screen role="root" revision="systemd"><userinput>ninja install &amp;&amp;
186mkdir -pv /etc/X11/xorg.conf.d</userinput></screen>
187
188 <para>
189 If <xref linkend='xorg-server'/> is not installed and you do not plan
190 to install it later, you can install <command>Xvfb</command> from this
191 package. As the &root; user:
192 </para>
193
194<screen role="nodump"><userinput>install -vm755 hw/vfb/Xvfb /usr/bin</userinput></screen>
195
196 </sect2>
197
198 <sect2 role="commands">
199 <title>Command Explanations</title>
200
201 <para>
202 <command>sed -i '/install_man/,$d' meson.build</command>: Prevents
203 installing a manual page for <command>Xserver</command>,
204 which is not part of this package.
205 </para>
206<!--
207 <para>
208 <parameter>-Dxvfb=false</parameter>: Prevents building the
209 <command>xvfb</command> program, which is also installed by
210 <xref linkend="xorg-server"/>. Remove this option if you do not plan to
211 install the X server.
212 </para>
213-->
214 <para>
215 <command>mkdir -pv /etc/X11/xorg.conf.d</command>: This directory is
216 needed to put configuration files for Xwayland. This command ensures
217 that it exists, as some applications might use it without first
218 creating it.
219 </para>
220
221 <para revision="sysv">
222 <command>cat &gt;&gt; /etc/sysconfig/createfiles...</command>: This
223 command creates the <filename class="directory">/tmp/.X11-unix</filename>
224 directory at startup, and ensures that the permissions and ownership
225 are correct as required by applications using Xwayland.
226 </para>
227
228 </sect2>
229
230 <sect2 role="content">
231 <title>Contents</title>
232
233 <segmentedlist>
234 <segtitle>Installed Program</segtitle>
235 <segtitle>Installed Library</segtitle>
236 <segtitle>Installed Directory</segtitle>
237
238 <seglistitem>
239 <seg>
240 Xwayland
241 </seg>
242 <seg>
243 None
244 </seg>
245 <seg>
246 None
247 </seg>
248 </seglistitem>
249 </segmentedlist>
250
251 <variablelist>
252 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
253 <?dbfo list-presentation="list"?>
254 <?dbhtml list-presentation="table"?>
255
256 <varlistentry id="Xwayland">
257 <term><command>Xwayland</command></term>
258 <listitem>
259 <para>
260 Allows X clients to run under wayland
261 </para>
262 <indexterm zone="xwayland Xwayland">
263 <primary sortas="b-Xwayland">Xwayland</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267 </variablelist>
268 </sect2>
269</sect1>
Note: See TracBrowser for help on using the repository browser.