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 "105 MB">
|
---|
11 | <!ENTITY plasma5-buildsize "1.2 GB">
|
---|
12 | <!ENTITY plasma5-time "43 SBU">
|
---|
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.
|
---|
31 | They implement the KDE Display Environment (Plasma 5).</para>
|
---|
32 |
|
---|
33 | &lfs79_checked;
|
---|
34 |
|
---|
35 | <para>The instructions below build all of the Plasma 5 packages in one
|
---|
36 | step by using a bash script.</para>
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download MD5 sum: &plasma5-md5sum;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download size: &plasma5-size;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated disk space required: &plasma5-buildsize;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated build time: &plasma5-time;</para>
|
---|
57 | </listitem>
|
---|
58 | </itemizedlist>
|
---|
59 |
|
---|
60 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
61 |
|
---|
62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
63 | <para role="required">
|
---|
64 | <xref linkend="fontforge"/>,
|
---|
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="python2"/>,
|
---|
74 | <xref linkend="qca"/> (built with qt5),
|
---|
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="libdbusmenu-qt"/>,
|
---|
82 | <xref linkend="libcanberra"/>,
|
---|
83 | <xref linkend="libinput"/>,
|
---|
84 | <xref linkend="linux-pam"/>,
|
---|
85 | <xref linkend="lm_sensors"/>,
|
---|
86 | <xref linkend="oxygen-icons"/>, and
|
---|
87 | <xref linkend="pciutils"/>
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
91 | <para role="optional">
|
---|
92 | <xref linkend="glu"/>,
|
---|
93 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
94 | <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
---|
95 | <ulink url="https://github.com/ibus/ibus/wiki">ibus</ulink>,
|
---|
96 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
97 | <ulink url="http://gpsd.berlios.de">libgps</ulink>,
|
---|
98 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
99 | <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
---|
100 | <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
|
---|
101 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
102 | <ulink url="http://qalculate.sourceforge.net">Qalculate</ulink>,
|
---|
103 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
104 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
105 | <ulink url="http://www.dest-unreach.org/socat/">socat (for pam_kwallet)</ulink>
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <para condition="html" role="usernotes">User Notes:
|
---|
109 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
110 |
|
---|
111 | <sect2>
|
---|
112 | <title>Downloading KDE Plasma5</title>
|
---|
113 |
|
---|
114 | <para>
|
---|
115 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
116 | <command>wget</command> to fetch them all at once:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
120 | wget -r -nH --cut-dirs=3 -A '*.xz' -np $url</userinput>
|
---|
121 | <literal>
|
---|
122 | The options used here are:
|
---|
123 | -r recurse through child directories
|
---|
124 | -nH disable generation of host-prefixed directories
|
---|
125 | --cut-dirs=3 remove three levels of directories when saving
|
---|
126 | -A '*.xz' just get the *.xz files
|
---|
127 | -np don't get parent directories</literal></screen>
|
---|
128 |
|
---|
129 | </sect2>
|
---|
130 |
|
---|
131 | <sect2>
|
---|
132 | <title>Setting Package Order</title>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | The order of building files is important due to internal dependencies.
|
---|
136 | Create the list of files in the proper order as follows:
|
---|
137 | </para>
|
---|
138 |
|
---|
139 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
140 | <literal>9939aaabbe048c82a0d371b93356bb1b kde-cli-tools-5.6.0.tar.xz
|
---|
141 | c21c5d17d3acf80568950daf6bcdd1fe kdecoration-5.6.0.tar.xz
|
---|
142 | 464f49413bc8e0e61eeaad6520c39473 kwayland-5.6.0.tar.xz
|
---|
143 | 78424f1562b2aea71ec5b384ef01c3ae libkscreen-5.6.0.tar.xz
|
---|
144 | d2297d1a4996d5ac855a5d98cf1d9581 libksysguard-5.6.0.tar.xz
|
---|
145 | 2617b12844e97ad41d67fa238b725d90 breeze-5.6.0.tar.xz
|
---|
146 | e46e9d3b90cf19b20afb4ec6789131e0 breeze-gtk-5.6.0.tar.xz
|
---|
147 | 958fa3cb8fa156c40bc20cb46767a5fa kscreenlocker-5.6.0.tar.xz
|
---|
148 | 3e2cf4a6b4ff58769249525686ecb990 oxygen-5.6.0.tar.xz
|
---|
149 | 1c37b094bd3273912acebae2f52dcbba khelpcenter-5.6.0.tar.xz
|
---|
150 | a9bc4c9ba6bee7873e8f2a2396fcc5c5 kinfocenter-5.6.0.tar.xz
|
---|
151 | 690d154abd0458120511e92b1f602bcb ksysguard-5.6.0.tar.xz
|
---|
152 | 1add44b5f04bf60eb98dd7432bd45a56 kwin-5.6.0.tar.xz
|
---|
153 | 34deac7edd5abdafaf37279501a27ae8 systemsettings-5.6.0.tar.xz
|
---|
154 | 59a5f026b88158c3a1675fff52846cbf plasma-workspace-5.6.0.tar.xz
|
---|
155 | 76886f822f4866b5e6cd09ad0b294b5a bluedevil-5.6.0.tar.xz
|
---|
156 | 62537a68d222f2a5a114d0f00b6d9664 kde-gtk-config-5.6.0.tar.xz
|
---|
157 | 129f356ddcfd7a4366006e1f5598eda5 khotkeys-5.6.0.tar.xz
|
---|
158 | c5a37c45b9a2cd39b287e333910b170d kmenuedit-5.6.0.tar.xz
|
---|
159 | 5a43b4ca376cf5321294ae6a02e84416 kscreen-5.6.0.tar.xz
|
---|
160 | 4fd13634ba67aca79839cb1940302613 kwallet-pam-5.6.0.tar.xz
|
---|
161 | d0a617777fc8793e685e0ea1cba5eda9 kwayland-integration-5.6.0.tar.xz
|
---|
162 | cb7831be19e51c6d4ec2f62024726998 kwrited-5.6.0.tar.xz
|
---|
163 | fba2776f99c139bb64c731f092687b72 milou-5.6.0.tar.xz
|
---|
164 | ec0df73abdcb30aa13737af704130ca1 plasma-nm-5.6.0.tar.xz
|
---|
165 | f9beabe2a235c1c59e6d44c2f09c0bd1 plasma-pa-5.6.0.tar.xz
|
---|
166 | 751c26021ad463215d1e57cbf8f976f5 plasma-workspace-wallpapers-5.6.0.tar.xz
|
---|
167 | b62322564a3c70330021c9b1bedf93af polkit-kde-agent-1-5.6.0.tar.xz
|
---|
168 | f3dfc7affd4492731cab7d0ce293dd5b powerdevil-5.6.0.tar.xz
|
---|
169 | 459a7ee12a9e404164d5843b4c22500a plasma-desktop-5.6.0.tar.xz
|
---|
170 | 9e1892505d9277a650f5de2a991dfb10 kdeplasma-addons-5.6.0.tar.xz
|
---|
171 | 8ac30fe02721cc355a696e8966de85d1 kgamma5-5.6.0.tar.xz
|
---|
172 | df606fc93c1fa06407d15230dacc67e7 ksshaskpass-5.6.0.tar.xz
|
---|
173 | 351aba4bf5d8932232d04dfaf5165f3e plasma-mediacenter-5.6.0.tar.xz
|
---|
174 | 7405dabf94dbafaae354b188bc6dfcb7 plasma-sdk-5.6.0.tar.xz
|
---|
175 | 810f4e9ac4d0b6b6cbd3bfa315742b35 sddm-kcm-5.6.0.tar.xz
|
---|
176 | 6df0619e5446a52111709181878b3717 user-manager-5.6.0.tar.xz
|
---|
177 | afad2be536e324dfbea25af96c2fe9b4 discover-5.6.0.tar.xz
|
---|
178 | #ea4209e98097b42423859295be795e55 breeze-grub-5.6.0.tar.xz
|
---|
179 | #ba767671eb7741405215f9a7e4b05ea5 breeze-plymouth-5.6.0.tar.xz
|
---|
180 | 116551aa32f5929648abf5e298385c83 kactivitymanagerd-5.6.0.tar.xz
|
---|
181 | c26be1b6ed15604accf8f725c068279a plasma-integration-5.6.0.tar.xz
|
---|
182 | 2aacc6c4f92ee3c2327d01df40b72269 simplesystray-5.6.0.tar.xz</literal>
|
---|
183 | EOF</userinput></screen>
|
---|
184 |
|
---|
185 | <note><para>The breeze-grub and breeze-plymouth packages above are both for
|
---|
186 | customized support of <ulink
|
---|
187 | url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
|
---|
188 | which is designed to be run within an initial ram disk during boot (see
|
---|
189 | <xref linkend="initramfs"/>). </para></note>
|
---|
190 |
|
---|
191 | </sect2>
|
---|
192 |
|
---|
193 | <sect2 role="installation">
|
---|
194 | <title>Installation of Plasma5</title>
|
---|
195 |
|
---|
196 | &as_root;
|
---|
197 |
|
---|
198 | <para>
|
---|
199 | First, start a subshell that will exit on error:
|
---|
200 | </para>
|
---|
201 |
|
---|
202 |
|
---|
203 | <screen><userinput>bash -e</userinput></screen>
|
---|
204 |
|
---|
205 | <para>
|
---|
206 | Install all of the packages by running the following
|
---|
207 | commands:
|
---|
208 | </para>
|
---|
209 |
|
---|
210 | <screen><userinput>while read -r line; do
|
---|
211 |
|
---|
212 | # Get the file name, ignoring comments and blank lines
|
---|
213 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
214 | file=$(echo $line | cut -d" " -f2)
|
---|
215 |
|
---|
216 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
217 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
218 |
|
---|
219 | tar -xf $file
|
---|
220 | pushd $packagedir
|
---|
221 |
|
---|
222 | mkdir build
|
---|
223 | cd build
|
---|
224 |
|
---|
225 | OPTS=""
|
---|
226 |
|
---|
227 | case $packagedir in
|
---|
228 | kwayland-&plasma5-version; )
|
---|
229 | OPTS="-DECM_MKSPECS_INSTALL_DIR=$KF5_PREFIX/share/mkspecs/modules"
|
---|
230 | ;;
|
---|
231 | esac
|
---|
232 |
|
---|
233 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
234 | -DCMAKE_BUILD_TYPE=Release \
|
---|
235 | -DLIB_INSTALL_DIR=lib \
|
---|
236 | -DBUILD_TESTING=OFF \
|
---|
237 | $OPTS \
|
---|
238 | -Wno-dev .. &&
|
---|
239 |
|
---|
240 | make
|
---|
241 | as_root make install
|
---|
242 | popd
|
---|
243 |
|
---|
244 | rm -rf $packagedir
|
---|
245 | as_root /sbin/ldconfig
|
---|
246 |
|
---|
247 | done < plasma-&plasma5-version;.md5
|
---|
248 |
|
---|
249 | exit
|
---|
250 |
|
---|
251 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
252 |
|
---|
253 | for j in $(find -name \*.js); do
|
---|
254 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
255 | done</userinput></screen>
|
---|
256 |
|
---|
257 | </sect2>
|
---|
258 |
|
---|
259 | <sect2 role="commands">
|
---|
260 | <title>Command Explanations</title>
|
---|
261 |
|
---|
262 | <para>
|
---|
263 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
264 | Create symbolic links so qml files can find needed javascript modules.
|
---|
265 | </para>
|
---|
266 |
|
---|
267 | </sect2>
|
---|
268 | <sect2 role="starting">
|
---|
269 | <title>Starting Plasma5</title>
|
---|
270 |
|
---|
271 | <caution>
|
---|
272 | <para>If you have KDE4 installed as well as Plasma 5, make sure the
|
---|
273 | PATH environment setting has the Plasma 5 binaries before the KDE4 entry.
|
---|
274 | You can ensure this by running:</para>
|
---|
275 |
|
---|
276 | <screen><userinput>pathprepend /opt/kf5/bin</userinput></screen>
|
---|
277 |
|
---|
278 | <para>before running startx.</para>
|
---|
279 | </caution>
|
---|
280 |
|
---|
281 | <para>
|
---|
282 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
283 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
284 | such as <xref linkend="sddm"/>.
|
---|
285 | </para>
|
---|
286 |
|
---|
287 | <para>
|
---|
288 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
289 | run the following commands:
|
---|
290 | </para>
|
---|
291 |
|
---|
292 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
293 | <literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
|
---|
294 | EOF
|
---|
295 |
|
---|
296 | startx</userinput></screen>
|
---|
297 |
|
---|
298 | <para>
|
---|
299 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
300 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
301 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
302 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
303 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
304 | <command>startx</command> was executed will display many messages,
|
---|
305 | including X starting messages, applications automatically started with
|
---|
306 | the session, and eventually, some warning and error messages. You may
|
---|
307 | prefer to redirect those messages to a log file, which not only will keep
|
---|
308 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
309 | can be done starting X with:
|
---|
310 | </para>
|
---|
311 |
|
---|
312 | <screen><userinput>startx &> ~/.x-session-errors</userinput></screen>
|
---|
313 |
|
---|
314 | <note>
|
---|
315 | <para>
|
---|
316 | You may wish to drop consolekit and/or dbus-launch, e.g., just using
|
---|
317 | startkde in ~/.xinitrc. However some capabilities such as mounting or
|
---|
318 | umounting file systems from a file manager will not be possible, or the
|
---|
319 | reboot option may be absent or inoperative, among other problems.
|
---|
320 | </para>
|
---|
321 | </note>
|
---|
322 | <para>
|
---|
323 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
324 | where X was running. If you wish to see those messages, simultaneously
|
---|
325 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
326 | </para>
|
---|
327 |
|
---|
328 | </sect2>
|
---|
329 |
|
---|
330 | <sect2 role="content">
|
---|
331 | <title>Contents</title>
|
---|
332 |
|
---|
333 | <segmentedlist>
|
---|
334 | <segtitle>Installed Programs</segtitle>
|
---|
335 | <segtitle>Installed Libraries</segtitle>
|
---|
336 | <segtitle>Installed Directories</segtitle>
|
---|
337 |
|
---|
338 | <seglistitem>
|
---|
339 | <seg>
|
---|
340 | There are too many plasma programs (50 in /opt/kf5/bin) to list
|
---|
341 | separately here.
|
---|
342 | </seg>
|
---|
343 | <seg>
|
---|
344 | There are too many plasma libraries (39 in /opt/kf5/lib) to list
|
---|
345 | separately here.
|
---|
346 | </seg>
|
---|
347 | <seg>
|
---|
348 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
349 | list separately here.
|
---|
350 | </seg>
|
---|
351 | </seglistitem>
|
---|
352 | </segmentedlist>
|
---|
353 |
|
---|
354 | </sect2>
|
---|
355 |
|
---|
356 | </sect1>
|
---|
357 |
|
---|