source: kde/plasma5/plasma-all.xml@ 4a2b534

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.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 4a2b534 was 1d4ec9d, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to plasma5-5.17.3

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22372 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 15.7 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 "http://download.kde.org/stable/plasma/&plasma5-version;">
8 <!ENTITY plasma5-download-ftp " ">
9 <!ENTITY plasma5-md5sum "See Below">
10 <!ENTITY plasma5-size "98 MB">
11 <!ENTITY plasma5-buildsize "1.2 GB (294 MB installed)">
12 <!ENTITY plasma5-time "20 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 <othername>$LastChangedBy: bdubbs $</othername>
20 <date>$Date: 2015-09-24 16:44:04 -0500 (Thu, 24 Sep 2015) $</date>
21 </sect1info>
22
23 <title>Building Plasma 5</title>
24
25 <indexterm zone="plasma5-build">
26 <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
27 </indexterm>
28
29 <para>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).</para>
31
32 &lfs90_checked;
33
34 <para>The instructions below build all of the Plasma 5 packages in one
35 step by using a bash script.</para>
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &plasma5-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &plasma5-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &plasma5-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &plasma5-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
60
61 <bridgehead renderas="sect4">Required</bridgehead>
62 <para role="required">
63 <!--<xref linkend="fontforge"/>,-->
64 <xref linkend="GConf"/>,
65 <xref linkend="gtk2"/>,
66 <xref linkend="gtk3"/>,
67 <xref linkend="kf5-frameworks"/>,
68 <xref linkend="libpwquality"/>,
69 <xref linkend="libxkbcommon"/>,
70 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
71 <xref linkend="NetworkManager"/>,
72 <xref linkend="pipewire"/>,
73 <xref linkend="pulseaudio"/>,
74 <xref linkend="qca"/>,
75 <xref linkend="sassc"/>,
76 <xref linkend="taglib"/>, and
77 <xref linkend="xcb-util-cursor"/>
78 </para>
79
80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="fftw"/>,
83 <xref linkend="gsettings-desktop-schemas"/>,
84 <xref linkend="libdbusmenu-qt"/>,
85 <xref linkend="libcanberra"/>,
86 <xref linkend="libinput"/>,
87 <xref linkend="linux-pam"/>,
88 <xref linkend="lm_sensors"/>,
89 <xref linkend="oxygen-icons5"/>, and
90 <xref linkend="pciutils"/>
91 </para>
92
93 <bridgehead renderas="sect4">Optional</bridgehead>
94 <para role="optional">
95 <xref linkend="glu"/>,
96 <xref linkend='ibus'/>,
97 <xref linkend="xorg-synaptics-driver"/>,
98 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
99 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
100 <ulink url="http://www.catb.org/gpsd/libgps.html">libgps</ulink>,
101 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
102 <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
103 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
104 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
105 <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
106 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
107 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
108 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
109 </para>
110
111 <para condition="html" role="usernotes">User Notes:
112 <ulink url="&blfs-wiki;/kf5"/></para>
113
114 <sect2>
115 <title>Downloading KDE Plasma5</title>
116
117 <para>
118 The easiest way to get the KDE Plasma5 packages is to use a single
119 <command>wget</command> to fetch them all at once:
120 </para>
121
122<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
123wget -r -nH -nd -A '*.xz' -np $url</userinput>
124<literal>
125The options used here are:
126 -r recurse through child directories
127 -nH disable generation of host-prefixed directories
128 -nd do not create a hierarchy of directories
129 -A '*.xz' just get the *.xz files
130 -np don't get parent directories</literal></screen>
131
132 </sect2>
133
134 <sect2>
135 <title>Setting Package Order</title>
136
137 <para>
138 The order of building files is important due to internal dependencies.
139 Create the list of files in the proper order as follows:
140 </para>
141
142<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
143<literal>57d33092638b1671546f5aa58f62939a kdecoration-5.17.3.tar.xz
144131d445c156a425e4fd16a2c6e16e8f2 libkscreen-5.17.3.tar.xz
1458e287b24d6697ae7e75824ddaa0c2409 libksysguard-5.17.3.tar.xz
146fde85cab245f8337767663430c4c48b0 breeze-5.17.3.tar.xz
147d859abc935e4bae7c8556a7d0823c11c breeze-gtk-5.17.3.tar.xz
148f7201f181c9fa8080205a571efd1ae1a kscreenlocker-5.17.3.tar.xz
149ebb0a647b32cfc99db0fd41c418ee007 oxygen-5.17.3.tar.xz
15041fb0b9800fee5710c401836b9ce5a04 kinfocenter-5.17.3.tar.xz
151251ed74fff7b7bca46c4af973554bd1a ksysguard-5.17.3.tar.xz
152a32ce47f33af05ddd29d55be9b4fab7c kwin-5.17.3.tar.xz
15390a8576c6d95d0e6f74213df041f1df1 plasma-workspace-5.17.3.tar.xz
154ccd075deae5d603a78479f2fe64a6811 bluedevil-5.17.3.tar.xz
155937824ad2d27d49c31a6b302dbf016ba kde-gtk-config-5.17.3.tar.xz
15695027338f2c05183f3d4e51b5472dd6e khotkeys-5.17.3.tar.xz
15701004da1aad8cd6f927516ba320fcd49 kmenuedit-5.17.3.tar.xz
158af1d6e15b12d2c6675037ea91650eb48 kscreen-5.17.3.tar.xz
15961c93e0714314bc5c9b9313d68eb979c kwallet-pam-5.17.3.tar.xz
160f884e200e14299031f2948215cecf20d kwayland-integration-5.17.3.tar.xz
161fd7a1ebb83b4318fa6475782011d4066 kwrited-5.17.3.tar.xz
1620a43963ab03fbac7472eb28dd897e627 milou-5.17.3.tar.xz
163ad793139e22ecdfddb55897f7e1d9c59 plasma-nm-5.17.3.tar.xz
164d97f0f8d87bf6113cc642b06ca254dfd plasma-pa-5.17.3.tar.xz
165b7e1a3b3bcc10156eadb66114827f2cb plasma-workspace-wallpapers-5.17.3.tar.xz
1669d8f7f5dd2ac879ebdda237208698210 polkit-kde-agent-1-5.17.3.tar.xz
1679738628a1dc638abedcceb62f9ec18e4 powerdevil-5.17.3.tar.xz
168bc459ace55e8700c83d4e41d9460965e plasma-desktop-5.17.3.tar.xz
169525de501b3f4f4bd3794229c31db56be kdeplasma-addons-5.17.3.tar.xz
170c967101a7f7fb0aa9a3326852a39be1f kgamma5-5.17.3.tar.xz
1716dde0208679753dfbae2ca32c14a03a7 ksshaskpass-5.17.3.tar.xz
172#13194ee111514f7806eae32385e343c2 plasma-sdk-5.17.3.tar.xz
173b8f0915909f52fffa0122d0500c3b577 sddm-kcm-5.17.3.tar.xz
1744eade66f63f4cae1a6873543eebdca64 user-manager-5.17.3.tar.xz
175eae7d894d0093610eadac232a7b2bf22 discover-5.17.3.tar.xz
176#ab24a2b93148403f27ee2684d8a91bb7 breeze-grub-5.17.3.tar.xz
177#7d99290a4168b0299b7ccd1ae450adca breeze-plymouth-5.17.3.tar.xz
17800b3dbeeb2002c5001cc80b0e23632ba kactivitymanagerd-5.17.3.tar.xz
1791268e0848969b20892e6e38d2299a774 plasma-integration-5.17.3.tar.xz
1803ec80d38a08d86a417c0cedeab1309d3 plasma-tests-5.17.3.tar.xz
181868c68f45337ae8a66a488d2f596cf01 plymouth-kcm-5.17.3.tar.xz
1827a5bc2995863afd2fa3629edc3fbdc74 xdg-desktop-portal-kde-5.17.3.tar.xz
183fb7add39aef8dbb15e4b4cfb6dccae20 drkonqi-5.17.3.tar.xz
18403d4d20efeb96a2c2ec5e6b1d5e856e1 plasma-vault-5.17.3.tar.xz
18510181267dba716be0b79e238f6e741ef plasma-browser-integration-5.17.3.tar.xz
186aa7f2afc78ddd303b550631c3fdcc907 kde-cli-tools-5.17.3.tar.xz
187459b1c66617e441f5002cad71a5d5b77 systemsettings-5.17.3.tar.xz
188d85c6f197c7f13557819b91bd20fa99f plasma-thunderbolt-5.17.3.tar.xz</literal>
189EOF</userinput></screen>
190
191 <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
192 above are all for customized support of <ulink
193 url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
194 which is designed to be run within an initial ram disk during boot (see
195 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
196 for software development.</para></note>
197
198 </sect2>
199
200 <sect2 role="installation">
201 <title>Installation of Plasma5</title>
202
203 &as_root;
204
205 <para>
206 First, start a subshell that will exit on error:
207 </para>
208
209<screen><userinput>bash -e</userinput></screen>
210
211 <para>
212 Install all of the packages by running the following
213 commands:
214 </para>
215
216<screen><userinput>while read -r line; do
217
218 # Get the file name, ignoring comments and blank lines
219 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
220 file=$(echo $line | cut -d" " -f2)
221
222 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
223 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
224
225 tar -xf $file
226 pushd $packagedir
227
228 # Fix some build issues when generating some configuration files
229 case $name in
230 plasma-workspace)
231 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
232 ;;
233
234 khotkeys)
235 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
236 ;;
237
238 plasma-desktop)
239 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
240 ;;
241 esac
242
243 mkdir build
244 cd build
245
246 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
247 -DCMAKE_BUILD_TYPE=Release \
248 -DBUILD_TESTING=OFF \
249 -Wno-dev .. &amp;&amp;
250
251 make
252 as_root make install
253 popd
254
255<!-- some packages end up with files owned by root in $packagedir,
256 so use as_root for removing -->
257 as_root rm -rf $packagedir
258 as_root /sbin/ldconfig
259
260done &lt; plasma-&plasma5-version;.md5
261
262exit</userinput></screen>
263
264 <para>
265 If you did not set <envar>$KF5_PREFIX</envar> to
266 <filename>/usr</filename>, create symlinks to allow display managers to
267 find <application>Plasma</application>:
268 </para>
269
270<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
271cd /usr/share/xsessions/ &amp;&amp;
272[ -e plasma.desktop ] ||
273as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
274as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
275cd /usr/share/wayland-sessions/ &amp;&amp;
276[ -e plasma.desktop ] ||
277as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasma.desktop<!--
278cd $KF5_PREFIX/share/plasma/plasmoids
279
280for j in $(find -name \*.js); do
281 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
282done--></userinput></screen>
283
284 </sect2>
285<!--
286 <sect2 role="commands">
287 <title>Command Explanations</title>
288
289 <para>
290 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
291 Create symbolic links so qml files can find needed javascript modules.
292 </para>
293
294 </sect2>
295-->
296 <sect2 role="configuration">
297 <title>Configuring Plasma</title>
298
299 <sect3>
300 <title>Linux PAM Configuration</title>
301
302 <para>
303 If you built Plasma with the recommended <application>Linux
304 PAM</application> support, create necessary configuration files by
305 running the following commands as the <systemitem
306 class="username">root</systemitem> user:
307 </para>
308
309<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
310<literal># Begin /etc/pam.d/kde
311
312auth requisite pam_nologin.so
313auth required pam_env.so
314
315auth required pam_succeed_if.so uid &gt;= 1000 quiet
316auth include system-auth
317
318account include system-account
319password include system-password
320session include system-session
321
322# End /etc/pam.d/kde</literal>
323EOF
324
325cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
326<literal># Begin /etc/pam.d/kde-np
327
328auth requisite pam_nologin.so
329auth required pam_env.so
330
331auth required pam_succeed_if.so uid &gt;= 1000 quiet
332auth required pam_permit.so
333
334account include system-account
335password include system-password
336session include system-session
337
338# End /etc/pam.d/kde-np</literal>
339EOF
340
341cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
342<literal># Begin /etc/pam.d/kscreensaver
343
344auth include system-auth
345account include system-account
346
347# End /etc/pam.d/kscreensaver</literal>
348EOF</userinput></screen>
349 </sect3>
350 </sect2>
351
352 <sect2 role="starting">
353 <title>Starting Plasma5</title>
354
355 <para revision="sysv">
356 You can start <application>Plasma5</application> from runlevel 3, using
357 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
358 such as <xref linkend="lightdm"/>.
359 </para>
360
361 <para revision="systemd">
362 You can start <application>Plasma5</application> from a TTY, using
363 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
364 <xref linkend="sddm"/>-->.
365 </para>
366
367 <para>
368 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
369 run the following commands:
370 </para>
371
372<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
373<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
374EOF
375
376startx</userinput></screen>
377
378 <para>
379 The X session starts on the first unused virtual terminal, normally vt7.
380 You can switch to another vt<emphasis>n</emphasis> simultaneously
381 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
382 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
383 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
384 <command>startx</command> was executed will display many messages,
385 including X starting messages, applications automatically started with
386 the session, and eventually, some warning and error messages. You may
387 prefer to redirect those messages to a log file, which not only will keep
388 the initial vt uncluttered, but can also be used for debugging purposes. This
389 can be done starting X with:
390 </para>
391
392 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
393
394 <para>
395 When shutting down or rebooting, the shutdown messages appear on the vt
396 where X was running. If you wish to see those messages, simultaneously
397 press keys Alt-F7 (assuming that X was running on vt7).
398 </para>
399
400 <para>If you intend to start <application>Plasma</application> using a
401 display manager such as <xref linkend="lightdm"/>, there will be two entries
402 for <application>Plasma</application>, one for use with
403 <application>Xorg</application>, and another for
404 <application>Wayland</application>. Modify the
405 <application>Xorg</application> entry with the following command, as the
406 <systemitem class="username">root</systemitem> user, so that you can
407 differentiate between the two:</para>
408
409<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
410
411
412 </sect2>
413
414 <sect2 role="content">
415 <title>Contents</title>
416
417 <segmentedlist>
418 <segtitle>Installed Programs</segtitle>
419 <segtitle>Installed Libraries</segtitle>
420 <segtitle>Installed Directories</segtitle>
421
422 <seglistitem>
423 <seg>
424 There are too many plasma programs (50 in /opt/kf5/bin) to list
425 separately here.
426 </seg>
427 <seg>
428 There are too many plasma libraries (39 in /opt/kf5/lib) to list
429 separately here.
430 </seg>
431 <seg>
432 There are too many plasma directories (over 1000 in /opt/kf5) to
433 list separately here.
434 </seg>
435 </seglistitem>
436 </segmentedlist>
437
438 </sect2>
439
440</sect1>
Note: See TracBrowser for help on using the repository browser.