source: x/installing/xwayland.xml@ 79a1e37e

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/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 79a1e37e was 79a1e37e, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Package updates.
Update to freetype-2.12.0.
Update to fontconfig-2.14.0.
Update to xwayland-22.1.1.

  • Property mode set to 100644
File size: 8.4 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 "a32eb7be356b7bd5a320be0de12ee9ef">
10 <!ENTITY xwayland-size "1.2 MB">
11 <!ENTITY xwayland-buildsize "52 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="git"/> (to download packages needed for the tests),
94 <xref linkend="libgcrypt"/>,
95 <xref linkend="nettle"/>,
96 <xref linkend="xmlto"/>,
97 <xref linkend="xorg7-legacy"/>
98 (only bdftopcf, for building fonts required for the tests),
99 <ulink url="https://gitlab.freedesktop.org/xorg/test/rendercheck">rendercheck</ulink> (for tests), and
100 <ulink url="https://wayland.pages.freedesktop.org/weston/">weston</ulink> (for tests)
101 </para>
102
103 <para condition="html" role="usernotes">
104 User Notes: <ulink url="&blfs-wiki;/xwayland"/>
105 </para>
106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of Xwayland</title>
110
111 <para>
112 Install <application>xwayland</application> by running the following
113 commands:
114 </para>
115
116<screen><userinput>sed -i '/install_man/,$d' meson.build &amp;&amp;
117
118mkdir build &amp;&amp;
119cd build &amp;&amp;
120
121meson --prefix=$XORG_PREFIX \
122 -Dxvfb=false \
123 -Dxkb_output_dir=/var/lib/xkb \
124 .. &amp;&amp;
125ninja</userinput></screen>
126
127 <para>
128 Building the test framework needs some work. First,
129 <ulink url="https://wayland.pages.freedesktop.org/weston/">weston</ulink>
130 brings in several dependencies, but the number can be reduced by
131 disabling unneeded features. The <command>meson</command> command
132 for a stripped down build of <application>weston</application> is shown
133 in <ulink
134 url="https://gitlab.freedesktop.org/xorg/xserver/-/blob/xwayland-21.1/.gitlab-ci/debian-install.sh">
135 Upstream continuous integration build</ulink>.
136 </para>
137
138 <para>
139 Furthermore, an X server needs to be running during the build of
140 <application>xts</application>. If not running the tests in a
141 graphical environment, you'll need to enable <command>Xvfb</command>
142 by removing the <parameter>-Dxvfb=false</parameter> above. The
143 instructions below expect this has been done.
144 </para>
145
146 <para>
147 Running the tests involves downloading two other frameworks, in addition
148 to the mentioned optional dependencies:
149 </para>
150
151<screen remap="test"><userinput>mkdir tools &amp;&amp;
152pushd tools &amp;&amp;
153
154git clone https://gitlab.freedesktop.org/mesa/piglit.git --depth 1 &amp;&amp;
155cat &gt; piglit/piglit.conf &lt;&lt; EOF &amp;&amp;
156<literal>[xts]
157path=$(pwd)/xts
158EOF</literal>
159
160git clone https://gitlab.freedesktop.org/xorg/test/xts --depth 1 &amp;&amp;
161
162export DISPLAY=:22 &amp;&amp;
163../hw/vfb/Xvfb $DISPLAY &amp;
164VFB_PID=$! &amp;&amp;
165cd xts &amp;&amp;
166CFLAGS=-fcommon ./autogen.sh &amp;&amp;
167make &amp;&amp;
168kill $VFB_PID &amp;&amp;
169unset DISPLAY VFB_PID &amp;&amp;
170popd</userinput></screen>
171
172 <para>
173 Then the tests can be run with:
174 </para>
175
176<screen remap="test"><userinput>XTEST_DIR=$(pwd)/tools/xts PIGLIT_DIR=$(pwd)/tools/piglit ninja test</userinput></screen>
177
178 <!-- The xfontset tests fail on my system -renodr -->
179 <para>
180 Now, as the <systemitem class="username">root</systemitem> user:
181 </para>
182
183<screen role="root" revision="sysv"><userinput>ninja install &amp;&amp;
184mkdir -pv /etc/X11/xorg.conf.d &amp;&amp;
185cat &gt;&gt; /etc/sysconfig/createfiles &lt;&lt; "EOF"
186<literal>/tmp/.X11-unix dir 1777 root root</literal>
187EOF</userinput></screen>
188
189<screen role="root" revision="systemd"><userinput>ninja install &amp;&amp;
190mkdir -pv /etc/X11/xorg.conf.d</userinput></screen>
191
192 </sect2>
193
194 <sect2 role="commands">
195 <title>Command Explanations</title>
196
197 <para>
198 <command>sed -i '/install_man/,$d' meson.build</command>: Prevents
199 installing a manual page for <command>Xserver</command>,
200 which is not part of this package.
201 </para>
202
203 <para>
204 <parameter>-Dxvfb=false</parameter>: Prevents building the
205 <command>xvfb</command> program, which is also installed by
206 <xref linkend="xorg-server"/>. Remove this option if you do not plan to
207 install the X server.
208 </para>
209
210 <para>
211 <command>mkdir -pv /etc/X11/xorg.conf.d</command>: This directory is
212 needed to put configuration files for Xwayland. This command ensures
213 that it exists, as some applications might use it without first
214 creating it.
215 </para>
216
217 <para revision="sysv">
218 <command>cat &gt;&gt; /etc/sysconfig/createfiles...</command>: This
219 command creates the <filename class="directory">/tmp/.X11-unix</filename>
220 directory at startup, and ensures that the permissions and ownership
221 are correct as required by applications using Xwayland.
222 </para>
223
224 </sect2>
225
226 <sect2 role="content">
227 <title>Contents</title>
228
229 <segmentedlist>
230 <segtitle>Installed Program</segtitle>
231 <segtitle>Installed Library</segtitle>
232 <segtitle>Installed Directory</segtitle>
233
234 <seglistitem>
235 <seg>
236 Xwayland
237 </seg>
238 <seg>
239 None
240 </seg>
241 <seg>
242 None
243 </seg>
244 </seglistitem>
245 </segmentedlist>
246
247 <variablelist>
248 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
249 <?dbfo list-presentation="list"?>
250 <?dbhtml list-presentation="table"?>
251
252 <varlistentry id="Xwayland">
253 <term><command>Xwayland</command></term>
254 <listitem>
255 <para>
256 Allows X clients to run under wayland
257 </para>
258 <indexterm zone="xwayland Xwayland">
259 <primary sortas="b-Xwayland">Xwayland</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263 </variablelist>
264 </sect2>
265</sect1>
Note: See TracBrowser for help on using the repository browser.