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

10.0 10.1 11.0 9.0 9.1 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since cfd5cb3 was cfd5cb3, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Update to plasma5-5.15.5.
Update to kf5-apps-19.04.1 kwave kate.
Update to kf5-5.58 extra-cmake-modules oxygen-icons5.

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

  • Property mode set to 100644
File size: 15.5 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 "95 MB">
11 <!ENTITY plasma5-buildsize "1.6 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 &lfs84_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="pulseaudio"/>,
73 <xref linkend="qca"/>,
74 <xref linkend="sassc"/>,
75 <xref linkend="taglib"/>, and
76 <xref linkend="xcb-util-cursor"/>
77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="fftw"/>,
82 <xref linkend="gsettings-desktop-schemas"/>,
83 <xref linkend="libdbusmenu-qt"/>,
84 <xref linkend="libcanberra"/>,
85 <xref linkend="libinput"/>,
86 <xref linkend="linux-pam"/>,
87 <xref linkend="lm_sensors"/>,
88 <xref linkend="oxygen-icons5"/>, and
89 <xref linkend="pciutils"/>
90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
94 <xref linkend="glu"/>,
95 <xref linkend='ibus'/>,
96 <xref linkend="xorg-synaptics-driver"/>,
97 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
98 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
99 <ulink url="http://www.catb.org/gpsd/libgps.html">libgps</ulink>,
100 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
101 <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
102 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
103 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
104 <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
105 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
106 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
107 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
108 </para>
109
110 <para condition="html" role="usernotes">User Notes:
111 <ulink url="&blfs-wiki;/kf5"/></para>
112
113 <sect2>
114 <title>Downloading KDE Plasma5</title>
115
116 <para>
117 The easiest way to get the KDE Plasma5 packages is to use a single
118 <command>wget</command> to fetch them all at once:
119 </para>
120
121<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
122wget -r -nH -nd -A '*.xz' -np $url</userinput>
123<literal>
124The options used here are:
125 -r recurse through child directories
126 -nH disable generation of host-prefixed directories
127 -nd do not create a hierarchy of directories
128 -A '*.xz' just get the *.xz files
129 -np don't get parent directories</literal></screen>
130
131 </sect2>
132
133 <sect2>
134 <title>Setting Package Order</title>
135
136 <para>
137 The order of building files is important due to internal dependencies.
138 Create the list of files in the proper order as follows:
139 </para>
140
141<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
142<literal>12e66b250e0e0036e837648f72e94b4e kdecoration-5.15.5.tar.xz
14308e28135014852c1bf57dd738a7c8cda libkscreen-5.15.5.tar.xz
1443fa13483c9f888571fa1a8a7a1ef821e libksysguard-5.15.5.tar.xz
14552221a5e47ffca0cffdc4577e9b097e2 breeze-5.15.5.tar.xz
1465aea654d15d6c107141affa6e32d1d4d breeze-gtk-5.15.5.tar.xz
147be96a0ab64cbeb9b9f728a977c0e2e6b kscreenlocker-5.15.5.tar.xz
148f561b58231384cf96e62768c7ebe4611 oxygen-5.15.5.tar.xz
149746b45e6d987b25a44e4469c7f66982f kinfocenter-5.15.5.tar.xz
1508f86ba0db6971a7a331b0314971fa6ae ksysguard-5.15.5.tar.xz
15191401cff50e97b2f153080e1a9d295d0 kwin-5.15.5.tar.xz
152a8598e9d6504f08389e5b0cdceae468c plasma-workspace-5.15.5.tar.xz
153f5cacbe4bfc12ca36535711d0562122f bluedevil-5.15.5.tar.xz
1545790d8f3be565c9f78a1a3dbe77dafe6 kde-gtk-config-5.15.5.tar.xz
155e40ad49f14cfe51e35c94e46bf4dcfb6 khotkeys-5.15.5.tar.xz
15638316c5655e273a2e5ee4bd096cee1a7 kmenuedit-5.15.5.tar.xz
1576ab623e477248aa4faf2bbf157fc786b kscreen-5.15.5.tar.xz
1584f563fc433dfd43960832fb7ddac6137 kwallet-pam-5.15.5.tar.xz
1594c029d5a2e0dec0c9ca746d910393ae3 kwayland-integration-5.15.5.tar.xz
160841b5be4dec688ac30c32f30045f96b5 kwrited-5.15.5.tar.xz
161ae3357fdfdfbf8c996b9ea5c445f042d milou-5.15.5.tar.xz
162806534c2fd234aa8630c5bfc6b4b8b54 plasma-nm-5.15.5.tar.xz
163599c5fcee476afb5cd59e6961c8c525f plasma-pa-5.15.5.tar.xz
164293d855ff8df007a1c75b2a4b0a29c47 plasma-workspace-wallpapers-5.15.5.tar.xz
1652c0581a3b6bb66d34de3f3b185471939 polkit-kde-agent-1-5.15.5.tar.xz
16608dca676733ed110ad73015ef61dfc52 powerdevil-5.15.5.tar.xz
16784cea7d6cc3d014839ec7f8b9696b8f2 plasma-desktop-5.15.5.tar.xz
168a194936a5fc7101d95bd92c43b377735 kdeplasma-addons-5.15.5.tar.xz
169b8d639e55d1c9de2bd77d5ea234f81f5 kgamma5-5.15.5.tar.xz
170965cd4f87a9bf64a7a54d511856084dd ksshaskpass-5.15.5.tar.xz
171#c14166ae4bbd60ce47d33f67c6d1718a plasma-sdk-5.15.5.tar.xz
172ebc9becccf08be045caf8c6ca86bf2fd sddm-kcm-5.15.5.tar.xz
1738e38b26a97b2b2e57b0be29d78fbb71e user-manager-5.15.5.tar.xz
174c84cfab3218989b8eae04f1414ee6cfc discover-5.15.5.tar.xz
175#c54c8792cf6db0906553da9dcdcbf80a breeze-grub-5.15.5.tar.xz
176#48f7ff45c8f976d3fe43d323797f7559 breeze-plymouth-5.15.5.tar.xz
177b428a82901a772971bfc5bb3df3dead0 kactivitymanagerd-5.15.5.tar.xz
1783c35e275cdc620e36857de4fea66501b plasma-integration-5.15.5.tar.xz
1798588f3aadbe22749e28bf92a90d49aab plasma-tests-5.15.5.tar.xz
18035c634a6e3b12b729dae73c9b7c3e0dc plymouth-kcm-5.15.5.tar.xz
181301ae8297bcc7891f26e065839f361e5 xdg-desktop-portal-kde-5.15.5.tar.xz
18287c9f9cec68b02cf1e88ce0b655e6e08 drkonqi-5.15.5.tar.xz
183f748d8b07dc118f6d2f392ae0c400606 plasma-vault-5.15.5.tar.xz
1849c838fa4fedf73322d4c7279d575545e plasma-browser-integration-5.15.5.tar.xz
18515b29094d80848ed7f976a736fe058ac kde-cli-tools-5.15.5.tar.xz
18660099023cd0d88640a50f080f9ccc921 systemsettings-5.15.5.tar.xz</literal>
187EOF</userinput></screen>
188
189 <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
190 above are all for customized support of <ulink
191 url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
192 which is designed to be run within an initial ram disk during boot (see
193 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
194 for software development.</para></note>
195
196 </sect2>
197
198 <sect2 role="installation">
199 <title>Installation of Plasma5</title>
200
201 &as_root;
202
203 <para>
204 First, start a subshell that will exit on error:
205 </para>
206
207<screen><userinput>bash -e</userinput></screen>
208
209 <para>
210 Install all of the packages by running the following
211 commands:
212 </para>
213
214<screen><userinput>while read -r line; do
215
216 # Get the file name, ignoring comments and blank lines
217 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
218 file=$(echo $line | cut -d" " -f2)
219
220 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
221 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
222
223 tar -xf $file
224 pushd $packagedir
225
226 # Fix some build issues when generating some configureation files
227 case $name in
228 plasma-workspace)
229 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
230 ;;
231
232 khotkeys)
233 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
234 ;;
235
236 plasma-desktop)
237 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
238 ;;
239 esac
240
241 mkdir build
242 cd build
243
244 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
245 -DCMAKE_BUILD_TYPE=Release \
246 -DBUILD_TESTING=OFF \
247 -Wno-dev .. &amp;&amp;
248
249 make
250 as_root make install
251 popd
252
253<!-- some packages end up with files owned by root in $packagedir,
254 so use as_root for removing -->
255 as_root rm -rf $packagedir
256 as_root /sbin/ldconfig
257
258done &lt; plasma-&plasma5-version;.md5
259
260exit
261
262install -dvm 755 /usr/share/xsessions &amp;&amp;
263cd /usr/share/xsessions/ &amp;&amp;
264[ -e plasma.desktop ] ||
265as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop<!--
266cd $KF5_PREFIX/share/plasma/plasmoids
267
268for j in $(find -name \*.js); do
269 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
270done--></userinput></screen>
271
272 </sect2>
273<!--
274 <sect2 role="commands">
275 <title>Command Explanations</title>
276
277 <para>
278 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
279 Create symbolic links so qml files can find needed javascript modules.
280 </para>
281
282 </sect2>
283-->
284 <sect2 role="configuration">
285 <title>Configuring Plasma</title>
286
287 <sect3>
288 <title>Linux PAM Configuration</title>
289
290 <para>
291 If you built Plasma with the recommended <application>Linux
292 PAM</application> support, create necessary configuration files by
293 running the following commands as the <systemitem
294 class="username">root</systemitem> user:
295 </para>
296
297<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
298# Begin /etc/pam.d/kde
299
300auth requisite pam_nologin.so
301auth required pam_env.so
302
303auth required pam_succeed_if.so uid &gt;= 1000 quiet
304auth include system-auth
305
306account include system-account
307password include system-password
308session include system-session
309
310# End /etc/pam.d/kde
311EOF
312
313cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
314# Begin /etc/pam.d/kde-np
315
316auth requisite pam_nologin.so
317auth required pam_env.so
318
319auth required pam_succeed_if.so uid &gt;= 1000 quiet
320auth required pam_permit.so
321
322account include system-account
323password include system-password
324session include system-session
325
326# End /etc/pam.d/kde-np
327EOF
328
329cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
330# Begin /etc/pam.d/kscreensaver
331
332auth include system-auth
333account include system-account
334
335# End /etc/pam.d/kscreensaver
336EOF</userinput></screen>
337 </sect3>
338 </sect2>
339
340 <sect2 role="starting">
341 <title>Starting Plasma5</title>
342
343 <para revision="sysv">
344 You can start <application>Plasma5</application> from runlevel 3, using
345 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
346 such as <xref linkend="lightdm"/>.
347 </para>
348
349 <para revision="systemd">
350 You can start <application>Plasma5</application> from a TTY, using
351 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
352 <xref linkend="sddm"/>-->.
353 </para>
354
355 <para>
356 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
357 run the following commands:
358 </para>
359
360<screen revision="sysv"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
361<literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
362EOF
363
364startx</userinput></screen>
365
366<screen revision="systemd"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
367<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
368EOF
369
370startx</userinput></screen>
371
372 <para>
373 The X session starts on the first unused virtual terminal, normally vt7.
374 You can switch to another vt<emphasis>n</emphasis> simultaneously
375 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
376 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
377 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
378 <command>startx</command> was executed will display many messages,
379 including X starting messages, applications automatically started with
380 the session, and eventually, some warning and error messages. You may
381 prefer to redirect those messages to a log file, which not only will keep
382 the initial vt uncluttered, but can also be used for debugging purposes. This
383 can be done starting X with:
384 </para>
385
386 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
387
388 <note revision="sysv">
389 <para>
390 You may wish to drop consolekit and/or dbus-launch, e.g., just using
391 startkde in ~/.xinitrc. However some capabilities such as mounting or
392 umounting file systems from a file manager will not be possible, or the
393 reboot option may be absent or inoperative, among other problems.
394 </para>
395 </note>
396 <para>
397 When shutting down or rebooting, the shutdown messages appear on the vt
398 where X was running. If you wish to see those messages, simultaneously
399 press keys Alt-F7 (assuming that X was running on vt7).
400 </para>
401
402 <para>If you intend to start <application>Plasma</application> using a
403 display manager such as <xref linkend="lightdm"/>, there will be two entries
404 for <application>Plasma</application>, one for use with
405 <application>Xorg</application>, and another for
406 <application>Wayland</application>. Modify the
407 <application>Xorg</application> entry with the following command, as the
408 <systemitem class="username">root</systemitem> user, so that you can
409 differentiate between the two:</para>
410
411<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
412
413
414 </sect2>
415
416 <sect2 role="content">
417 <title>Contents</title>
418
419 <segmentedlist>
420 <segtitle>Installed Programs</segtitle>
421 <segtitle>Installed Libraries</segtitle>
422 <segtitle>Installed Directories</segtitle>
423
424 <seglistitem>
425 <seg>
426 There are too many plasma programs (50 in /opt/kf5/bin) to list
427 separately here.
428 </seg>
429 <seg>
430 There are too many plasma libraries (39 in /opt/kf5/lib) to list
431 separately here.
432 </seg>
433 <seg>
434 There are too many plasma directories (over 1000 in /opt/kf5) to
435 list separately here.
436 </seg>
437 </seglistitem>
438 </segmentedlist>
439
440 </sect2>
441
442</sect1>
Note: See TracBrowser for help on using the repository browser.