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

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since cda852a was cda852a, checked in by Douglas R. Reno <renodr@…>, 11 months ago

Plasma: Fix a typo that prevents the build from succeeding

  • Property mode set to 100644
File size: 18.3 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 "242 MB">
11 <!ENTITY plasma5-buildsize "1.7 GB (419 MB installed)">
12 <!ENTITY plasma5-time "19 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 &lfs113_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"/>,
76 <xref linkend="gtk3"/>,
77 <xref linkend="kf5-frameworks"/>,
78 <xref linkend="kuserfeedback"/>,
79 <xref linkend="libpwquality"/>,
80 <xref linkend="libqalculate"/>,
81 <xref linkend="libxkbcommon"/>,
82 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
83 <xref linkend="NetworkManager"/>,
84 <xref linkend="pipewire"/>,
85 <xref linkend="pulseaudio"/>,
86 <xref linkend="qca"/>,
87 <xref linkend="sassc"/>,
88 <xref linkend="taglib"/>, and
89 <xref linkend="xcb-util-cursor"/>
90 </para>
91
92 <bridgehead renderas="sect4">Recommended</bridgehead>
93 <para role="recommended">
94 <xref linkend="fftw"/>,
95 <xref linkend="gsettings-desktop-schemas"/>,
96 <xref linkend="libdbusmenu-qt"/>,
97 <xref linkend="libcanberra"/>,
98 <xref linkend="libinput"/>,
99 <xref linkend="libpcap"/>,
100 <xref linkend="linux-pam"/>,
101 <xref linkend="lm_sensors"/>,
102 <xref linkend="oxygen-icons5"/>, and
103 <xref linkend="pciutils"/>
104 </para>
105
106 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
107 <para role="recommended">
108 <xref role="runtime" linkend="accountsservice"/>,
109 <xref role="runtime" linkend="smartmontools"/>, and
110 <xref role="runtime" linkend="xwayland"/>
111 </para>
112
113 <bridgehead renderas="sect4">Optional</bridgehead>
114 <para role="optional">
115 <xref linkend="glu"/>,
116 <xref linkend='ibus'/>,
117 <xref linkend='qtwebengine'/>,
118 <xref linkend="xorg-synaptics-driver"/>,
119 <ulink url="https://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
120 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
121 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
122 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
123 <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
124 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</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 <para condition="html" role="usernotes">User Notes:
143 <ulink url="&blfs-wiki;/kf5"/></para>
144
145 <sect2>
146 <title>Downloading KDE Plasma5</title>
147
148 <para>
149 The easiest way to get the KDE Plasma5 packages is to use a single
150 <command>wget</command> to fetch them all at once:
151 </para>
152
153<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
154wget -r -nH -nd -A '*.xz' -np $url</userinput>
155<literal>
156The options used here are:
157 -r recurse through child directories
158 -nH disable generation of host-prefixed directories
159 -nd do not create a hierarchy of directories
160 -A '*.xz' just get the *.xz files
161 -np don't get parent directories</literal></screen>
162
163 </sect2>
164
165 <sect2>
166 <title>Setting Package Order</title>
167
168 <para>
169 The order of building files is important due to internal dependencies.
170 Create the list of files in the proper order as follows:
171 </para>
172
173<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
174<literal>51e9302eb0654fae37d3962626ff4fbb kdecoration-5.27.5.tar.xz
17574bde56139ac985dcbdc2367a70b9bca libkscreen-5.27.5.tar.xz
176b7247c962c5d25adab4319b61658a084 libksysguard-5.27.5.tar.xz
17782968d40f62140cee86aea36a906bd83 breeze-5.27.5.tar.xz
178aeaa28b4191c882cc18fc4e411e8a2e4 breeze-gtk-5.27.5.tar.xz
179af0607ef8312a85428229118b62c88fe layer-shell-qt-5.27.5.tar.xz
1804694667b6f766583b4c82a080a927604 kscreenlocker-5.27.5.tar.xz
18106d8187c1365ea93a6b6c944e357e6c0 oxygen-5.27.5.tar.xz
1822dbc2bb816a2e20d09f969ad3a939845 kinfocenter-5.27.5.tar.xz
1839dcdcf269faee1e5370840f6e8b7eb7f kwin-5.27.5.tar.xz
1846d8eebad15cca79e694360ffddb06ac0 plasma-workspace-5.27.5.tar.xz
185c35e7d44a3d183c870a5a867ea87703f plasma-disks-5.27.5.tar.xz
186ff679b3b315c98baeae249a09c060a86 bluedevil-5.27.5.tar.xz
187400c30c063f2c4c6e1b1f876c25e3772 kde-gtk-config-5.27.5.tar.xz
188bde2e79070e499d26586a480e9ee36a5 khotkeys-5.27.5.tar.xz
1898b0a697df18d02c7eb33b6378cbd4d45 kmenuedit-5.27.5.tar.xz
190d2c3d8dcd306b426a3c6ff1eed6c1133 kscreen-5.27.5.tar.xz
191a73ad8b4251c5661f6f19eb1d74ba1bf kwallet-pam-5.27.5.tar.xz
192f409d7176b62b0c7c1fd6bae483f727c kwayland-integration-5.27.5.tar.xz
19341e446151576173a39ae8129d2eccac2 kwrited-5.27.5.tar.xz
194219d1e6af7aba7333af2b3016ae4c548 milou-5.27.5.tar.xz
19503de7063c72469e7ee0f152db471f84a plasma-nm-5.27.5.tar.xz
196612efae7cd722f5f1e3896c3bf3fb161 plasma-pa-5.27.5.tar.xz
19750fa6015315c82976426760552d46d7f plasma-workspace-wallpapers-5.27.5.tar.xz
198058a604c6ea8e0ae64f5878a7e5944b8 polkit-kde-agent-1-5.27.5.tar.xz
199672a9b07e3725c26318edbab4b9e128e powerdevil-5.27.5.tar.xz
2006d10296d88754fae5c246aa73c3f9059 plasma-desktop-5.27.5.tar.xz
2015b69ac7f3f160640aee2fe2fb1c6d024 kgamma5-5.27.5.tar.xz
202b6c9189955d602662672298c50758b0e ksshaskpass-5.27.5.tar.xz
203#a46c94604166a9a2feb748ee8c82e86d plasma-sdk-5.27.5.tar.xz
2049fbd2a51814d3ca86371df990643f93a sddm-kcm-5.27.5.tar.xz
205#3f192d5ae11e72dedee2686ca1fd5133 discover-5.27.5.tar.xz
206#7fdd06cfba4d5e33cfc332be0235635e breeze-grub-5.27.5.tar.xz
207#f4d52827d548f61957fa81e232a9413a breeze-plymouth-5.27.5.tar.xz
208cad575c607ef907af5138fee59a0c5b7 kactivitymanagerd-5.27.5.tar.xz
2096b748c004da6d5b3528c08a93bf1a0f7 plasma-integration-5.27.5.tar.xz
210#59b6d2dd34435697fe18e564ed78a511 plymouth-kcm-5.27.5.tar.xz
211cda052cd8e5e93079b90ecd32878e8c2 xdg-desktop-portal-kde-5.27.5.tar.xz
212df38490abd84e1dab33bb0a71749ddef drkonqi-5.27.5.tar.xz
213e7480e7771f736742b9ac60cd9bc1cc5 plasma-vault-5.27.5.tar.xz
214c2f27e9822a4e7ccf973d75a0a3883f5 plasma-browser-integration-5.27.5.tar.xz
21573ba745f7b31dd74c5ac60b3fe311f59 kde-cli-tools-5.27.5.1.tar.xz
216c598c2329e43a3bb6a2da6c555341272 systemsettings-5.27.5.tar.xz
217091b75af67a85285ec321f7fa4ebe25a plasma-thunderbolt-5.27.5.tar.xz
218#1b35ba803eb94218d6f91a6a285259ef plasma-nano-5.27.5.tar.xz
219#4d24bc44142da6aee054b5ba0ceda8de plasma-mobile-5.27.5.tar.xz
220909a2118673360130dca8b2b104c988b plasma-firewall-5.27.5.tar.xz
221aec129bb64448e92d8abcdee54e7c29a plasma-systemmonitor-5.27.5.tar.xz
2226bc2603e9b50728639a0274ed108ebf1 qqc2-breeze-style-5.27.5.tar.xz
223453d047ecb4b0de02babe74b435110a1 ksystemstats-5.27.5.tar.xz
22450d577a781cf009b6d56766cd9ce801e oxygen-sounds-5.27.5.tar.xz
225#98ad50d4bd635c28b33e498855ac5125 aura-browser-5.27.5.tar.xz
226ef10140df619daa2b82b22f77e07a4c9 kdeplasma-addons-5.27.5.tar.xz
2276ffe6e00493ade07b452ab9d30385d77 kpipewire-5.27.5.tar.xz
228a185c7f09b9b81683e85d884f9be1e1e plank-player-5.27.5.tar.xz
229d520bce789eae5a0d9ba9432de5d76ac plasma-bigscreen-5.27.5.tar.xz
230a1d5c114997f50bc6a6e1c40cc63009c plasma-remotecontrollers-5.27.5.tar.xz
231#f96194446cb04af657dc4abc1634d7af flatpak-kcm-5.27.5.tar.xz
232#47263a34137f46e168332de80c46a168 plasma-welcome-5.27.5.tar.xz</literal>
233EOF</userinput></screen>
234
235 <note>
236 <title>About Commented out Packages</title>
237 <para>
238 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
239 all for customized support of <ulink
240 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
241 >Plymouth</ulink>
242 which is designed to be run within an initial ram disk during boot (see
243 <xref linkend="initramfs"/>).
244 The plasma-sdk package is optional and used for software development.
245 The plasma-nano package is used for embedded systems and
246 plasma-mobile provides phone functionality for Plasma.
247 The aura-browser package requires <xref linkend="qtwebengine"/>.
248 The discover package requires the external package
249 <ulink url="https://distributions.freedesktop.org/wiki/AppStream">
250 appstream-qt</ulink>.
251 The plasma-welcome package requires the external package
252 <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
253 kaccounts-integration</ulink>.
254 The flatpack-kcm package is for managing support of flatpack applications.
255 </para>
256 </note>
257
258 </sect2>
259
260 <sect2 role="installation">
261 <title>Installation of Plasma5</title>
262
263 &as_root;
264
265 <para>
266 First, start a subshell that will exit on error:
267 </para>
268
269<screen><userinput>bash -e</userinput></screen>
270
271 <para>
272 Install all of the packages by running the following
273 commands:
274 </para>
275
276<screen><userinput>while read -r line; do
277
278 # Get the file name, ignoring comments and blank lines
279 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
280 file=$(echo $line | cut -d" " -f2)
281
282 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
283 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
284
285 tar -xf $file
286 pushd $packagedir
287<!--
288 # Fix some build issues when generating some configuration files
289 case $name in
290 plasma-workspace)
291 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
292 ;;
293
294 khotkeys)
295 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
296 ;;
297
298 plasma-desktop)
299 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
300 ;;
301 esac
302-->
303 mkdir build
304 cd build
305
306 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
307 -DCMAKE_BUILD_TYPE=Release \
308 -DBUILD_TESTING=OFF \
309 -Wno-dev .. &amp;&amp;
310
311 make
312 as_root make install
313 popd
314
315<!-- some packages end up with files owned by root in $packagedir,
316 so use as_root for removing -->
317 as_root rm -rf $packagedir
318 as_root /sbin/ldconfig
319
320done &lt; plasma-&plasma5-version;.md5
321
322exit</userinput></screen>
323
324 <para>
325 If you did not set <envar>$KF5_PREFIX</envar> to
326 <filename>/usr</filename>, create symlinks to allow display managers to
327 find <application>Plasma</application>:
328 </para>
329
330<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
331cd /usr/share/xsessions/ &amp;&amp;
332[ -e plasma.desktop ] ||
333as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
334as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
335cd /usr/share/wayland-sessions/ &amp;&amp;
336[ -e plasmawayland.desktop ] ||
337as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
338cd $KF5_PREFIX/share/plasma/plasmoids
339
340for j in $(find -name \*.js); do
341 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
342done--></userinput></screen>
343
344 <para revision="sysv">
345 Useless systemd units have been installed in
346 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
347 them now (as <systemitem class="username">root</systemitem>):
348 </para>
349
350<screen role="root"
351 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
352
353 </sect2>
354<!--
355 <sect2 role="commands">
356 <title>Command Explanations</title>
357
358 <para>
359 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
360 Create symbolic links so qml files can find needed javascript modules.
361 </para>
362
363 </sect2>
364-->
365 <sect2 role="configuration">
366 <title>Configuring Plasma</title>
367
368 <sect3>
369 <title>Linux PAM Configuration</title>
370
371 <para>
372 If you built Plasma with the recommended <application>Linux
373 PAM</application> support, create necessary configuration files by
374 running the following commands as the <systemitem
375 class="username">root</systemitem> user:
376 </para>
377
378<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
379<literal># Begin /etc/pam.d/kde
380
381auth requisite pam_nologin.so
382auth required pam_env.so
383
384auth required pam_succeed_if.so uid &gt;= 1000 quiet
385auth include system-auth
386
387account include system-account
388password include system-password
389session include system-session
390
391# End /etc/pam.d/kde</literal>
392EOF
393
394cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
395<literal># Begin /etc/pam.d/kde-np
396
397auth requisite pam_nologin.so
398auth required pam_env.so
399
400auth required pam_succeed_if.so uid &gt;= 1000 quiet
401auth required pam_permit.so
402
403account include system-account
404password include system-password
405session include system-session
406
407# End /etc/pam.d/kde-np</literal>
408EOF
409
410cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
411<literal># Begin /etc/pam.d/kscreensaver
412
413auth include system-auth
414account include system-account
415
416# End /etc/pam.d/kscreensaver</literal>
417EOF</userinput></screen>
418 </sect3>
419 </sect2>
420
421 <sect2 role="starting">
422 <title>Starting Plasma5</title>
423
424 <para revision="sysv">
425 You can start <application>Plasma5</application> from runlevel 3, using
426 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
427 such as <xref linkend="lightdm"/>.
428 </para>
429
430 <para revision="systemd">
431 You can start <application>Plasma5</application> from a TTY, using
432 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
433 <xref linkend="sddm"/>-->.
434 </para>
435
436 <para>
437 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
438 run the following commands:
439 </para>
440
441<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
442<literal>dbus-launch --exit-with-x11 $KF5_PREFIX/bin/startplasma-x11</literal>
443EOF
444
445startx</userinput></screen>
446
447 <para>
448 The X session starts on the first unused virtual terminal, normally vt7.
449 You can switch to another vt<emphasis>n</emphasis> simultaneously
450 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
451 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
452 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
453 <command>startx</command> was executed will display many messages,
454 including X starting messages, applications automatically started with
455 the session, and eventually, some warning and error messages. You may
456 prefer to redirect those messages to a log file, which not only will keep
457 the initial vt uncluttered, but can also be used for debugging purposes. This
458 can be done starting X with:
459 </para>
460
461 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
462
463 <para>
464 When shutting down or rebooting, the shutdown messages appear on the vt
465 where X was running. If you wish to see those messages, simultaneously
466 press keys Alt-F7 (assuming that X was running on vt7).
467 </para>
468<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
469 not needed anymore:
470 <para>
471 If you intend to start <application>Plasma</application> using a
472 display manager such as <xref linkend="lightdm"/>, there will be two entries
473 for <application>Plasma</application>, one for use with
474 <application>Xorg</application>, and another for
475 <application>Wayland</application>. Modify the
476 <application>Xorg</application> entry with the following command, as the
477 <systemitem class="username">root</systemitem> user, so that you can
478 differentiate between the two:</para>
479
480<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
481-->
482
483 </sect2>
484
485 <sect2 role="content">
486 <title>Contents</title>
487
488 <segmentedlist>
489 <segtitle>Installed Programs</segtitle>
490 <segtitle>Installed Libraries</segtitle>
491 <segtitle>Installed Directories</segtitle>
492
493 <seglistitem>
494 <seg>
495 There are too many plasma programs (63 in /opt/kf5/bin) to list
496 separately here.
497 </seg>
498 <seg>
499 There are too many plasma libraries (40 in /opt/kf5/lib) to list
500 separately here.
501 </seg>
502 <seg>
503 There are too many plasma directories (over 1000 in /opt/kf5) to
504 list separately here.
505 </seg>
506 </seglistitem>
507 </segmentedlist>
508
509 </sect2>
510
511</sect1>
Note: See TracBrowser for help on using the repository browser.