source: x/installing/xwayland.xml@ 321978b6

12.0 12.1 12.2 gimp3 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 321978b6 was 9a6d0d9, checked in by Xi Ruoyao <xry111@…>, 15 months ago

x: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • Property mode set to 100644
File size: 8.9 KB
RevLine 
[ab5ea1f1]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">
[ad6fc7ee]9 <!ENTITY xwayland-md5sum "7531f16ecef79ace2b513bf3c640fd60">
[ab5ea1f1]10 <!ENTITY xwayland-size "1.2 MB">
[ad6fc7ee]11 <!ENTITY xwayland-buildsize "27 MB (add 358 MB for tests)">
[41bc718]12 <!ENTITY xwayland-time "0.2 SBU (with parallelism=4; add 1.7 SBU for tests, not including clone time)">
[ab5ea1f1]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
[a43536ce]30 running on top of the wayland server. It has been separated from the
[ab5ea1f1]31 main Xorg server package. It allows running X clients inside a
32 wayland session.
33 </para>
34
[18aa9339]35 &lfs113_checked;
[ab5ea1f1]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">
[f1a479c7]75 <xref linkend="libxcvt"/>,
[ab5ea1f1]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">
[a4020bd]90 <xref linkend="git"/> (to download packages needed for the tests),
[ab5ea1f1]91 <xref linkend="libgcrypt"/>,
92 <xref linkend="nettle"/>,
[f1a479c7]93 <xref linkend="xmlto"/>,
[ab5ea1f1]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 </sect2>
101
102 <sect2 role="installation">
103 <title>Installation of Xwayland</title>
104
105 <para>
106 Install <application>xwayland</application> by running the following
107 commands:
108 </para>
109
[04af9db7]110<screen><userinput>sed -i '/install_man/,$d' meson.build &amp;&amp;
[ab5ea1f1]111
112mkdir build &amp;&amp;
[04af9db7]113cd build &amp;&amp;
[ab5ea1f1]114
[91318eb]115meson setup --prefix=$XORG_PREFIX \
116 --buildtype=release \
117 -Dxkb_output_dir=/var/lib/xkb \
118 .. &amp;&amp;
[ab5ea1f1]119ninja</userinput></screen>
120
121 <para>
122 Building the test framework needs some work. First,
123 <ulink url="https://wayland.pages.freedesktop.org/weston/">weston</ulink>
124 brings in several dependencies, but the number can be reduced by
125 disabling unneeded features. The <command>meson</command> command
126 for a stripped down build of <application>weston</application> is shown
127 in <ulink
[4b62db8]128 url="https://gitlab.freedesktop.org/xorg/xserver/-/blob/xwayland-22.1/.gitlab-ci/debian-install.sh">
[ab5ea1f1]129 Upstream continuous integration build</ulink>.
[58140c3e]130<!-- keep 22.1 above: they used to build it in gitlab-ci because debian
131 had an obsolete version of weston, but now they take weston from
132 debian so the command to build it has been removed. -->
[ab5ea1f1]133 </para>
[e1130df]134<!--
[ab5ea1f1]135 <para>
136 Furthermore, an X server needs to be running during the build of
137 <application>xts</application>. If not running the tests in a
138 graphical environment, you'll need to enable <command>Xvfb</command>
139 by removing the <parameter>-Dxvfb=false</parameter> above. The
[f1a479c7]140 instructions below expect this has been done.
[ab5ea1f1]141 </para>
[e1130df]142-->
[ab5ea1f1]143 <para>
144 Running the tests involves downloading two other frameworks, in addition
145 to the mentioned optional dependencies:
146 </para>
147
148<screen remap="test"><userinput>mkdir tools &amp;&amp;
149pushd tools &amp;&amp;
150
151git clone https://gitlab.freedesktop.org/mesa/piglit.git --depth 1 &amp;&amp;
152cat &gt; piglit/piglit.conf &lt;&lt; EOF &amp;&amp;
153<literal>[xts]
154path=$(pwd)/xts
155EOF</literal>
156
157git clone https://gitlab.freedesktop.org/xorg/test/xts --depth 1 &amp;&amp;
158
159export DISPLAY=:22 &amp;&amp;
[f1a479c7]160../hw/vfb/Xvfb $DISPLAY &amp;
[ab5ea1f1]161VFB_PID=$! &amp;&amp;
162cd xts &amp;&amp;
163CFLAGS=-fcommon ./autogen.sh &amp;&amp;
164make &amp;&amp;
165kill $VFB_PID &amp;&amp;
166unset DISPLAY VFB_PID &amp;&amp;
167popd</userinput></screen>
168
169 <para>
170 Then the tests can be run with:
171 </para>
172
173<screen remap="test"><userinput>XTEST_DIR=$(pwd)/tools/xts PIGLIT_DIR=$(pwd)/tools/piglit ninja test</userinput></screen>
174
[f1a479c7]175 <!-- The xfontset tests fail on my system -renodr -->
[ab5ea1f1]176 <para>
177 Now, as the <systemitem class="username">root</systemitem> user:
178 </para>
179
[6c6b4190]180<screen role="root" revision="sysv"><userinput>ninja install &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
[1770d64]185<screen role="root" revision="systemd"><userinput>ninja install</userinput></screen>
[6c6b4190]186
[e1130df]187 <para>
188 If <xref linkend='xorg-server'/> is not installed and you do not plan
189 to install it later, you can install <command>Xvfb</command> from this
190 package. As the &root; user:
191 </para>
192
193<screen role="nodump"><userinput>install -vm755 hw/vfb/Xvfb /usr/bin</userinput></screen>
194
[ab5ea1f1]195 </sect2>
196
197 <sect2 role="commands">
198 <title>Command Explanations</title>
199
200 <para>
[04af9db7]201 <command>sed -i '/install_man/,$d' meson.build</command>: Prevents
[ab5ea1f1]202 installing a manual page for <command>Xserver</command>,
[1770d64]203 which is also provided by <xref linkend='xorg-server'/>. Remove this
204 command if <xref linkend='xorg-server'/> is not installed and you
205 don't plan to install it later.
[ab5ea1f1]206 </para>
[1770d64]207
208 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
209 href="../../xincludes/meson-buildtype-release.xml"/>
[e1130df]210<!--
[ab5ea1f1]211 <para>
212 <parameter>-Dxvfb=false</parameter>: Prevents building the
213 <command>xvfb</command> program, which is also installed by
[f1a479c7]214 <xref linkend="xorg-server"/>. Remove this option if you do not plan to
[ab5ea1f1]215 install the X server.
216 </para>
[1770d64]217
[6c6b4190]218 <para>
219 <command>mkdir -pv /etc/X11/xorg.conf.d</command>: This directory is
220 needed to put configuration files for Xwayland. This command ensures
221 that it exists, as some applications might use it without first
222 creating it.
223 </para>
[1770d64]224-->
[6c6b4190]225 <para revision="sysv">
226 <command>cat &gt;&gt; /etc/sysconfig/createfiles...</command>: This
227 command creates the <filename class="directory">/tmp/.X11-unix</filename>
228 directory at startup, and ensures that the permissions and ownership
229 are correct as required by applications using Xwayland.
230 </para>
231
[ab5ea1f1]232 </sect2>
233
234 <sect2 role="content">
235 <title>Contents</title>
236
237 <segmentedlist>
238 <segtitle>Installed Program</segtitle>
239 <segtitle>Installed Library</segtitle>
240 <segtitle>Installed Directory</segtitle>
241
242 <seglistitem>
243 <seg>
244 Xwayland
245 </seg>
246 <seg>
247 None
248 </seg>
249 <seg>
250 None
251 </seg>
252 </seglistitem>
253 </segmentedlist>
254
255 <variablelist>
256 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
257 <?dbfo list-presentation="list"?>
258 <?dbhtml list-presentation="table"?>
259
260 <varlistentry id="Xwayland">
261 <term><command>Xwayland</command></term>
262 <listitem>
263 <para>
[f1a479c7]264 Allows X clients to run under wayland
[ab5ea1f1]265 </para>
266 <indexterm zone="xwayland Xwayland">
267 <primary sortas="b-Xwayland">Xwayland</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271 </variablelist>
272 </sect2>
273</sect1>
Note: See TracBrowser for help on using the repository browser.