source: kde/plasma5/plasma-all.xml@ 64ae3fb

11.0 11.1 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 64ae3fb was 64ae3fb, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Add libpcap and qtwebengine as deps to plasma

lipcap recommended, qtwebengine optional, with a note telling
which packages need to be rebuilt later

  • Property mode set to 100644
File size: 17.4 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 "140 MB">
11 <!ENTITY plasma5-buildsize "1.6 GB (355 MB installed)">
12 <!ENTITY plasma5-time "18 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 &lfs110a_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="libxkbcommon"/>,
85 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
86 <xref linkend="NetworkManager"/>,
87 <xref linkend="pipewire"/>,
88 <xref linkend="pulseaudio"/>,
89 <xref linkend="qca"/>,
90 <xref linkend="sassc"/>,
91 <xref linkend="taglib"/>, and
92 <xref linkend="xcb-util-cursor"/>
93 </para>
94
95 <bridgehead renderas="sect4">Recommended</bridgehead>
96 <para role="recommended">
97 <xref linkend="fftw"/>,
98 <xref linkend="gsettings-desktop-schemas"/>,
99 <xref linkend="libdbusmenu-qt"/>,
100 <xref linkend="libcanberra"/>,
101 <xref linkend="libinput"/>,
102 <xref linkend="libpcap"/>,
103 <xref linkend="linux-pam"/>,
104 <xref linkend="lm_sensors"/>,
105 <xref linkend="oxygen-icons5"/>, and
106 <xref linkend="pciutils"/>
107 </para>
108
109 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
110 <para role="recommended">
111 <xref role="runtime" linkend="accountsservice"/> and
112 <xref role="runtime" linkend="smartmontools"/>
113 </para>
114
115 <bridgehead renderas="sect4">Optional</bridgehead>
116 <para role="optional">
117 <xref linkend="glu"/>,
118 <xref linkend='ibus'/>,
119 <xref linkend='qtwebengine'/>,
120 <xref linkend="xorg-synaptics-driver"/>,
121 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
122 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
123 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
124 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
125 <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
126 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
127 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
128 <ulink url="http://qalculate.github.io/">Qalculate</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 <note>
135 <para>
136 Only two plasma packages optionally use <xref linkend="qtwebengine"/>:
137 libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
138 only those two packages have to be rebuilt. This allows to provide
139 a more complete display in the system monitor application.
140 </para>
141 </note>
142
143 <para condition="html" role="usernotes">User Notes:
144 <ulink url="&blfs-wiki;/kf5"/></para>
145
146 <sect2>
147 <title>Downloading KDE Plasma5</title>
148
149 <para>
150 The easiest way to get the KDE Plasma5 packages is to use a single
151 <command>wget</command> to fetch them all at once:
152 </para>
153
154<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
155wget -r -nH -nd -A '*.xz' -np $url</userinput>
156<literal>
157The options used here are:
158 -r recurse through child directories
159 -nH disable generation of host-prefixed directories
160 -nd do not create a hierarchy of directories
161 -A '*.xz' just get the *.xz files
162 -np don't get parent directories</literal></screen>
163
164 </sect2>
165
166 <sect2>
167 <title>Setting Package Order</title>
168
169 <para>
170 The order of building files is important due to internal dependencies.
171 Create the list of files in the proper order as follows:
172 </para>
173
174<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
175<literal>7fab69fa5fc3211b35e3d03f1172831a kdecoration-5.22.4.tar.xz
176a587fecf0473c225f39a7f8a7c611d3b libkscreen-5.22.4.tar.xz
177115f8e14d6ef58715183eb8036c431c1 libksysguard-5.22.4.tar.xz
178516a58571f6daeb60a2509057e67712b breeze-5.22.4.tar.xz
1793b06f3768fc345893625ef44d7e72a98 breeze-gtk-5.22.4.tar.xz
180049dabd694abed120b4f84d37f05de8c layer-shell-qt-5.22.4.tar.xz
18117af84caeb942de9a8e3d819f20645b0 kscreenlocker-5.22.4.tar.xz
182ffe09b47f6cc20d13ec311edeb13a9b3 oxygen-5.22.4.tar.xz
183916bfa4ce6b40ca8ef80b75018d63ab1 kinfocenter-5.22.4.tar.xz
184365f7cd632d41447561ec1bdf7497bba kwayland-server-5.22.4.tar.xz
18509cf360780185b33fca9561684a0f41f kwin-5.22.4.tar.xz
1865cb1ab2a9d3ce0c05eba07ef4c8ac478 plasma-workspace-5.22.4.tar.xz
18775dd5e0fed93781f0ae031a091dcce4b plasma-disks-5.22.4.tar.xz
1883d7abfe0952b356cc12cbd75be14f5e0 bluedevil-5.22.4.tar.xz
1892515439a0daaf325b0fcf9ce1a537660 kde-gtk-config-5.22.4.tar.xz
1908f2f4b902c98d7890dc1ec3756c27871 khotkeys-5.22.4.tar.xz
191aa03bf8d1c799a4410b567b44b47f6cd kmenuedit-5.22.4.tar.xz
1926fab0d760e9e6a33255441aab3874b2f kscreen-5.22.4.tar.xz
1933dae9ce525c52ac3bacaff464dc4264c kwallet-pam-5.22.4.tar.xz
194fa9772ef7737037992aea52739aea95a kwayland-integration-5.22.4.tar.xz
19551502b6a48f2b7790364881a578cdd1b kwrited-5.22.4.tar.xz
1966d85652d5fa13953370bc4f37247e3b4 milou-5.22.4.tar.xz
19761c7fc4c00637715e8d0c4491298b5b7 plasma-nm-5.22.4.tar.xz
19831272515681adc5d0ca987a9dc182de5 plasma-pa-5.22.4.tar.xz
19995aefdbfd0a3cd6b871e50968ccf43d9 plasma-workspace-wallpapers-5.22.4.tar.xz
2009a36fb70a6d1f1f637d75a75e77eb9ba polkit-kde-agent-1-5.22.4.tar.xz
201f7860ee18c994a8b87f39965b53f4f1f powerdevil-5.22.4.tar.xz
202ba7687bdea331a62127f7cc69029c194 plasma-desktop-5.22.4.tar.xz
2039c393f6da042841ed8cf41f9ad126b5c kdeplasma-addons-5.22.4.tar.xz
204bf508d7b503f1923fdb5fbd22f957981 kgamma5-5.22.4.tar.xz
205239d00ede4c0e941dc6407f8510f1678 ksshaskpass-5.22.4.tar.xz
206#ba59a194b4812db25022c189e129151f plasma-sdk-5.22.4.tar.xz
2073ecfe0501ce2ec0f8c8bda3a01c78be7 sddm-kcm-5.22.4.tar.xz
208a81e62bd36f3db28712274da80ed52a4 discover-5.22.4.tar.xz
209#9abba589089c1088e1836cabe9e593f6 breeze-grub-5.22.4.tar.xz
210#d038d1db0f1ed5e80b9d22a537dd1872 breeze-plymouth-5.22.4.tar.xz
2117aef306ec8c2131f0fa22d2b558f73fb kactivitymanagerd-5.22.4.tar.xz
2128c30da2b1dbcfbfaa715c050339b0e0a plasma-integration-5.22.4.tar.xz
213006171ce3edae4b67d27b1577cdc84a1 plasma-tests-5.22.4.tar.xz
214#442fd33f46a982eeeb925fd6f7d919b1 plymouth-kcm-5.22.4.tar.xz
215900994c0628b8b3767c83db0b4f16e0c xdg-desktop-portal-kde-5.22.4.tar.xz
21661ebe5891cf9adcd62d32c5069573ff0 drkonqi-5.22.4.tar.xz
217d464d91d37cf12da1721abc18ec94140 plasma-vault-5.22.4.tar.xz
2188c9a2286634cb89fb04d0278c6af8f8c plasma-browser-integration-5.22.4.tar.xz
219257e25f2388014932ecf786dd9e49bd5 kde-cli-tools-5.22.4.tar.xz
2209314599d78ed6683018ff5a7b69d2a08 systemsettings-5.22.4.tar.xz
2213ea20e78932f2a487d932acd1eff10f7 plasma-thunderbolt-5.22.4.tar.xz
222#0ecfa8ed1962f4f842967ed7b66d14f8 plasma-nano-5.22.4.tar.xz
223#157a441ad0519936dcb75856ae83010e plasma-phone-components-5.22.4.tar.xz
22471b0da480c6b91b6445b6bdbe452bdae plasma-firewall-5.22.4.tar.xz
225026a4d3cd063ba86e77c9ffa711aa769 plasma-systemmonitor-5.22.4.tar.xz
2260d72d2e9f5d6a3975068e1a472ce9982 qqc2-breeze-style-5.22.4.tar.xz
227171c556167b17fd2b16783015c3f8ae6 ksystemstats-5.22.4.tar.xz</literal>
228EOF</userinput></screen>
229
230 <note>
231 <para>
232 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
233 all for customized support of <ulink
234 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
235 >Plymouth</ulink>
236 which is designed to be run within an initial ram disk during boot (see
237 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
238 used for software development. The plasma-nano package is used for
239 embedded systems and plasma-phone-components provides phone
240 functionality for Plasma.
241 </para>
242 </note>
243
244 </sect2>
245
246 <sect2 role="installation">
247 <title>Installation of Plasma5</title>
248
249 &as_root;
250
251 <para>
252 First, start a subshell that will exit on error:
253 </para>
254
255<screen><userinput>bash -e</userinput></screen>
256
257 <para>
258 Install all of the packages by running the following
259 commands:
260 </para>
261
262<screen><userinput>while read -r line; do
263
264 # Get the file name, ignoring comments and blank lines
265 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
266 file=$(echo $line | cut -d" " -f2)
267
268 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
269 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
270
271 tar -xf $file
272 pushd $packagedir
273<!--
274 # Fix some build issues when generating some configuration files
275 case $name in
276 plasma-workspace)
277 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
278 ;;
279
280 khotkeys)
281 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
282 ;;
283
284 plasma-desktop)
285 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
286 ;;
287 esac
288-->
289 mkdir build
290 cd build
291
292 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
293 -DCMAKE_BUILD_TYPE=Release \
294 -DBUILD_TESTING=OFF \
295 -Wno-dev .. &amp;&amp;
296
297 make
298 as_root make install
299 popd
300
301<!-- some packages end up with files owned by root in $packagedir,
302 so use as_root for removing -->
303 as_root rm -rf $packagedir
304 as_root /sbin/ldconfig
305
306done &lt; plasma-&plasma5-version;.md5
307
308exit</userinput></screen>
309
310 <para>
311 If you did not set <envar>$KF5_PREFIX</envar> to
312 <filename>/usr</filename>, create symlinks to allow display managers to
313 find <application>Plasma</application>:
314 </para>
315
316<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
317cd /usr/share/xsessions/ &amp;&amp;
318[ -e plasma.desktop ] ||
319as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
320as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
321cd /usr/share/wayland-sessions/ &amp;&amp;
322[ -e plasmawayland.desktop ] ||
323as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
324cd $KF5_PREFIX/share/plasma/plasmoids
325
326for j in $(find -name \*.js); do
327 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
328done--></userinput></screen>
329
330 <para revision="sysv">
331 Useless systemd units have been installed in
332 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
333 them now (as <systemitem class="username">root</systemitem>):
334 </para>
335
336<screen role="root"
337 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
338
339 </sect2>
340<!--
341 <sect2 role="commands">
342 <title>Command Explanations</title>
343
344 <para>
345 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
346 Create symbolic links so qml files can find needed javascript modules.
347 </para>
348
349 </sect2>
350-->
351 <sect2 role="configuration">
352 <title>Configuring Plasma</title>
353
354 <sect3>
355 <title>Linux PAM Configuration</title>
356
357 <para>
358 If you built Plasma with the recommended <application>Linux
359 PAM</application> support, create necessary configuration files by
360 running the following commands as the <systemitem
361 class="username">root</systemitem> user:
362 </para>
363
364<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
365<literal># Begin /etc/pam.d/kde
366
367auth requisite pam_nologin.so
368auth required pam_env.so
369
370auth required pam_succeed_if.so uid &gt;= 1000 quiet
371auth include system-auth
372
373account include system-account
374password include system-password
375session include system-session
376
377# End /etc/pam.d/kde</literal>
378EOF
379
380cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
381<literal># Begin /etc/pam.d/kde-np
382
383auth requisite pam_nologin.so
384auth required pam_env.so
385
386auth required pam_succeed_if.so uid &gt;= 1000 quiet
387auth required pam_permit.so
388
389account include system-account
390password include system-password
391session include system-session
392
393# End /etc/pam.d/kde-np</literal>
394EOF
395
396cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
397<literal># Begin /etc/pam.d/kscreensaver
398
399auth include system-auth
400account include system-account
401
402# End /etc/pam.d/kscreensaver</literal>
403EOF</userinput></screen>
404 </sect3>
405 </sect2>
406
407 <sect2 role="starting">
408 <title>Starting Plasma5</title>
409
410 <para revision="sysv">
411 You can start <application>Plasma5</application> from runlevel 3, using
412 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
413 such as <xref linkend="lightdm"/>.
414 </para>
415
416 <para revision="systemd">
417 You can start <application>Plasma5</application> from a TTY, using
418 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
419 <xref linkend="sddm"/>-->.
420 </para>
421
422 <para>
423 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
424 run the following commands:
425 </para>
426
427<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
428<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
429EOF
430
431startx</userinput></screen>
432
433 <para>
434 The X session starts on the first unused virtual terminal, normally vt7.
435 You can switch to another vt<emphasis>n</emphasis> simultaneously
436 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
437 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
438 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
439 <command>startx</command> was executed will display many messages,
440 including X starting messages, applications automatically started with
441 the session, and eventually, some warning and error messages. You may
442 prefer to redirect those messages to a log file, which not only will keep
443 the initial vt uncluttered, but can also be used for debugging purposes. This
444 can be done starting X with:
445 </para>
446
447 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
448
449 <para>
450 When shutting down or rebooting, the shutdown messages appear on the vt
451 where X was running. If you wish to see those messages, simultaneously
452 press keys Alt-F7 (assuming that X was running on vt7).
453 </para>
454<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
455 not needed anymore:
456 <para>
457 If you intend to start <application>Plasma</application> using a
458 display manager such as <xref linkend="lightdm"/>, there will be two entries
459 for <application>Plasma</application>, one for use with
460 <application>Xorg</application>, and another for
461 <application>Wayland</application>. Modify the
462 <application>Xorg</application> entry with the following command, as the
463 <systemitem class="username">root</systemitem> user, so that you can
464 differentiate between the two:</para>
465
466<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
467-->
468
469 </sect2>
470
471 <sect2 role="content">
472 <title>Contents</title>
473
474 <segmentedlist>
475 <segtitle>Installed Programs</segtitle>
476 <segtitle>Installed Libraries</segtitle>
477 <segtitle>Installed Directories</segtitle>
478
479 <seglistitem>
480 <seg>
481 There are too many plasma programs (63 in /opt/kf5/bin) to list
482 separately here.
483 </seg>
484 <seg>
485 There are too many plasma libraries (40 in /opt/kf5/lib) to list
486 separately here.
487 </seg>
488 <seg>
489 There are too many plasma directories (over 1000 in /opt/kf5) to
490 list separately here.
491 </seg>
492 </seglistitem>
493 </segmentedlist>
494
495 </sect2>
496
497</sect1>
Note: See TracBrowser for help on using the repository browser.