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 "129 MB">
|
---|
11 | <!ENTITY plasma5-buildsize "933 GB">
|
---|
12 | <!ENTITY plasma5-time "15 SBU (using parallelism=6)">
|
---|
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-kf5">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. It has been derived from the monolithic KDE 4 desktop. i
|
---|
31 | They implement the KDE Display Environment (Plasma 5).</para>
|
---|
32 |
|
---|
33 | <note>
|
---|
34 | <para>The procedures below are under development. They have not been
|
---|
35 | verified to work properly in an LFS-7.8 environment.</para>
|
---|
36 | </note>
|
---|
37 |
|
---|
38 | <!--&lfs78_checked;-->
|
---|
39 |
|
---|
40 | <para>The instructions below build all of the Plasma 5 packages in one
|
---|
41 | step by using a bash script.</para>
|
---|
42 |
|
---|
43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
44 | <itemizedlist spacing="compact">
|
---|
45 | <listitem>
|
---|
46 | <para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download MD5 sum: &plasma5-md5sum;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download size: &plasma5-size;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Estimated disk space required: &plasma5-buildsize;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated build time: &plasma5-time;</para>
|
---|
62 | </listitem>
|
---|
63 | </itemizedlist>
|
---|
64 |
|
---|
65 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
68 | <para role="required">
|
---|
69 | <xref linkend="fontforge"/>,
|
---|
70 | <xref linkend="gtk2"/>,
|
---|
71 | <xref linkend="gtk3"/>,
|
---|
72 | <xref linkend="kf5-frameworks"/>,
|
---|
73 | <xref linkend="libcanberra"/>,
|
---|
74 | <xref linkend="libinput"/>,
|
---|
75 | <xref linkend="libpwquality"/>,
|
---|
76 | <xref linkend="libxkbcommon"/>,
|
---|
77 | <xref linkend="linux-pam"/>,
|
---|
78 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
79 | <xref linkend="NetworkManager"/>,
|
---|
80 | <xref linkend="oxygen-icons"/>,
|
---|
81 | <xref linkend="pulseaudio"/>,
|
---|
82 | <xref linkend="python2"/>,
|
---|
83 | <xref linkend="taglib"/>, and
|
---|
84 | <xref linkend="xcb-util-cursor"/>
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
88 | <para role="recommended">
|
---|
89 | <xref linkend="lm_sensors"/>,
|
---|
90 | <xref linkend="pciutils"/>,
|
---|
91 | <xref linkend="xorg-synaptics-driver"/>
|
---|
92 | Others to be determined.
|
---|
93 | </para>
|
---|
94 | <!--
|
---|
95 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
96 | <para role="optional">
|
---|
97 | <xref linkend="bluez"/> (needed to build Bluez-Qt),
|
---|
98 | <xref linkend="NetworkManager"/> (needed to build NetworkManager-Qt),
|
---|
99 | <ulink url="http://www.freedesktop.org/software/ModemManager/">ModemManager</ulink> (needed to build ModemManager-Qt)
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <bridgehead renderas="sect4">Runtime dependency for FrameworkIntegration</bridgehead>
|
---|
103 | <para role="optional">
|
---|
104 | <ulink url="http://download.kde.org/stable/plasma/5.2.0">oxygen-fonts</ulink>
|
---|
105 | </para>
|
---|
106 |
|
---|
107 | <bridgehead renderas="sect4">Runtime dependencies for kapidox</bridgehead>
|
---|
108 | <para role="optional">
|
---|
109 | <xref linkend="doxygen"/>,
|
---|
110 | <ulink url="https://pypi.python.org/packages/source/J/Jinja2/">Jinja2</ulink>, and
|
---|
111 | <ulink url="http://pyyaml.org/">PyYAML</ulink>
|
---|
112 | </para>
|
---|
113 |
|
---|
114 | <bridgehead renderas="sect4">Additional image formats support in KImageFormats</bridgehead>
|
---|
115 | <para role="optional">
|
---|
116 | <xref linkend="jasper"/> and
|
---|
117 | <ulink url="http://www.openexr.com/">OpenEXR</ulink>
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <bridgehead renderas="sect4">Optional dependencies for KIO</bridgehead>
|
---|
121 | <para role="optional">
|
---|
122 | <xref linkend="mitkrb"/>
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <bridgehead renderas="sect4">Optional dependencies for ModemManager-QT</bridgehead>
|
---|
126 | <para role="optional">
|
---|
127 | <ulink url="http://www.freedesktop.org/software/ModemManager/">ModemManager</ulink>
|
---|
128 | </para>
|
---|
129 |
|
---|
130 | <bridgehead renderas="sect4">Optional dependencies for Solid</bridgehead>
|
---|
131 | <para role="optional">
|
---|
132 | <xref linkend="udisks2"/>,
|
---|
133 | <xref linkend="upower"/> and
|
---|
134 | <ulink url="http://www.freedesktop.org/software/media-player-info/">media-player-info</ulink> (runtime)
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | <bridgehead renderas="sect4">Optional dictionary backends for Sonnet</bridgehead>
|
---|
138 | <para role="optional">
|
---|
139 | <ulink url="http://hspell.ivrix.org.il/">Hspell</ulink> and
|
---|
140 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>
|
---|
141 | </para>
|
---|
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=http://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
155 | wget -r -nH --cut-dirs=3 -A '*.xz' -np $url</userinput>
|
---|
156 | <literal>
|
---|
157 | The options used here are:
|
---|
158 | -r recurse through child directories
|
---|
159 | -nH disable generation of host-prefixed directories
|
---|
160 | --cut-dirs=3 remove three levels of directories when saving
|
---|
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 > plasma-&kf5-version;.md5 << "EOF"
|
---|
175 | <literal>bb94a0d6f06583456b8f0a2eae07edd6 kde-cli-tools-5.4.2.tar.xz
|
---|
176 | 67683fc1ae1fdf014f567780502b574a kdecoration-5.4.2.tar.xz
|
---|
177 | c0c0eef0f2bfb93a81e4e701d7557eb9 kwayland-5.4.2.tar.xz
|
---|
178 | 5b3c52fbf0172dfcf749cde12ebb48f3 libkscreen-5.4.2.tar.xz
|
---|
179 | c770bd91e3947373c00938e2d85628d9 libksysguard-5.4.2.tar.xz
|
---|
180 | 0e1d48eba3d0261023954b46fe7af36e breeze-5.4.2.tar.xz
|
---|
181 | c60184edbd89bfcf1ee1c03aefd741f8 kwin-5.4.2.tar.xz
|
---|
182 | 55eeb736365e902e957509a43884efd9 oxygen-5.4.2.tar.xz
|
---|
183 | 25bc526b21e9a0472e94a73b5f2d7d83 oxygen-fonts-5.4.2.tar.xz
|
---|
184 | 770b8c69df2c550ab66f0c316c3bf850 khelpcenter-5.4.2.tar.xz
|
---|
185 | 6714e90d548f37ec32d2cc166c68149c kinfocenter-5.4.2.tar.xz
|
---|
186 | 7551c199c5caffda59363757bbc57243 ksysguard-5.4.2.tar.xz
|
---|
187 | 9d7cfdee2d138983f4267ba1e6a69be6 systemsettings-5.4.2.tar.xz
|
---|
188 | a4fe835089c213c52f1407715163bf80 plasma-workspace-5.4.2.tar.xz
|
---|
189 | bc10f321f5ea2a605be29d8cba6b9bc5 bluedevil-5.4.2.tar.xz
|
---|
190 | 530e74504d38cfd6783421c017c56f55 khotkeys-5.4.2.tar.xz
|
---|
191 | bfaf172def24ea772dfc58c798b68938 kmenuedit-5.4.2.tar.xz
|
---|
192 | 9b0b4e2268d87cc7699e1e74e6faa8c3 kscreen-5.4.2.tar.xz
|
---|
193 | 171c439473a4ab9cdbbed6732a70801b kwrited-5.4.2.tar.xz
|
---|
194 | 2298a15ef7957322b84829166824628c milou-5.4.2.tar.xz
|
---|
195 | 35c599c728739cded5596d4821b5a53f plasma-nm-5.4.2.tar.xz
|
---|
196 | d48aab54cfe78cfc74d0c8ba099a905b plasma-workspace-wallpapers-5.4.2.tar.xz
|
---|
197 | 64ed6fe8c59c2812b9c34cd8a3827735 polkit-kde-agent-1-5.4.2.tar.xz
|
---|
198 | 44dec41f77080fd83f2122fc2762f09a powerdevil-5.4.2.tar.xz
|
---|
199 | 457b1b6d69fd52416485e08ed7744fe3 plasma-desktop-5.4.2.tar.xz
|
---|
200 | b7049d459eccd6a5efbf55ff1c2121fb kdeplasma-addons-5.4.2.tar.xz
|
---|
201 | f8415a6a0e25a609d30c3d3ee2c9c696 kwayland-integration-5.4.2.tar.xz
|
---|
202 | 8adf666f98baf8f4f381d5515db4100b kde-gtk-config-5.4.2.tar.xz
|
---|
203 | e72368f28238ba7bacac81d5ff5e26f3 kgamma5-5.4.2.tar.xz
|
---|
204 | f6fac3219aa8ba5056e06ad0c92773c9 ksshaskpass-5.4.2.tar.xz
|
---|
205 | 888836db6c8fb4f1cc381ed56a690204 kwallet-pam-5.4.2.tar.xz
|
---|
206 | 05b79b89c9708c046775448ec846c513 muon-5.4.2.tar.xz
|
---|
207 | 78e2931ed08b8fffae67d7aa0cd90f9f plasma-mediacenter-5.4.2.tar.xz
|
---|
208 | b399b81c4d773355e5d5ef7b4d1a73a5 plasma-pa-5.4.2.tar.xz
|
---|
209 | c9bbe9a824400cbe7982aac0d8bdf6a3 plasma-sdk-5.4.2.tar.xz
|
---|
210 | 61585733e7a5585ea9ed203ad9b2a1a0 sddm-kcm-5.4.2.tar.xz
|
---|
211 | 5b0cb53813fc5f9a1406260d2a1109c7 user-manager-5.4.2.tar.xz</literal>
|
---|
212 | EOF</userinput></screen>
|
---|
213 |
|
---|
214 | </sect2>
|
---|
215 |
|
---|
216 | <sect2 role="installation">
|
---|
217 | <title>Installation of Plasma5</title>
|
---|
218 |
|
---|
219 | &as_root;
|
---|
220 |
|
---|
221 | <para>
|
---|
222 | First, start a subshell that will exit on error:
|
---|
223 | </para>
|
---|
224 |
|
---|
225 |
|
---|
226 | <screen><userinput>bash -e</userinput></screen>
|
---|
227 |
|
---|
228 | <para>
|
---|
229 | Install all of the packages by running the following
|
---|
230 | commands:
|
---|
231 | </para>
|
---|
232 |
|
---|
233 | <screen><userinput>while read -r line; do
|
---|
234 |
|
---|
235 | # Get the file name, ignoring comments and blank lines
|
---|
236 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
237 | file=$(echo $line | cut -d" " -f2)
|
---|
238 |
|
---|
239 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
240 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
241 |
|
---|
242 | tar -xf $file
|
---|
243 | pushd $packagedir
|
---|
244 |
|
---|
245 | mkdir build
|
---|
246 | cd build
|
---|
247 |
|
---|
248 | OPTS=""
|
---|
249 |
|
---|
250 | case $srcdir in
|
---|
251 | kwayland-&plasma5-version; )
|
---|
252 | OPTS="-DECM_MKSPECS_INSTALL_DIR=$KF5_PREFIX/share/mkspecs/modules"
|
---|
253 | ;;
|
---|
254 |
|
---|
255 | oxygen-fonts-&plasma5-version; )
|
---|
256 | OPTS="-DOXYGEN_FONT_INSTALL_DIR=/usr/share/fonts/truetype/oxygen"
|
---|
257 | ;;
|
---|
258 | esac
|
---|
259 |
|
---|
260 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
261 | -DCMAKE_BUILD_TYPE=Release \
|
---|
262 | -DLIB_INSTALL_DIR=lib \
|
---|
263 | -DBUILD_TESTING=OFF \
|
---|
264 | $OPTS \
|
---|
265 | -Wno-dev .. &&
|
---|
266 |
|
---|
267 | make
|
---|
268 | as_root make install
|
---|
269 | popd
|
---|
270 |
|
---|
271 | rm -rf $packagedir
|
---|
272 | as_root /sbin/ldconfig
|
---|
273 |
|
---|
274 | done < plasma-&kf5-version;.md5
|
---|
275 |
|
---|
276 | exit
|
---|
277 |
|
---|
278 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
279 |
|
---|
280 | for j in $(find -name \*.js); do
|
---|
281 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
282 | done</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 | <sect2 role="starting">
|
---|
296 | <title>Starting Plasma5</title>
|
---|
297 |
|
---|
298 | <para>
|
---|
299 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
300 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
301 | such as <xref linkend="sddm"/>.
|
---|
302 | </para>
|
---|
303 |
|
---|
304 | <para>
|
---|
305 | To start <application>Plasma5</application> using <xref linkend="xinit"/>,
|
---|
306 | run the following commands:
|
---|
307 | </para>
|
---|
308 |
|
---|
309 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
310 | <literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
|
---|
311 | EOF
|
---|
312 |
|
---|
313 | startx</userinput></screen>
|
---|
314 |
|
---|
315 | <para>
|
---|
316 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
317 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
318 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
319 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
320 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
321 | <command>startx</command> was executed will display many messages,
|
---|
322 | including X starting messages, applications automatically started with
|
---|
323 | the session, and eventually, some warning and error messages. You may
|
---|
324 | prefer to redirect those messages to a log file, which not only will keep
|
---|
325 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
326 | can be done starting X with:
|
---|
327 | </para>
|
---|
328 |
|
---|
329 | <screen><userinput>startx &> ~/.x-session-errors</userinput></screen>
|
---|
330 |
|
---|
331 | <note>
|
---|
332 | <para>
|
---|
333 | You may wish to drop consolekit and/or dbus-launch, e.g., just using
|
---|
334 | startkde in ~/.xinitrc. However some capabilities such as mounting or
|
---|
335 | umounting file systems from a file manager will not be possible, or the
|
---|
336 | reboot option may be absent or inoperative, among other problems.
|
---|
337 | </para>
|
---|
338 | </note>
|
---|
339 | <para>
|
---|
340 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
341 | where X was running. If you wish to see those messages, simultaneously
|
---|
342 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
343 | </para>
|
---|
344 |
|
---|
345 | </sect2>
|
---|
346 |
|
---|
347 | <sect2 role="content">
|
---|
348 | <title>Contents</title>
|
---|
349 |
|
---|
350 | <segmentedlist>
|
---|
351 | <segtitle>Installed Programs</segtitle>
|
---|
352 | <segtitle>Installed Libraries</segtitle>
|
---|
353 | <segtitle>Installed Directories</segtitle>
|
---|
354 |
|
---|
355 | <seglistitem>
|
---|
356 | <seg>
|
---|
357 | Deferred
|
---|
358 | </seg>
|
---|
359 | <seg>
|
---|
360 | Deferred
|
---|
361 | </seg>
|
---|
362 | <seg>
|
---|
363 | Deferred
|
---|
364 | </seg>
|
---|
365 | </seglistitem>
|
---|
366 | </segmentedlist>
|
---|
367 |
|
---|
368 | </sect2>
|
---|
369 |
|
---|
370 | </sect1>
|
---|
371 |
|
---|