source: kde/plasma5/plasma-all.xml@ 2c54252b

lazarus trunk
Last change on this file since 2c54252b was 2c54252b, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Adjust plasma dependencies

  • Property mode set to 100644
File size: 18.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 plasma-download-http "https://download.kde.org/stable/plasma/&plasma-version;">
8 <!ENTITY plasma-download-ftp " ">
9 <!ENTITY plasma-md5sum "See Below">
10 <!ENTITY plasma-size "230 MB">
11 <!ENTITY plasma-buildsize "1.7 GB (614 MB installed)">
12 <!ENTITY plasma-time "7.6 SBU (using parallelism=4)">
13]>
14
15<sect1 id="plasma-build" xreflabel="Plasma-&plasma-version;">
16 <?dbhtml filename="plasma-all.html"?>
17
18
19 <title>Building Plasma</title>
20
21 <indexterm zone="plasma-build">
22 <primary sortas="a-kde-plasma">KDE Plasma</primary>
23 </indexterm>
24
25 <para>
26 KDE Plasma is a collection of packages based on top of KDE Frameworks
27 and QML. They implement the KDE Display Environment (Plasma).
28 </para>
29
30 &lfs121_checked;
31
32 <para>
33 The instructions below build all of the Plasma 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="&plasma-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&plasma-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &plasma-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &plasma-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &plasma-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &plasma-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Plasma 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="boost"/>,
77 <xref linkend="gtk3"/>,
78 <xref linkend="kf6-frameworks"/>,
79 <xref linkend="kirigami-addons"/>,
80 <xref linkend="libdisplay-info"/>,
81 <xref linkend="libpwquality"/>,
82 <xref linkend="libqalculate"/>,
83 <xref linkend="libxcvt"/>,
84 <xref linkend="libxkbcommon"/>,
85 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
86 <xref linkend="pipewire"/>,
87 <xref linkend="pulseaudio"/>,
88 <xref linkend="qca"/>,
89 <xref linkend="qcoro"/>,
90 <xref linkend="sassc"/>,
91 <xref linkend="taglib"/>,
92 <xref linkend="xdotool"/>, and
93 <xref linkend="xorg-evdev-driver"/>
94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
98 <xref linkend="gsettings-desktop-schemas"/>,
99 <xref linkend="libcanberra"/>,
100 <xref linkend="libinput"/>,
101 <xref linkend="libpcap"/>,
102 <xref linkend="linux-pam"/>,
103 <xref linkend="lm_sensors"/>,
104 <xref linkend="oxygen-icons"/>,
105 <xref linkend="pciutils"/>, and
106 <xref linkend="power-profiles-daemon"/> (for laptops)
107 </para>
108
109 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
110 <para role="recommended">
111 <xref role="runtime" linkend="accountsservice"/>,
112 <xref role="runtime" linkend="breeze-icons"/>,
113 <xref role="runtime" linkend="smartmontools"/>,
114 <xref role="runtime" linkend="xdg-desktop-portal"/>, and
115 <xref role="runtime" linkend="xwayland"/>
116 </para>
117
118 <bridgehead renderas="sect4">Optional</bridgehead>
119 <para role="optional">
120 <xref linkend="appstream"/> (build with -qt=true),
121 <xref linkend="glu"/>,
122 <xref linkend='ibus'/>,
123 <xref linkend='qtwebengine'/>,
124 <xref linkend="xorg-synaptics-driver"/>,
125 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
126 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
127 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
128 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
129 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
130 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
131 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
132 </para>
133
134 <sect2>
135 <title>Downloading KDE Plasma</title>
136
137 <para>
138 The easiest way to get the KDE Plasma packages is to use a single
139 <command>wget</command> to fetch them all at once:
140 </para>
141
142<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma-version;/
143wget -r -nH -nd -A '*.xz' -np $url</userinput>
144<literal>
145The options used here are:
146 -r recurse through child directories
147 -nH disable generation of host-prefixed directories
148 -nd do not create a hierarchy of directories
149 -A '*.xz' just get the *.xz files
150 -np don't get parent directories</literal></screen>
151
152 </sect2>
153
154 <sect2>
155 <title>Setting Package Order</title>
156
157 <para>
158 The order of building files is important due to internal dependencies.
159 Create the list of files in the proper order as follows:
160 </para>
161
162<screen><userinput>cat &gt; plasma-&plasma-version;.md5 &lt;&lt; "EOF"
163<literal>599e79f2908879ed7f7ffda3637c54a6 kdecoration-6.0.0.tar.xz
16496f956b40d929ddecb208101564aa269 libkscreen-6.0.0.tar.xz
165e09b5326dea0c32c64745a0ab3bb17fd libksysguard-6.0.0.tar.xz
1666546c71b2707637fb0c8ffd90abfc981 breeze-6.0.0.tar.xz
1676ec29676f896546f9fab485142fff113 breeze-gtk-6.0.0.tar.xz
1685d02ead00aa69e96d71fb892aa941fa3 layer-shell-qt-6.0.0.tar.xz
169c91f8689b5386ce42d8a270ba669dfc3 plasma-activities-6.0.0.tar.xz
170125c3e7cf3bb32d3103bb769c584660f libplasma-6.0.0.tar.xz
1719dbfb8774a5acead43b3a0afb90a893f kscreenlocker-6.0.0.tar.xz
172b37312379616a7c2309c834005ada178 oxygen-6.0.0.tar.xz
173643d13b69ffddf133f4067bd25e33034 kinfocenter-6.0.0.tar.xz
1744bc12254229c9762e29f2f75d2f44e1a kglobalacceld-6.0.0.tar.xz
17597c448777e08ea7fe53aaef2cb35d17a kwayland-6.0.0.tar.xz
176b5b1a531a62ba3b778c793c63b262509 kwin-6.0.0.tar.xz
1775ac7afff15ac496b580526cf5c017db7 plasma5support-6.0.0.tar.xz
178d931aa7909d574c0a5b26a4d5af1f4eb plasma-activities-stats-6.0.0.tar.xz
1791ce2e4da8cf65347f6fc5099b418ecc6 kpipewire-6.0.0.tar.xz
1804a155013537b80009cc1e7d1582fda33 plasma-workspace-6.0.0.tar.xz
181e32c8a5eac1ac01a763bbcc70b3f6945 plasma-disks-6.0.0.tar.xz
1824d18ce97c23bbf35d87b73efec71420c bluedevil-6.0.0.tar.xz
183bfc8028a6f0888965a3a555663ba893b kde-gtk-config-6.0.0.tar.xz
18483dffdc80445bbc617f0c0dcef04ca4a kmenuedit-6.0.0.tar.xz
18557acadb3a31ff06cad411269de2ea700 kscreen-6.0.0.tar.xz
1867fad253ac68778bf4046b72a892ade92 kwallet-pam-6.0.0.tar.xz
187115cb1253c7a903070ff76630370d97d kwrited-6.0.0.tar.xz
18890eb8b277e475f1447472ba467336547 milou-6.0.0.tar.xz
1897dcf751acdb6fc66b50734948831731a plasma-nm-6.0.0.tar.xz
190ca57d6c816ae40b595bf3e3e1a2617ff plasma-pa-6.0.0.tar.xz
191f4445ecabf52a5777fa405f36c791d72 plasma-workspace-wallpapers-6.0.0.tar.xz
192ae7b1d18a20699124d924b126335aaed polkit-kde-agent-1-6.0.0.tar.xz
19393aacc0af152b6d2e28a694bd211f29d powerdevil-6.0.0.tar.xz
19446d9dee5d8abfc12bd8c3ca8811327e7 plasma-desktop-6.0.0.tar.xz
1952b522f3fd18ed563c9fab882b83193eb kgamma-6.0.0.tar.xz
196a832617c17070ec2dce5cf019ab7ab1c ksshaskpass-6.0.0.tar.xz
197#65ceae0e87f6b11ec924d57d764913f4 plasma-sdk-6.0.0.tar.xz
198973e99f506a6fdad96a8b43d04a0b510 sddm-kcm-6.0.0.tar.xz
199#a7ab65d4a36e402df4b42c91cd2a16da discover-6.0.0.tar.xz
200#bc42922097f6964252a5f56e759c3844 breeze-grub-6.0.0.tar.xz
201#f399364375591938bdfb2d235f13923b breeze-plymouth-6.0.0.tar.xz
202c0248379f3df970fa19fe6d341dd00a4 kactivitymanagerd-6.0.0.tar.xz
203ad6dee45c10e415a92d76745e5901842 plasma-integration-6.0.0.tar.xz
204#e377ca58ca8089ce4e4c26c03e85b4f1 plymouth-kcm-6.0.0.tar.xz
205b0a1e9952e09e35f90d8131faed98882 xdg-desktop-portal-kde-6.0.0.tar.xz
20653864beb8ca2de75a8e4c1f52b0f4ea5 drkonqi-6.0.0.tar.xz
207e6c9b78fd0022d37dc4913e3dbe5205e plasma-vault-6.0.0.tar.xz
208#a5b70716031e98843e8fa1088f2eb0bc plasma-browser-integration-6.0.0.tar.xz
20991f1b7dbde5fcd508f3eab9cdf5f0681 kde-cli-tools-6.0.0.tar.xz
210876c57804ef1daadfcce81bb0d7e82a4 systemsettings-6.0.0.tar.xz
21129588e3f9d64d092060890a5a438cdb6 plasma-thunderbolt-6.0.0.tar.xz
212#cc307526ac2f02e7547cacea0eeccda6 plasma-nano-6.0.0.tar.xz
213#5e2effe947e2edf89cce35ef5c2527f6 plasma-mobile-6.0.0.tar.xz
214f791645b191b9f2e6cc9e6cf0037af00 plasma-firewall-6.0.0.tar.xz
215a4d558a30b2ae93dc680010867e10abc plasma-systemmonitor-6.0.0.tar.xz
216f250350b7fa2ff6f28f88233955c5638 qqc2-breeze-style-6.0.0.tar.xz
21728f4d1841cecffaf76462ba20e45c45b ksystemstats-6.0.0.tar.xz
2188aad48fd0f58f08ea197aa6d8e4dfab3 oxygen-sounds-6.0.0.tar.xz
2194d7c36f9ada95960ec0619547c716f81 kdeplasma-addons-6.0.0.tar.xz
220#df582e99c5288d1c0b8dcd1b34a31d08 flatpak-kcm-6.0.0.tar.xz
221eebf65971b0066c707eef50742a9c49e plasma-welcome-6.0.0.tar.xz
2228f0c51c160819c170dcc77722b6153e3 ocean-sound-theme-6.0.0.tar.xz
223b8963fb1790449d4a905cf85f017d1e9 print-manager-6.0.0.tar.xz
224#a05c7d650e44cd046fbc090fcbb69ae4 wacomtablet-6.0.0.tar.xz</literal>
225EOF</userinput></screen>
226
227 <note>
228 <title>About Commented Out Packages</title>
229 <para>
230 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
231 all for customized support of <ulink
232 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
233 >Plymouth</ulink>
234 which is designed to be run within an initial ram disk during boot (see
235 <xref linkend="initramfs"/>).
236
237 The plasma-sdk package is optional and used for software development.
238
239 The plasma-nano package is used for embedded systems.
240
241 The plasma-mobile package provides phone functionality for Plasma.
242
243 The discover package requires <xref linkend="appstream"/> to be built
244 with the -Dqt=true switch.
245<!--
246 The plasma-welcome package requires the external package
247 <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
248 kaccounts-integration</ulink>.
249-->
250 The flatpack-kcm package is for managing support of flatpack applications.
251
252 The plasma-browser-integration package is only used by plasma-meta which is
253 not installed by BLFS.
254
255 The wacomtablet application requires plasma5 support.
256 </para>
257 </note>
258
259 </sect2>
260
261 <sect2 role="installation">
262 <title>Installation of Plasma</title>
263
264 &as_root;
265
266 <para>
267 First, start a subshell that will exit on error:
268 </para>
269
270<screen><userinput>bash -e</userinput></screen>
271
272 <para>
273 Install all of the packages by running the following
274 commands:
275 </para>
276
277<screen><userinput>while read -r line; do
278
279 # Get the file name, ignoring comments and blank lines
280 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
281 file=$(echo $line | cut -d" " -f2)
282
283 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
284 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
285
286 tar -xf $file
287 pushd $packagedir
288<!--
289 # Fix some build issues when generating some configuration files
290 case $name in
291 plasma-workspace)
292 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
293 ;;
294
295 khotkeys)
296 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
297 ;;
298
299 plasma-desktop)
300 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
301 ;;
302 esac
303-->
304 mkdir build
305 cd build
306
307 cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
308 -D CMAKE_INSTALL_LIBEXECDIR=libexec \
309 -D CMAKE_BUILD_TYPE=Release \
310 -D BUILD_QT5=OFF \
311 -D BUILD_TESTING=OFF \
312 -W no-dev .. &amp;&amp;
313
314 make
315 as_root make install
316 popd
317
318<!-- some packages end up with files owned by root in $packagedir,
319 so use as_root for removing -->
320 as_root rm -rf $packagedir
321 as_root /sbin/ldconfig
322
323done &lt; plasma-&plasma-version;.md5
324
325exit</userinput></screen>
326
327 <para>
328 If you did not set <envar>$KF6_PREFIX</envar> to
329 <filename>/usr</filename>, create symlinks to allow display managers to
330 find <application>Plasma</application>, and to allow the XDG Desktop
331 Portal to be detected. As the &root; user:
332 </para>
333
334<screen><userinput># Setup xsessions (X11 sessions)
335install -dvm 755 /usr/share/xsessions
336cd /usr/share/xsessions
337
338[ -e plasma.desktop ] ||
339ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop
340
341# Setup wayland-sessions
342install -dvm 755 /usr/share/wayland-sessions
343cd /usr/share/wayland-sessions
344
345[ -e plasmawayland.desktop ] ||
346ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop
347<!-- work around a bug in xdg-desktop-portal-->
348# Setup xdg-desktop-portal
349install -dvm 755 /usr/share/xdg-desktop-portal
350cd /usr/share/xdg-desktop-portal
351
352[ -e kde-portals.conf ] ||
353ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf
354
355# Setup kde partal
356install -dvm 755 /usr/share/xdg-desktop-portal/portals
357cd /usr/share/xdg-desktop-portal/portals
358
359[ -e kde.portal ] ||
360ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal</userinput></screen>
361
362 <para revision="sysv">
363 Useless systemd units have been installed in
364 <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
365 them now (as <systemitem class="username">root</systemitem>):
366 </para>
367
368<screen role="root"
369 revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
370
371 </sect2>
372<!--
373 <sect2 role="commands">
374 <title>Command Explanations</title>
375
376 <para>
377 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
378 Create symbolic links so qml files can find needed javascript modules.
379 </para>
380
381 </sect2>
382-->
383 <sect2 role="configuration">
384 <title>Configuring Plasma</title>
385
386 <sect3>
387 <title>Linux PAM Configuration</title>
388
389 <para>
390 If you built Plasma with the recommended <application>Linux
391 PAM</application> support, create necessary configuration files by
392 running the following commands as the <systemitem
393 class="username">root</systemitem> user:
394 </para>
395
396<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
397<literal># Begin /etc/pam.d/kde
398
399auth requisite pam_nologin.so
400auth required pam_env.so
401
402auth required pam_succeed_if.so uid &gt;= 1000 quiet
403auth include system-auth
404
405account include system-account
406password include system-password
407session include system-session
408
409# End /etc/pam.d/kde</literal>
410EOF
411
412cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
413<literal># Begin /etc/pam.d/kde-np
414
415auth requisite pam_nologin.so
416auth required pam_env.so
417
418auth required pam_succeed_if.so uid &gt;= 1000 quiet
419auth required pam_permit.so
420
421account include system-account
422password include system-password
423session include system-session
424
425# End /etc/pam.d/kde-np</literal>
426EOF
427
428cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
429<literal># Begin /etc/pam.d/kscreensaver
430
431auth include system-auth
432account include system-account
433
434# End /etc/pam.d/kscreensaver</literal>
435EOF</userinput></screen>
436 </sect3>
437 </sect2>
438
439 <sect2 role="starting">
440 <title>Starting Plasma</title>
441
442 <para revision="sysv">
443 You can start <application>Plasma</application> from runlevel 3, using
444 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
445 such as <xref linkend="lightdm"/>.
446 </para>
447
448 <para revision="systemd">
449 You can start <application>Plasma</application> from a TTY, using
450 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
451 <xref linkend="sddm"/>-->.
452 </para>
453
454 <para>
455 To start <application>Plasma</application> using <xref linkend="xinit"/>,
456 run the following commands:
457 </para>
458
459<screen role="nodump"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
460<literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
461EOF
462
463startx</userinput></screen>
464
465 <para>
466 The X session starts on the first unused virtual terminal, normally vt7.
467 You can switch to another vt<emphasis>n</emphasis> simultaneously
468 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
469 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
470 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
471 <command>startx</command> was executed will display many messages,
472 including X starting messages, applications automatically started with
473 the session, and eventually, some warning and error messages. You may
474 prefer to redirect those messages to a log file, which not only will keep
475 the initial vt uncluttered, but can also be used for debugging purposes. This
476 can be done starting X with:
477 </para>
478
479 <screen role="nodump"><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
480
481 <para>
482 When shutting down or rebooting, the shutdown messages appear on the vt
483 where X was running. If you wish to see those messages, simultaneously
484 press keys Alt-F7 (assuming that X was running on vt7).
485 </para>
486<!-- Start plasma wayland with
487
488/opt/kf6/lib/libexec/plasma-dbus-run-session-if-needed /opt/kf6/bin/startplasma-wayland
489
490Investigate why it's in /opt/kf6/lib/libexec and not just in /opt/kf6/libexec
491
492
493Now the entry is "plasma (X11)" for Xorg, so I guess this is
494 not needed anymore:
495 <para>
496 If you intend to start <application>Plasma</application> using a
497 display manager such as <xref linkend="lightdm"/>, there will be two entries
498 for <application>Plasma</application>, one for use with
499 <application>Xorg</application>, and another for
500 <application>Wayland</application>. Modify the
501 <application>Xorg</application> entry with the following command, as the
502 <systemitem class="username">root</systemitem> user, so that you can
503 differentiate between the two:</para>
504
505<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
506-->
507
508 </sect2>
509
510 <sect2 role="content">
511 <title>Contents</title>
512
513 <segmentedlist>
514 <segtitle>Installed Programs</segtitle>
515 <segtitle>Installed Libraries</segtitle>
516 <segtitle>Installed Directories</segtitle>
517
518 <seglistitem>
519 <seg>
520 There are too many plasma programs (over 50 in /opt/kf6/bin) to list
521 separately here.
522 </seg>
523 <seg>
524 There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
525 separately here.
526 </seg>
527 <seg>
528 There are too many plasma directories (over 2700 in /opt/kf6) to
529 list separately here.
530 </seg>
531 </seglistitem>
532 </segmentedlist>
533
534 </sect2>
535
536</sect1>
Note: See TracBrowser for help on using the repository browser.