source: kde/plasma5/plasma-all.xml@ 4454113

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/xf86-video-removal
Last change on this file since 4454113 was f3a27771, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Plasma: Add Xwayland as a runtime recommended dep

It is needed to run kwin-wayland

  • Property mode set to 100644
File size: 17.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE chapter 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 plasma5-download-http "https://download.kde.org/stable/plasma/&plasma5-version;">
8 <!ENTITY plasma5-download-ftp " ">
9 <!ENTITY plasma5-md5sum "See Below">
10 <!ENTITY plasma5-size "154 MB">
11 <!ENTITY plasma5-buildsize "1.5 GB (370 MB installed)">
12 <!ENTITY plasma5-time "17 SBU (using parallelism=4)">
13]>
14
15<sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
16 <?dbhtml filename="plasma-all.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>Building Plasma 5</title>
23
24 <indexterm zone="plasma5-build">
25 <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
26 </indexterm>
27
28 <para>
29 KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
30 5 and QML. They implement the KDE Display Environment (Plasma 5).
31 </para>
32
33 &lfs112_checked;
34
35 <para>
36 The instructions below build all of the Plasma 5 packages in one
37 step by using a bash script.
38 </para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&plasma5-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&plasma5-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &plasma5-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &plasma5-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &plasma5-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &plasma5-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <!--<xref linkend="fontforge"/>,-->
79 <!-- does not seem to be needed as of 5.22.4 <xref linkend="GConf"/>, -->
80 <xref linkend="gtk2"/>,
81 <xref linkend="gtk3"/>,
82 <xref linkend="kf5-frameworks"/>,
83 <xref linkend="libpwquality"/>,
84 <xref linkend="libqalculate"/>,
85 <xref linkend="libxkbcommon"/>,
86 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
87 <xref linkend="NetworkManager"/>,
88 <xref linkend="pipewire"/>,
89 <xref linkend="pulseaudio"/>,
90 <xref linkend="qca"/>,
91 <xref linkend="sassc"/>,
92 <xref linkend="taglib"/>, and
93 <xref linkend="xcb-util-cursor"/>
94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
98 <xref linkend="fftw"/>,
99 <xref linkend="gsettings-desktop-schemas"/>,
100 <xref linkend="libdbusmenu-qt"/>,
101 <xref linkend="libcanberra"/>,
102 <xref linkend="libinput"/>,
103 <xref linkend="libpcap"/>,
104 <xref linkend="linux-pam"/>,
105 <xref linkend="lm_sensors"/>,
106 <xref linkend="oxygen-icons5"/>, and
107 <xref linkend="pciutils"/>
108 </para>
109
110 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
111 <para role="recommended">
112 <xref role="runtime" linkend="accountsservice"/>,
113 <xref role="runtime" linkend="smartmontools"/>, and
114 <xref role="runtime" linkend="xwayland"/>
115 </para>
116
117 <bridgehead renderas="sect4">Optional</bridgehead>
118 <para role="optional">
119 <xref linkend="glu"/>,
120 <xref linkend='ibus'/>,
121 <xref linkend='qtwebengine'/>,
122 <xref linkend="xorg-synaptics-driver"/>,
123 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
124 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
125 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
126 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
127 <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
128 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
129 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
130 <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
131 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
132 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
133 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
134 </para>
135
136 <note>
137 <para>
138 Only two plasma packages optionally use <xref linkend="qtwebengine"/>:
139 libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
140 only those two packages have to be rebuilt. This allows to provide
141 a more complete display in the system monitor application.
142 </para>
143 </note>
144
145 <para condition="html" role="usernotes">User Notes:
146 <ulink url="&blfs-wiki;/kf5"/></para>
147
148 <sect2>
149 <title>Downloading KDE Plasma5</title>
150
151 <para>
152 The easiest way to get the KDE Plasma5 packages is to use a single
153 <command>wget</command> to fetch them all at once:
154 </para>
155
156<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
157wget -r -nH -nd -A '*.xz' -np $url</userinput>
158<literal>
159The options used here are:
160 -r recurse through child directories
161 -nH disable generation of host-prefixed directories
162 -nd do not create a hierarchy of directories
163 -A '*.xz' just get the *.xz files
164 -np don't get parent directories</literal></screen>
165
166 </sect2>
167
168 <sect2>
169 <title>Setting Package Order</title>
170
171 <para>
172 The order of building files is important due to internal dependencies.
173 Create the list of files in the proper order as follows:
174 </para>
175
176<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
177<literal>cc886e068156be2e3a38dd581ef5c7cd kdecoration-5.25.4.tar.xz
178dc335301006b1007714dc2af028856ef libkscreen-5.25.4.tar.xz
17938101d3a8fee3a6eef04370e29da3538 libksysguard-5.25.4.tar.xz
18099b6204e0e782232de0caae00d8b08f9 breeze-5.25.4.tar.xz
1819cff677a443097f0cd6ff997d75cd8d3 breeze-gtk-5.25.4.tar.xz
18263f91c68af6cf236931455e3f2f7db8d layer-shell-qt-5.25.4.tar.xz
183f0390e8aa342f3b6f78383ffbd8e6245 kscreenlocker-5.25.4.tar.xz
184173c0ff83e4677bd3d493882616f4821 oxygen-5.25.4.tar.xz
1850eba490f93429cbae3274f5c80e8e4a4 kinfocenter-5.25.4.tar.xz
1868c07df3083286b7fbf2fee061a9b8556 kwin-5.25.4.tar.xz
1874322408dc35f32cfa25cde675ca4f950 plasma-workspace-5.25.4.tar.xz
188847f15762403af3355dd9f8d313e3160 plasma-disks-5.25.4.tar.xz
189a6c95ad969503a0c4f7fa61b457405c1 bluedevil-5.25.4.tar.xz
1906b6cf6c6faa28d7593e3065befe8cf8d kde-gtk-config-5.25.4.tar.xz
191943b40a2a7e3738618ddb070233fe6f4 khotkeys-5.25.4.tar.xz
19209c80647ed861aa94672fcb5d13fe382 kmenuedit-5.25.4.tar.xz
1938671c090d885302d9553cecee3b87d65 kscreen-5.25.4.tar.xz
194f0df854ad5288a369c3d38a393ad796c kwallet-pam-5.25.4.tar.xz
195b686e387222177d70f14652d03225fd9 kwayland-integration-5.25.4.tar.xz
1967ad4e4512e2c03e351930e83dd2d5c9b kwrited-5.25.4.tar.xz
1977db4206e533f247b878241158f946552 milou-5.25.4.tar.xz
1983e7cab69babe28ccafb1eb0df0c18757 plasma-nm-5.25.4.tar.xz
1999813c33efcc84eb15d792aad2c096127 plasma-pa-5.25.4.tar.xz
20054f0171cb296021b80437d2b5c5821e5 plasma-workspace-wallpapers-5.25.4.tar.xz
201b29230b6615e1d4318e37d92940dd35b polkit-kde-agent-1-5.25.4.tar.xz
202207ef7369a9dbe242bb4be12856c9950 powerdevil-5.25.4.tar.xz
20358f128569154007f74dd74b8fb1ce976 plasma-desktop-5.25.4.tar.xz
2042218d15c9644268c8a001993ac2b75a3 kdeplasma-addons-5.25.4.tar.xz
20578407d2ec45a8efbd94be4be4e458ec6 kgamma5-5.25.4.tar.xz
20612f157a44265e888238e44567c49ffdd ksshaskpass-5.25.4.tar.xz
207#8f34f405bd2e81866f484c8fb2b3e4bf plasma-sdk-5.25.4.tar.xz
2085cf6a96fac52af822c28a5b414dfb05e sddm-kcm-5.25.4.tar.xz
209e5d1e81e741fcb94c6d3b7f0a460f0f2 discover-5.25.4.tar.xz
210#7317d218fb9bcbd3bb52dcc2d0b45497 breeze-grub-5.25.4.tar.xz
211#891882622ea5f8fc9e42aec7c349708a breeze-plymouth-5.25.4.tar.xz
212f8c1e906f17ce513113af47dadbf0222 kactivitymanagerd-5.25.4.tar.xz
2134cbd66be9bfac48ff222c787652a0e1f plasma-integration-5.25.4.tar.xz
214ae0cc94583a0b6bd977a15b0ffba57d2 plasma-tests-5.25.4.tar.xz
215#43096cf164e17176cc381d804823bac2 plymouth-kcm-5.25.4.tar.xz
21653d0980ca27e7233ca24bae9eceb4e57 xdg-desktop-portal-kde-5.25.4.tar.xz
21723b19b8d694ec98bc3e049cd628e8413 drkonqi-5.25.4.tar.xz
2185a466c0da69b52836ddbf5524ddb14b9 plasma-vault-5.25.4.tar.xz
21971c02fb4b8f3953a8548978b6309f7c8 plasma-browser-integration-5.25.4.tar.xz
2205e0063ee3e50a7a336d80d17ed3c6651 kde-cli-tools-5.25.4.tar.xz
221d0dcc4214861fc05328d5df46fe618f5 systemsettings-5.25.4.tar.xz
2223a786aae80fa31643ace5b3c62e70254 plasma-thunderbolt-5.25.4.tar.xz
223#74e38cc52ac71d74f0bce96ac6c2e288 plasma-nano-5.25.4.tar.xz
224#86db281d990e794a0890b9b7933995fa plasma-mobile-5.25.4.tar.xz
225e08c0ad74f68666713c5891f73b6432b plasma-firewall-5.25.4.tar.xz
226030f1d0236b31407745300858f4f6db5 plasma-systemmonitor-5.25.4.tar.xz
227005283e828b3ed1d1a9006dea23fd647 qqc2-breeze-style-5.25.4.tar.xz
2285a8ef1866697cf5a660a59213d2f38e7 ksystemstats-5.25.4.tar.xz
229ab1fd9c2a595b09925fc2f9ddfe18406 oxygen-sounds-5.25.4.tar.xz</literal>
230EOF</userinput></screen>
231
232 <note>
233 <para>
234 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
235 all for customized support of <ulink
236 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
237 >Plymouth</ulink>
238 which is designed to be run within an initial ram disk during boot (see
239 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
240 used for software development. The plasma-nano package is used for
241 embedded systems and plasma-phone-components provides phone
242 functionality for Plasma.
243 </para>
244 </note>
245
246 </sect2>
247
248 <sect2 role="installation">
249 <title>Installation of Plasma5</title>
250
251 &as_root;
252
253 <para>
254 First, start a subshell that will exit on error:
255 </para>
256
257<screen><userinput>bash -e</userinput></screen>
258
259 <para>
260 Install all of the packages by running the following
261 commands:
262 </para>
263
264<screen><userinput>while read -r line; do
265
266 # Get the file name, ignoring comments and blank lines
267 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
268 file=$(echo $line | cut -d" " -f2)
269
270 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
271 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
272
273 tar -xf $file
274 pushd $packagedir
275<!--
276 # Fix some build issues when generating some configuration files
277 case $name in
278 plasma-workspace)
279 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
280 ;;
281
282 khotkeys)
283 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
284 ;;
285
286 plasma-desktop)
287 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
288 ;;
289 esac
290-->
291 mkdir build
292 cd build
293
294 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
295 -DCMAKE_BUILD_TYPE=Release \
296 -DBUILD_TESTING=OFF \
297 -Wno-dev .. &amp;&amp;
298
299 make
300 as_root make install
301 popd
302
303<!-- some packages end up with files owned by root in $packagedir,
304 so use as_root for removing -->
305 as_root rm -rf $packagedir
306 as_root /sbin/ldconfig
307
308done &lt; plasma-&plasma5-version;.md5
309
310exit</userinput></screen>
311
312 <para>
313 If you did not set <envar>$KF5_PREFIX</envar> to
314 <filename>/usr</filename>, create symlinks to allow display managers to
315 find <application>Plasma</application>:
316 </para>
317
318<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
319cd /usr/share/xsessions/ &amp;&amp;
320[ -e plasma.desktop ] ||
321as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
322as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
323cd /usr/share/wayland-sessions/ &amp;&amp;
324[ -e plasmawayland.desktop ] ||
325as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
326cd $KF5_PREFIX/share/plasma/plasmoids
327
328for j in $(find -name \*.js); do
329 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
330done--></userinput></screen>
331
332 <para revision="sysv">
333 Useless systemd units have been installed in
334 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
335 them now (as <systemitem class="username">root</systemitem>):
336 </para>
337
338<screen role="root"
339 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
340
341 </sect2>
342<!--
343 <sect2 role="commands">
344 <title>Command Explanations</title>
345
346 <para>
347 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
348 Create symbolic links so qml files can find needed javascript modules.
349 </para>
350
351 </sect2>
352-->
353 <sect2 role="configuration">
354 <title>Configuring Plasma</title>
355
356 <sect3>
357 <title>Linux PAM Configuration</title>
358
359 <para>
360 If you built Plasma with the recommended <application>Linux
361 PAM</application> support, create necessary configuration files by
362 running the following commands as the <systemitem
363 class="username">root</systemitem> user:
364 </para>
365
366<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
367<literal># Begin /etc/pam.d/kde
368
369auth requisite pam_nologin.so
370auth required pam_env.so
371
372auth required pam_succeed_if.so uid &gt;= 1000 quiet
373auth include system-auth
374
375account include system-account
376password include system-password
377session include system-session
378
379# End /etc/pam.d/kde</literal>
380EOF
381
382cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
383<literal># Begin /etc/pam.d/kde-np
384
385auth requisite pam_nologin.so
386auth required pam_env.so
387
388auth required pam_succeed_if.so uid &gt;= 1000 quiet
389auth required pam_permit.so
390
391account include system-account
392password include system-password
393session include system-session
394
395# End /etc/pam.d/kde-np</literal>
396EOF
397
398cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
399<literal># Begin /etc/pam.d/kscreensaver
400
401auth include system-auth
402account include system-account
403
404# End /etc/pam.d/kscreensaver</literal>
405EOF</userinput></screen>
406 </sect3>
407 </sect2>
408
409 <sect2 role="starting">
410 <title>Starting Plasma5</title>
411
412 <para revision="sysv">
413 You can start <application>Plasma5</application> from runlevel 3, using
414 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
415 such as <xref linkend="lightdm"/>.
416 </para>
417
418 <para revision="systemd">
419 You can start <application>Plasma5</application> from a TTY, using
420 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
421 <xref linkend="sddm"/>-->.
422 </para>
423
424 <para>
425 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
426 run the following commands:
427 </para>
428
429<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
430<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
431EOF
432
433startx</userinput></screen>
434
435 <para>
436 The X session starts on the first unused virtual terminal, normally vt7.
437 You can switch to another vt<emphasis>n</emphasis> simultaneously
438 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
439 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
440 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
441 <command>startx</command> was executed will display many messages,
442 including X starting messages, applications automatically started with
443 the session, and eventually, some warning and error messages. You may
444 prefer to redirect those messages to a log file, which not only will keep
445 the initial vt uncluttered, but can also be used for debugging purposes. This
446 can be done starting X with:
447 </para>
448
449 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
450
451 <para>
452 When shutting down or rebooting, the shutdown messages appear on the vt
453 where X was running. If you wish to see those messages, simultaneously
454 press keys Alt-F7 (assuming that X was running on vt7).
455 </para>
456<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
457 not needed anymore:
458 <para>
459 If you intend to start <application>Plasma</application> using a
460 display manager such as <xref linkend="lightdm"/>, there will be two entries
461 for <application>Plasma</application>, one for use with
462 <application>Xorg</application>, and another for
463 <application>Wayland</application>. Modify the
464 <application>Xorg</application> entry with the following command, as the
465 <systemitem class="username">root</systemitem> user, so that you can
466 differentiate between the two:</para>
467
468<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
469-->
470
471 </sect2>
472
473 <sect2 role="content">
474 <title>Contents</title>
475
476 <segmentedlist>
477 <segtitle>Installed Programs</segtitle>
478 <segtitle>Installed Libraries</segtitle>
479 <segtitle>Installed Directories</segtitle>
480
481 <seglistitem>
482 <seg>
483 There are too many plasma programs (63 in /opt/kf5/bin) to list
484 separately here.
485 </seg>
486 <seg>
487 There are too many plasma libraries (40 in /opt/kf5/lib) to list
488 separately here.
489 </seg>
490 <seg>
491 There are too many plasma directories (over 1000 in /opt/kf5) to
492 list separately here.
493 </seg>
494 </seglistitem>
495 </segmentedlist>
496
497 </sect2>
498
499</sect1>
Note: See TracBrowser for help on using the repository browser.