source: x/installing/xwayland.xml@ f1a479c7

11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f1a479c7 was f1a479c7, checked in by Douglas R. Reno <renodr@…>, 2 years ago

Package Updates and Tags

Update to xf86-input-wacom-1.0.0
Update to libdrm-2.4.110
Update to XWayland-22.1.0

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