glfs/kde/plasma5/plasma-all.xml
Bruce Dubbs 3d656d74e5 tweak plasma install instructins
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16608 af4574ff-66df-0310-9fd7-8a98e5e911e0
2015-11-05 03:01:45 +00:00

372 lines
12 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY plasma5-download-http "http://download.kde.org/stable/plasma/&plasma5-version;">
<!ENTITY plasma5-download-ftp " ">
<!ENTITY plasma5-md5sum "See Below">
<!ENTITY plasma5-size "129 MB">
<!ENTITY plasma5-buildsize "933 GB">
<!ENTITY plasma5-time "15 SBU (using parallelism=6)">
]>
<sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
<?dbhtml filename="plasma-all.html"?>
<sect1info>
<othername>$LastChangedBy: bdubbs $</othername>
<date>$Date: 2015-09-24 16:44:04 -0500 (Thu, 24 Sep 2015) $</date>
</sect1info>
<title>Building Plasma 5</title>
<indexterm zone="plasma5-build">
<primary sortas="a-kf5">KDE Plasma 5</primary>
</indexterm>
<para>KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
5 and QML. It has been derived from the monolithic KDE 4 desktop. i
They implement the KDE Display Environment (Plasma 5).</para>
<note>
<para>The procedures below are under development. They have not been
verified to work properly in an LFS-7.8 environment.</para>
</note>
<!--&lfs78_checked;-->
<para>The instructions below build all of the Plasma 5 packages in one
step by using a bash script.</para>
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &plasma5-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &plasma5-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &plasma5-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &plasma5-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="fontforge"/>,
<xref linkend="gtk2"/>,
<xref linkend="gtk3"/>,
<xref linkend="kf5-frameworks"/>,
<xref linkend="libcanberra"/>,
<xref linkend="libinput"/>,
<xref linkend="libpwquality"/>,
<xref linkend="libxkbcommon"/>,
<xref linkend="linux-pam"/>,
<xref linkend="mesa"/> built with <xref linkend="wayland"/>,
<xref linkend="NetworkManager"/>,
<xref linkend="oxygen-icons"/>,
<xref linkend="pulseaudio"/>,
<xref linkend="python2"/>,
<xref linkend="taglib"/>, and
<xref linkend="xcb-util-cursor"/>
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="lm_sensors"/>,
<xref linkend="pciutils"/>,
<xref linkend="xorg-synaptics-driver"/>
Others to be determined.
</para>
<!--
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="bluez"/> (needed to build Bluez-Qt),
<xref linkend="NetworkManager"/> (needed to build NetworkManager-Qt),
<ulink url="http://www.freedesktop.org/software/ModemManager/">ModemManager</ulink> (needed to build ModemManager-Qt)
</para>
<bridgehead renderas="sect4">Runtime dependency for FrameworkIntegration</bridgehead>
<para role="optional">
<ulink url="http://download.kde.org/stable/plasma/5.2.0">oxygen-fonts</ulink>
</para>
<bridgehead renderas="sect4">Runtime dependencies for kapidox</bridgehead>
<para role="optional">
<xref linkend="doxygen"/>,
<ulink url="https://pypi.python.org/packages/source/J/Jinja2/">Jinja2</ulink>, and
<ulink url="http://pyyaml.org/">PyYAML</ulink>
</para>
<bridgehead renderas="sect4">Additional image formats support in KImageFormats</bridgehead>
<para role="optional">
<xref linkend="jasper"/> and
<ulink url="http://www.openexr.com/">OpenEXR</ulink>
</para>
<bridgehead renderas="sect4">Optional dependencies for KIO</bridgehead>
<para role="optional">
<xref linkend="mitkrb"/>
</para>
<bridgehead renderas="sect4">Optional dependencies for ModemManager-QT</bridgehead>
<para role="optional">
<ulink url="http://www.freedesktop.org/software/ModemManager/">ModemManager</ulink>
</para>
<bridgehead renderas="sect4">Optional dependencies for Solid</bridgehead>
<para role="optional">
<xref linkend="udisks2"/>,
<xref linkend="upower"/> and
<ulink url="http://www.freedesktop.org/software/media-player-info/">media-player-info</ulink> (runtime)
</para>
<bridgehead renderas="sect4">Optional dictionary backends for Sonnet</bridgehead>
<para role="optional">
<ulink url="http://hspell.ivrix.org.il/">Hspell</ulink> and
<ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>
</para>
-->
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/kf5"/></para>
<sect2>
<title>Downloading KDE Plasma5</title>
<para>
The easiest way to get the KDE Plasma5 packages is to use a single
<command>wget</command> to fetch them all at once:
</para>
<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
wget -r -nH --cut-dirs=3 -A '*.xz' -np $url</userinput>
<literal>
The options used here are:
-r recurse through child directories
-nH disable generation of host-prefixed directories
--cut-dirs=3 remove three levels of directories when saving
-A '*.xz' just get the *.xz files
-np don't get parent directories</literal></screen>
</sect2>
<sect2>
<title>Setting Package Order</title>
<para>
The order of building files is important due to internal dependencies.
Create the list of files in the proper order as follows:
</para>
<screen><userinput>cat &gt; plasma-&kf5-version;.md5 &lt;&lt; "EOF"
<literal>bb94a0d6f06583456b8f0a2eae07edd6 kde-cli-tools-5.4.2.tar.xz
67683fc1ae1fdf014f567780502b574a kdecoration-5.4.2.tar.xz
c0c0eef0f2bfb93a81e4e701d7557eb9 kwayland-5.4.2.tar.xz
5b3c52fbf0172dfcf749cde12ebb48f3 libkscreen-5.4.2.tar.xz
c770bd91e3947373c00938e2d85628d9 libksysguard-5.4.2.tar.xz
0e1d48eba3d0261023954b46fe7af36e breeze-5.4.2.tar.xz
c60184edbd89bfcf1ee1c03aefd741f8 kwin-5.4.2.tar.xz
55eeb736365e902e957509a43884efd9 oxygen-5.4.2.tar.xz
25bc526b21e9a0472e94a73b5f2d7d83 oxygen-fonts-5.4.2.tar.xz
770b8c69df2c550ab66f0c316c3bf850 khelpcenter-5.4.2.tar.xz
6714e90d548f37ec32d2cc166c68149c kinfocenter-5.4.2.tar.xz
7551c199c5caffda59363757bbc57243 ksysguard-5.4.2.tar.xz
9d7cfdee2d138983f4267ba1e6a69be6 systemsettings-5.4.2.tar.xz
a4fe835089c213c52f1407715163bf80 plasma-workspace-5.4.2.tar.xz
bc10f321f5ea2a605be29d8cba6b9bc5 bluedevil-5.4.2.tar.xz
530e74504d38cfd6783421c017c56f55 khotkeys-5.4.2.tar.xz
bfaf172def24ea772dfc58c798b68938 kmenuedit-5.4.2.tar.xz
9b0b4e2268d87cc7699e1e74e6faa8c3 kscreen-5.4.2.tar.xz
171c439473a4ab9cdbbed6732a70801b kwrited-5.4.2.tar.xz
2298a15ef7957322b84829166824628c milou-5.4.2.tar.xz
35c599c728739cded5596d4821b5a53f plasma-nm-5.4.2.tar.xz
d48aab54cfe78cfc74d0c8ba099a905b plasma-workspace-wallpapers-5.4.2.tar.xz
64ed6fe8c59c2812b9c34cd8a3827735 polkit-kde-agent-1-5.4.2.tar.xz
44dec41f77080fd83f2122fc2762f09a powerdevil-5.4.2.tar.xz
457b1b6d69fd52416485e08ed7744fe3 plasma-desktop-5.4.2.tar.xz
b7049d459eccd6a5efbf55ff1c2121fb kdeplasma-addons-5.4.2.tar.xz
f8415a6a0e25a609d30c3d3ee2c9c696 kwayland-integration-5.4.2.tar.xz
8adf666f98baf8f4f381d5515db4100b kde-gtk-config-5.4.2.tar.xz
e72368f28238ba7bacac81d5ff5e26f3 kgamma5-5.4.2.tar.xz
f6fac3219aa8ba5056e06ad0c92773c9 ksshaskpass-5.4.2.tar.xz
888836db6c8fb4f1cc381ed56a690204 kwallet-pam-5.4.2.tar.xz
05b79b89c9708c046775448ec846c513 muon-5.4.2.tar.xz
78e2931ed08b8fffae67d7aa0cd90f9f plasma-mediacenter-5.4.2.tar.xz
b399b81c4d773355e5d5ef7b4d1a73a5 plasma-pa-5.4.2.tar.xz
c9bbe9a824400cbe7982aac0d8bdf6a3 plasma-sdk-5.4.2.tar.xz
61585733e7a5585ea9ed203ad9b2a1a0 sddm-kcm-5.4.2.tar.xz
5b0cb53813fc5f9a1406260d2a1109c7 user-manager-5.4.2.tar.xz</literal>
EOF</userinput></screen>
</sect2>
<sect2 role="installation">
<title>Installation of Plasma5</title>
&as_root;
<para>
First, start a subshell that will exit on error:
</para>
<screen><userinput>bash -e</userinput></screen>
<para>
Install all of the packages by running the following
commands:
</para>
<screen><userinput>while read -r line; do
# Get the file name, ignoring comments and blank lines
if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
file=$(echo $line | cut -d" " -f2)
pkg=$(echo $file|sed 's|^.*/||') # Remove directory
packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
tar -xf $file
pushd $packagedir
mkdir build
cd build
OPTS=""
case $srcdir in
kwayland-&plasma5-version; )
OPTS="-DECM_MKSPECS_INSTALL_DIR=$KF5_PREFIX/share/mkspecs/modules"
;;
oxygen-fonts-&plasma5-version; )
OPTS="-DOXYGEN_FONT_INSTALL_DIR=/usr/share/fonts/truetype/oxygen"
;;
esac
cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DLIB_INSTALL_DIR=lib \
-DBUILD_TESTING=OFF \
$OPTS \
-Wno-dev .. &amp;&amp;
make
as_root make install
popd
rm -rf $packagedir
as_root /sbin/ldconfig
done &lt; plasma-&kf5-version;.md5
exit
cd $KF5_PREFIX/share/plasma/plasmoids
for j in $(find -name \*.js); do
as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
done</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
Create symbolic links so qml files can find needed javascript modules.
</para>
</sect2>
<sect2 role="starting">
<title>Starting Plasma5</title>
<para>
You can start <application>Plasma5</application> from runlevel 3, using
<xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
such as <xref linkend="sddm"/>.
</para>
<para>
To start <application>Plasma5</application> using <xref linkend="xinit"/>,
run the following commands:
</para>
<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
<literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
EOF
startx</userinput></screen>
<para>
The X session starts on the first unused virtual terminal, normally vt7.
You can switch to another vt<emphasis>n</emphasis> simultaneously
pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
(<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
normally started at vt7, use Ctrl-Alt-F7. The vt where the command
<command>startx</command> was executed will display many messages,
including X starting messages, applications automatically started with
the session, and eventually, some warning and error messages. You may
prefer to redirect those messages to a log file, which not only will keep
the initial vt uncluttered, but can also be used for debugging purposes. This
can be done starting X with:
</para>
<screen><userinput>startx &amp;&gt; ~/.x-session-errors</userinput></screen>
<note>
<para>
You may wish to drop consolekit and/or dbus-launch, e.g., just using
startkde in ~/.xinitrc. However some capabilities such as mounting or
umounting file systems from a file manager will not be possible, or the
reboot option may be absent or inoperative, among other problems.
</para>
</note>
<para>
When shutting down or rebooting, the shutdown messages appear on the vt
where X was running. If you wish to see those messages, simultaneously
press keys Alt-F7 (assuming that X was running on vt7).
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
Deferred
</seg>
<seg>
Deferred
</seg>
<seg>
Deferred
</seg>
</seglistitem>
</segmentedlist>
</sect2>
</sect1>