Remove duplicate margin
[kdepim.git] / README.packagers
blobfaeb64d99b2364b6e14d747481c1b6544f549a39
1 Information for packagers of KDEPIM
2 =====================================
4 This document gives some hints to packagers on what is needed to provide
5 a sane installation and packaging for KDEPIM.
7 Akonadi is a key component of KDEPIM that is used by almost all applications.
8 It depends on several components to be properly installed and configured,
9 which are listed below.
11 Also, this document discusses other topics which are of importance for
12 packagers, such as the GPG support.
15 MySQL
16 -----
17 Akonadi needs a relational database to keep metadata about the PIM data it
18 manages.  There exists different backends for MySQL, PostgreSQL and SQLite.
19 While it might be tempting to use the SQLite backend to reduce dependencies,
20 we highly discourage to use it, because it is not yet finished, can lose
21 your data, has performance problems and is not automatically tested yet!
23 The PostgreSQL backend has some more testing, however we discourage the
24 use of it as well, because it will make the migration path much harder once
25 we'll switch to Virtuoso as SQL backend in the future.  So please make MySQL a
26 hard (runtime) dependency for Akonadi and compile the Qt library with support
27 for MySQL (can be done as plugin as well).
30 Akonadi
31 -------
32 Having a working installation of Baloo and MySQL should
33 normally result in a working installation of Akonadi.  Akonadi provides a self
34 test dialog to make sure it really works. Please make sure all tests in this
35 self test dialog pass.
38 KDEPIM-Runtime
39 --------------
40 (most of) The kdepim applications can use one or several Akonadi Resources in order
41 to fetch and store PIM data.
43 It is usually a good idea to install the kdepim-runtime package when installing
44 one of the KDEPIM applications. As the module name indicates, it is only needed at
45 runtime.
47 The kdepim-runtime module contains applications and plugins, for example
48 Akonadi resources or KIO slaves, that are needed by all applications making use
49 of the PIM API in kdepimlibs.
51 Third-party applications which use the PIM API can be installed without installing
52 the rest of KDEPIM, only KDEPIM-Runtime (and of course kdepimlibs) is needed.
54 If you don't install KDEPIM-Runtime for third-party applications which use the PIM
55 API of kdepimlibs, these applications will fail to work at runtime.
57 Note that not all parts of kdepimlibs require KDEPIM-Runtime at runtime, only
58 the parts that access the Akonadi store in some way, like 'kcalcore', 'kabc' or
59 'akonadi'. Other parts, like 'kmime' or 'gpgme++' are not accessing the Akonadi
60 store and therefore don't need KDEPIM-Runtime.
63 Kontact Plugins
64 ---------------
65 Kontact is a container application which embeds other PIM applications such as
66 KMail and KOrganizer.  For an application to be embedded in Kontact, it needs to
67 provide a Kontact plugin.  These Kontact plugins reside under kontact/plugins,
68 while the applications itself are in the top-level folder.  This is important
69 when splitting up the KDEPIM module in several packages. The Kontact plugin
70 should be packaged together with its application. It is an error to install a
71 Kontact plugin without installing the associated application, this will make
72 Kontact crash.  As an example, assume you want to provide a separate package for
73 KNode. This package should contain KMail from the kmail/ directory.
76 GPG Support
77 -----------
78 Crypto operations are supported in multiple places in KDEPIM: KMail provides
79 support for dealing with signed and encrypted mails, and Kleopatra is an
80 application that manages certificates and GPG keys.  For this to work, GPG needs
81 to be installed and configured correctly.  An easy way to check if you have a
82 working GPG installation is to run the self test in Kleopatra, which checks many
83 aspects of the GPG installation. After starting Kleopatra, the self test can be
84 found in the menu under 'Settings->Perform Self Test'. Please make sure the self
85 test passes.  Another way to test is sending an encrypted and signed message
86 with KMail, and later decrypting the received message. Note that saving as draft
87 is not enough here, you need to actually send the mail.
89 A common packaging error is that gpg-agent is not running or that it is wrongly
90 configured. This will result in KMail failing on crypto operations with error
91 messages that give no indication of the real problem, such as 'bad passphrase'.
94 Libraries inside KDEPIM
95 -----------------------
96 There are several libraries in the KDEPIM module, such as 'libkdepim', 'libkleo'
97 or 'libksieve'.  There is no guarantee for a stable API or ABI in those
98 libraries.  API and ABI stability is only guaranteed for kdepimlibs.  The
99 libraries of the KDEPIM module are generally work in progress and therefore
100 change a lot, API and ABI breakage can occur at any moment.
102 Therefore, please make sure to always ship the libraries with the exact same
103 revision numbers as the applications. This is always the case for the tags
104 created for KDE SC versions.
106 As an example, shipping libkdepim from KDE SC 4.4.1 together with KMail from KDE
107 SC 4.4.2 is an error, and can result in failure at runtime, since this libkdepim
108 is not binary compatible with that KMail.
111 Further resources
112 ----------------
113 Some frequently occurring problems with Akonadi are collected under
114 http://userbase.kde.org/Akonadi#Some_Technical_Issues.
116 For further questions feel free to contact the KDE PIM developers on
117 kde-pim@kde.org or ask on freenode IRC channel #kontact or #akonadi