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

12.1 12.2 gimp3 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since e36f6236 was b785dce2, checked in by Pierre Labastie <pierre.labastie@…>, 9 months ago

Add libxcvt as required for plasma

Although libxcvt is required for xwayland, xwayland is only a runtime
dependency of plasma, so can be built later and pull libxcvt in later.
But kwin requires libxcvt at build time.

  • Property mode set to 100644
File size: 18.2 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 "243 MB">
11 <!ENTITY plasma5-buildsize "1.7 GB (419 MB installed)">
12 <!ENTITY plasma5-time "7.6 SBU (using parallelism=4)">
13]>
14
15<sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
16 <?dbhtml filename="plasma-all.html"?>
17
18
19 <title>Building Plasma 5</title>
20
21 <indexterm zone="plasma5-build">
22 <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
23 </indexterm>
24
25 <para>
26 KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
27 5 and QML. They implement the KDE Display Environment (Plasma 5).
28 </para>
29
30 &lfs120_checked;
31
32 <para>
33 The instructions below build all of the Plasma 5 packages in one
34 step by using a bash script.
35 </para>
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&plasma5-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&plasma5-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &plasma5-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &plasma5-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &plasma5-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &plasma5-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <!--<xref linkend="gtk2"/>, Does not seem to be needed any more -->
76 <xref linkend="gtk3"/>,
77 <xref linkend="kf5-frameworks"/>,
78 <xref linkend="kuserfeedback"/>,
79 <xref linkend="libpwquality"/>,
80 <xref linkend="libqalculate"/>,
81 <xref linkend="libxcvt"/>,
82 <xref linkend="libxkbcommon"/>,
83 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
84 <xref linkend="NetworkManager"/>,
85 <xref linkend="pipewire"/>,
86 <xref linkend="pulseaudio"/>,
87 <xref linkend="qca"/>,
88 <xref linkend="sassc"/>,
89 <xref linkend="taglib"/>, and
90 <xref linkend="xcb-util-cursor"/>
91 </para>
92
93 <bridgehead renderas="sect4">Recommended</bridgehead>
94 <para role="recommended">
95 <xref linkend="fftw"/>,
96 <xref linkend="gsettings-desktop-schemas"/>,
97 <xref linkend="libdbusmenu-qt"/>,
98 <xref linkend="libcanberra"/>,
99 <xref linkend="libinput"/>,
100 <xref linkend="libpcap"/>,
101 <xref linkend="linux-pam"/>,
102 <xref linkend="lm_sensors"/>,
103 <xref linkend="oxygen-icons"/>, and
104 <xref linkend="pciutils"/>
105 </para>
106
107 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
108 <para role="recommended">
109 <xref role="runtime" linkend="accountsservice"/>,
110 <xref role="runtime" linkend="smartmontools"/>, and
111 <xref role="runtime" linkend="xwayland"/>
112 </para>
113
114 <bridgehead renderas="sect4">Optional</bridgehead>
115 <para role="optional">
116 <xref linkend="appstream"/> (build with -qt=true),
117 <xref linkend="glu"/>,
118 <xref linkend='ibus'/>,
119 <xref linkend='qtwebengine'/>,
120 <xref linkend="xorg-synaptics-driver"/>,
121 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
122 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
123 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
124 <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
125 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
126 <ulink url="https://qalculate.github.io/">Qalculate</ulink>,
127 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
128 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
129 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
130 </para>
131
132 <note>
133 <para>
134 <xref linkend="qtwebengine"/> is required for aura-browser.
135 It is also optional for two other packages:
136 libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
137 only these two packages need to be rebuilt. This allows
138 a more complete display in the system monitor application.
139 </para>
140 </note>
141
142 <sect2>
143 <title>Downloading KDE Plasma5</title>
144
145 <para>
146 The easiest way to get the KDE Plasma5 packages is to use a single
147 <command>wget</command> to fetch them all at once:
148 </para>
149
150<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
151wget -r -nH -nd -A '*.xz' -np $url</userinput>
152<literal>
153The options used here are:
154 -r recurse through child directories
155 -nH disable generation of host-prefixed directories
156 -nd do not create a hierarchy of directories
157 -A '*.xz' just get the *.xz files
158 -np don't get parent directories</literal></screen>
159
160 </sect2>
161
162 <sect2>
163 <title>Setting Package Order</title>
164
165 <para>
166 The order of building files is important due to internal dependencies.
167 Create the list of files in the proper order as follows:
168 </para>
169
170<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
171<literal>a1361a811dc93389d0ce771d1ff82c3a kdecoration-5.27.10.tar.xz
1721f491e823bc83df650d04d5d9948da45 libkscreen-5.27.10.tar.xz
173571aa0c18a14ee74f3081f96f73a7f9d libksysguard-5.27.10.tar.xz
174541d1b06db3b707a7a73df1526f37b44 breeze-5.27.10.tar.xz
1759acdc232ea675b761e7386837f25f420 breeze-gtk-5.27.10.tar.xz
17654562594af547614648cded522c3e747 layer-shell-qt-5.27.10.tar.xz
177c44cfe3ba7fb03fc30b2ae305f16ed79 kscreenlocker-5.27.10.tar.xz
178171949dd2dfc3b2325c959389694860a oxygen-5.27.10.tar.xz
1790ef8d9f18707712fc4bcccf59138f2c7 kinfocenter-5.27.10.tar.xz
180e4e4409af71c4f5a67aa35c04f6b2bc7 kwin-5.27.10.tar.xz
1815c2ff5158503e983207e700ce513e929 plasma-workspace-5.27.10.tar.xz
18246001c7671f7ff2f08ca0dd9c3cdbf3f plasma-disks-5.27.10.tar.xz
183820566ae6effedbdd208a78e0031bf67 bluedevil-5.27.10.tar.xz
184490bd81c915f332b65631b87b6eaa49d kde-gtk-config-5.27.10.tar.xz
1857cade9cfce3ef14f14f55cd7a50fd7cf khotkeys-5.27.10.tar.xz
186e98c999e6ee7f9bbe775d4e512368420 kmenuedit-5.27.10.tar.xz
18724bc4ed3ad5587bd05591aafd758df2c kscreen-5.27.10.tar.xz
1883ab1c88cf91f0fb46ae3395d57709e12 kwallet-pam-5.27.10.tar.xz
18953d59d76b3dfac5f755d607798b08f85 kwayland-integration-5.27.10.tar.xz
190d7a9f2999352e91d504d52ad65336d9b kwrited-5.27.10.tar.xz
1918a51e19d58acebb89a919b7377d8bc83 milou-5.27.10.tar.xz
1920e11c62c2a23d161b5b8cbe6e87517bc plasma-nm-5.27.10.tar.xz
19302657d8fd46384f75ffe9c504f7c97b4 plasma-pa-5.27.10.tar.xz
1945c1cbd459e786deb16d5615748114bfa plasma-workspace-wallpapers-5.27.10.tar.xz
19517302ca60f68e13e85bc24a4ec873622 polkit-kde-agent-1-5.27.10.tar.xz
196cc39dc5777614bd89ae96d38008dc7c9 powerdevil-5.27.10.tar.xz
1972417bb974152d4f2274ebe3b7b524ca8 plasma-desktop-5.27.10.tar.xz
198f51521902f0665349c0fa012590a1eec kgamma-5.27.10.tar.xz
199e95d6813c180b078be4bf40550791e26 ksshaskpass-5.27.10.tar.xz
200#8c52fad441ffe43969458ae71b6a2f26 plasma-sdk-5.27.10.tar.xz
2011af573d08dd99879f27c5a2b55b02bc9 sddm-kcm-5.27.10.tar.xz
202#560ac5c60112e18bb44c46eec3563d7d discover-5.27.10.tar.xz
203#2cd0a4e1e3e89197e18f48d893c0f2d6 breeze-grub-5.27.10.tar.xz
204#fe7bb4efec17206a9faceb9cfe35fbf5 breeze-plymouth-5.27.10.tar.xz
2055bbb5c7a2985f8d7b8816a35d517d333 kactivitymanagerd-5.27.10.tar.xz
206c1810c7d54842028fb5968097add5538 plasma-integration-5.27.10.tar.xz
207#75bedf5da4b7497a18238011d12bec26 plymouth-kcm-5.27.10.tar.xz
208440dd7cb1f43d7d86862a1165b48c4f2 xdg-desktop-portal-kde-5.27.10.tar.xz
209657984f8356578253e1911c8d35041f6 drkonqi-5.27.10.tar.xz
210912db896afe71a8283e36037b4bba79e plasma-vault-5.27.10.tar.xz
211e03d33ca8a9905df3c2901cef5512a14 plasma-browser-integration-5.27.10.tar.xz
21230797f3809675e61542518f9b15be2c3 kde-cli-tools-5.27.10.tar.xz
2131319f82a4043456a4cb99cfcc2ba90fe systemsettings-5.27.10.tar.xz
2142861104cf1e31393d9cd87701042d3aa plasma-thunderbolt-5.27.10.tar.xz
215#79ffc86387c7024bd834b349fba9b79f plasma-nano-5.27.10.tar.xz
216#802d5a3cd34f5ec3825c21905f0ed9db plasma-mobile-5.27.10.tar.xz
2171f4875f2cf9c0d949961aa9ad6635e6f plasma-firewall-5.27.10.tar.xz
218b6648b45d9824b565dda1f100e7d83a6 plasma-systemmonitor-5.27.10.tar.xz
2198e46e5afde739a6361b1838f71eb182d qqc2-breeze-style-5.27.10.tar.xz
220fd93592f9895c5c09f4c0db771c1710a ksystemstats-5.27.10.tar.xz
2214f55bb4490751abb23046165d68e8ca7 oxygen-sounds-5.27.10.tar.xz
222#6300c88c07debeb60760dede52a791ee aura-browser-5.27.10.tar.xz
22300afc45528267a5e2ec11b47b8a7779b kdeplasma-addons-5.27.10.tar.xz
2247f432fbb0d205d6e30714e731f91a459 kpipewire-5.27.10.tar.xz
2255f37a2e3acf00a0616e13d86ed225d7f plank-player-5.27.10.tar.xz
226f3a08cefe61643273a9e06cfd6b2746a plasma-bigscreen-5.27.10.tar.xz
227a69142a27ab62c583fa5d4d4577427ff plasma-remotecontrollers-5.27.10.tar.xz
228#16e67ca215d44ec59130214ca6e13e80 flatpak-kcm-5.27.10.tar.xz
229#4ef3e1d988e5edfa8ee20f9373a82680 plasma-welcome-5.27.10.tar.xz</literal>
230EOF</userinput></screen>
231
232 <note>
233 <title>About Commented out Packages</title>
234 <para>
235 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
236 all for customized support of <ulink
237 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
238 >Plymouth</ulink>
239 which is designed to be run within an initial ram disk during boot (see
240 <xref linkend="initramfs"/>).
241 The plasma-sdk package is optional and used for software development.
242 The plasma-nano package is used for embedded systems and
243 plasma-mobile provides phone functionality for Plasma.
244 The aura-browser package requires <xref linkend="qtwebengine"/>.
245 The discover package requires <xref linkend="appstream"/> to be built
246 with the -Dqt=true switch.
247 The plasma-welcome package requires the external package
248 <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
249 kaccounts-integration</ulink>.
250 The flatpack-kcm package is for managing support of flatpack applications.
251 </para>
252 </note>
253
254 </sect2>
255
256 <sect2 role="installation">
257 <title>Installation of Plasma5</title>
258
259 &as_root;
260
261 <para>
262 First, start a subshell that will exit on error:
263 </para>
264
265<screen><userinput>bash -e</userinput></screen>
266
267 <para>
268 Install all of the packages by running the following
269 commands:
270 </para>
271
272<screen><userinput>while read -r line; do
273
274 # Get the file name, ignoring comments and blank lines
275 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
276 file=$(echo $line | cut -d" " -f2)
277
278 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
279 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
280
281 tar -xf $file
282 pushd $packagedir
283<!--
284 # Fix some build issues when generating some configuration files
285 case $name in
286 plasma-workspace)
287 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
288 ;;
289
290 khotkeys)
291 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
292 ;;
293
294 plasma-desktop)
295 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
296 ;;
297 esac
298-->
299 mkdir build
300 cd build
301
302 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
303 -DCMAKE_BUILD_TYPE=Release \
304 -DBUILD_TESTING=OFF \
305 -Wno-dev .. &amp;&amp;
306
307 make
308 as_root make install
309 popd
310
311<!-- some packages end up with files owned by root in $packagedir,
312 so use as_root for removing -->
313 as_root rm -rf $packagedir
314 as_root /sbin/ldconfig
315
316done &lt; plasma-&plasma5-version;.md5
317
318exit</userinput></screen>
319
320 <para>
321 If you did not set <envar>$KF5_PREFIX</envar> to
322 <filename>/usr</filename>, create symlinks to allow display managers to
323 find <application>Plasma</application>:
324 </para>
325
326<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
327cd /usr/share/xsessions/ &amp;&amp;
328[ -e plasma.desktop ] ||
329as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
330as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
331cd /usr/share/wayland-sessions/ &amp;&amp;
332[ -e plasmawayland.desktop ] ||
333as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
334cd $KF5_PREFIX/share/plasma/plasmoids
335
336for j in $(find -name \*.js); do
337 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
338done--></userinput></screen>
339
340 <para revision="sysv">
341 Useless systemd units have been installed in
342 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
343 them now (as <systemitem class="username">root</systemitem>):
344 </para>
345
346<screen role="root"
347 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
348
349 </sect2>
350<!--
351 <sect2 role="commands">
352 <title>Command Explanations</title>
353
354 <para>
355 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
356 Create symbolic links so qml files can find needed javascript modules.
357 </para>
358
359 </sect2>
360-->
361 <sect2 role="configuration">
362 <title>Configuring Plasma</title>
363
364 <sect3>
365 <title>Linux PAM Configuration</title>
366
367 <para>
368 If you built Plasma with the recommended <application>Linux
369 PAM</application> support, create necessary configuration files by
370 running the following commands as the <systemitem
371 class="username">root</systemitem> user:
372 </para>
373
374<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
375<literal># Begin /etc/pam.d/kde
376
377auth requisite pam_nologin.so
378auth required pam_env.so
379
380auth required pam_succeed_if.so uid &gt;= 1000 quiet
381auth include system-auth
382
383account include system-account
384password include system-password
385session include system-session
386
387# End /etc/pam.d/kde</literal>
388EOF
389
390cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
391<literal># Begin /etc/pam.d/kde-np
392
393auth requisite pam_nologin.so
394auth required pam_env.so
395
396auth required pam_succeed_if.so uid &gt;= 1000 quiet
397auth required pam_permit.so
398
399account include system-account
400password include system-password
401session include system-session
402
403# End /etc/pam.d/kde-np</literal>
404EOF
405
406cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
407<literal># Begin /etc/pam.d/kscreensaver
408
409auth include system-auth
410account include system-account
411
412# End /etc/pam.d/kscreensaver</literal>
413EOF</userinput></screen>
414 </sect3>
415 </sect2>
416
417 <sect2 role="starting">
418 <title>Starting Plasma5</title>
419
420 <para revision="sysv">
421 You can start <application>Plasma5</application> from runlevel 3, using
422 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
423 such as <xref linkend="lightdm"/>.
424 </para>
425
426 <para revision="systemd">
427 You can start <application>Plasma5</application> from a TTY, using
428 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
429 <xref linkend="sddm"/>-->.
430 </para>
431
432 <para>
433 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
434 run the following commands:
435 </para>
436
437<screen role="nodump"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
438<literal>dbus-launch --exit-with-x11 $KF5_PREFIX/bin/startplasma-x11</literal>
439EOF
440
441startx</userinput></screen>
442
443 <para>
444 The X session starts on the first unused virtual terminal, normally vt7.
445 You can switch to another vt<emphasis>n</emphasis> simultaneously
446 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
447 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
448 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
449 <command>startx</command> was executed will display many messages,
450 including X starting messages, applications automatically started with
451 the session, and eventually, some warning and error messages. You may
452 prefer to redirect those messages to a log file, which not only will keep
453 the initial vt uncluttered, but can also be used for debugging purposes. This
454 can be done starting X with:
455 </para>
456
457 <screen role="nodump"><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
458
459 <para>
460 When shutting down or rebooting, the shutdown messages appear on the vt
461 where X was running. If you wish to see those messages, simultaneously
462 press keys Alt-F7 (assuming that X was running on vt7).
463 </para>
464<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
465 not needed anymore:
466 <para>
467 If you intend to start <application>Plasma</application> using a
468 display manager such as <xref linkend="lightdm"/>, there will be two entries
469 for <application>Plasma</application>, one for use with
470 <application>Xorg</application>, and another for
471 <application>Wayland</application>. Modify the
472 <application>Xorg</application> entry with the following command, as the
473 <systemitem class="username">root</systemitem> user, so that you can
474 differentiate between the two:</para>
475
476<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
477-->
478
479 </sect2>
480
481 <sect2 role="content">
482 <title>Contents</title>
483
484 <segmentedlist>
485 <segtitle>Installed Programs</segtitle>
486 <segtitle>Installed Libraries</segtitle>
487 <segtitle>Installed Directories</segtitle>
488
489 <seglistitem>
490 <seg>
491 There are too many plasma programs (63 in /opt/kf5/bin) to list
492 separately here.
493 </seg>
494 <seg>
495 There are too many plasma libraries (40 in /opt/kf5/lib) to list
496 separately here.
497 </seg>
498 <seg>
499 There are too many plasma directories (over 1000 in /opt/kf5) to
500 list separately here.
501 </seg>
502 </seglistitem>
503 </segmentedlist>
504
505 </sect2>
506
507</sect1>
Note: See TracBrowser for help on using the repository browser.