From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/akonadi/
Date: Thu, 17 Aug 2017 12:24:09 +0000 (UTC) [thread overview]
Message-ID: <1502971662.eed37f8bca645a01f013d2b473a77c61eb8c925c.asturm@gentoo> (raw)
commit: eed37f8bca645a01f013d2b473a77c61eb8c925c
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 17 12:07:42 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Aug 17 12:07:42 2017 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=eed37f8b
kde-apps/akonadi: Re-add USE=sqlite for reverse deps
Gentoo-bug: 627992
Package-Manager: Portage-2.3.8, Repoman-2.3.3
kde-apps/akonadi/akonadi-17.08.0.ebuild | 20 +++++++++++++++-----
kde-apps/akonadi/akonadi-17.08.49.9999.ebuild | 20 +++++++++++++++-----
kde-apps/akonadi/akonadi-9999.ebuild | 20 +++++++++++++++-----
3 files changed, 45 insertions(+), 15 deletions(-)
diff --git a/kde-apps/akonadi/akonadi-17.08.0.ebuild b/kde-apps/akonadi/akonadi-17.08.0.ebuild
index c11ecfc98e..600445c2f7 100644
--- a/kde-apps/akonadi/akonadi-17.08.0.ebuild
+++ b/kde-apps/akonadi/akonadi-17.08.0.ebuild
@@ -14,9 +14,9 @@ HOMEPAGE="https://pim.kde.org/akonadi"
KEYWORDS="~amd64 ~arm ~x86"
LICENSE="LGPL-2.1+"
-IUSE="+mysql postgres tools xml"
+IUSE="+mysql postgres sqlite tools xml"
-REQUIRED_USE="|| ( mysql postgres ) test? ( tools )"
+REQUIRED_USE="|| ( mysql postgres sqlite ) test? ( tools )"
# drop qtgui subslot operator when QT_MINIMAL >= 5.9.0
COMMON_DEPEND="
@@ -41,6 +41,7 @@ COMMON_DEPEND="
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
x11-misc/shared-mime-info
+ sqlite? ( dev-db/sqlite:3 )
xml? ( dev-libs/libxml2 )
"
DEPEND="${COMMON_DEPEND}
@@ -64,16 +65,24 @@ RESTRICT+=" test"
PATCHES=( "${FILESDIR}/${PN}-17.03.80-mysql56-crash.patch" )
pkg_setup() {
- # Set default storage backend in order: MySQL, PostgreSQL
+ # Set default storage backend in order: MySQL, PostgreSQL, SQLite
# reverse driver check to keep the order
+ use sqlite && DRIVER="QSQLITE3"
use postgres && DRIVER="QPSQL"
use mysql && DRIVER="QMYSQL"
+
+ if use sqlite || has_version "<${CATEGORY}/${P}[sqlite]"; then
+ ewarn "We strongly recommend you change your Akonadi database backend to either MySQL"
+ ewarn "or PostgreSQL in your user configuration."
+ ewarn "In particular, kde-apps/kmail does not work properly with the sqlite backend."
+ fi
+
kde5_pkg_setup
}
src_configure() {
local mycmakeargs=(
- -DAKONADI_BUILD_QSQLITE=OFF
+ -DAKONADI_BUILD_QSQLITE=$(usex sqlite)
-DBUILD_TOOLS=$(usex tools)
$(cmake-utils_use_find_package xml LibXml2)
)
@@ -97,7 +106,8 @@ pkg_postinst() {
kde5_pkg_postinst
elog "You can select the storage backend in ~/.config/akonadi/akonadiserverrc."
elog "Available drivers are:"
- use postgres && elog " QPSQL"
use mysql && elog " QMYSQL"
+ use postgres && elog " QPSQL"
+ use sqlite && elog " QSQLITE3"
elog "${DRIVER} has been set as your default akonadi storage backend."
}
diff --git a/kde-apps/akonadi/akonadi-17.08.49.9999.ebuild b/kde-apps/akonadi/akonadi-17.08.49.9999.ebuild
index 575f051e83..83e59f81c1 100644
--- a/kde-apps/akonadi/akonadi-17.08.49.9999.ebuild
+++ b/kde-apps/akonadi/akonadi-17.08.49.9999.ebuild
@@ -14,9 +14,9 @@ HOMEPAGE="https://pim.kde.org/akonadi"
KEYWORDS=""
LICENSE="LGPL-2.1+"
-IUSE="+mysql postgres tools xml"
+IUSE="+mysql postgres sqlite tools xml"
-REQUIRED_USE="|| ( mysql postgres ) test? ( tools )"
+REQUIRED_USE="|| ( mysql postgres sqlite ) test? ( tools )"
# drop qtgui subslot operator when QT_MINIMAL >= 5.9.0
COMMON_DEPEND="
@@ -41,6 +41,7 @@ COMMON_DEPEND="
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
x11-misc/shared-mime-info
+ sqlite? ( dev-db/sqlite:3 )
xml? ( dev-libs/libxml2 )
"
DEPEND="${COMMON_DEPEND}
@@ -61,16 +62,24 @@ RESTRICT+=" test"
PATCHES=( "${FILESDIR}/${PN}-17.03.80-mysql56-crash.patch" )
pkg_setup() {
- # Set default storage backend in order: MySQL, PostgreSQL
+ # Set default storage backend in order: MySQL, PostgreSQL, SQLite
# reverse driver check to keep the order
+ use sqlite && DRIVER="QSQLITE3"
use postgres && DRIVER="QPSQL"
use mysql && DRIVER="QMYSQL"
+
+ if use sqlite || has_version "<${CATEGORY}/${P}[sqlite]"; then
+ ewarn "We strongly recommend you change your Akonadi database backend to either MySQL"
+ ewarn "or PostgreSQL in your user configuration."
+ ewarn "In particular, kde-apps/kmail does not work properly with the sqlite backend."
+ fi
+
kde5_pkg_setup
}
src_configure() {
local mycmakeargs=(
- -DAKONADI_BUILD_QSQLITE=OFF
+ -DAKONADI_BUILD_QSQLITE=$(usex sqlite)
-DBUILD_TOOLS=$(usex tools)
$(cmake-utils_use_find_package xml LibXml2)
)
@@ -94,7 +103,8 @@ pkg_postinst() {
kde5_pkg_postinst
elog "You can select the storage backend in ~/.config/akonadi/akonadiserverrc."
elog "Available drivers are:"
- use postgres && elog " QPSQL"
use mysql && elog " QMYSQL"
+ use postgres && elog " QPSQL"
+ use sqlite && elog " QSQLITE3"
elog "${DRIVER} has been set as your default akonadi storage backend."
}
diff --git a/kde-apps/akonadi/akonadi-9999.ebuild b/kde-apps/akonadi/akonadi-9999.ebuild
index 575f051e83..83e59f81c1 100644
--- a/kde-apps/akonadi/akonadi-9999.ebuild
+++ b/kde-apps/akonadi/akonadi-9999.ebuild
@@ -14,9 +14,9 @@ HOMEPAGE="https://pim.kde.org/akonadi"
KEYWORDS=""
LICENSE="LGPL-2.1+"
-IUSE="+mysql postgres tools xml"
+IUSE="+mysql postgres sqlite tools xml"
-REQUIRED_USE="|| ( mysql postgres ) test? ( tools )"
+REQUIRED_USE="|| ( mysql postgres sqlite ) test? ( tools )"
# drop qtgui subslot operator when QT_MINIMAL >= 5.9.0
COMMON_DEPEND="
@@ -41,6 +41,7 @@ COMMON_DEPEND="
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
x11-misc/shared-mime-info
+ sqlite? ( dev-db/sqlite:3 )
xml? ( dev-libs/libxml2 )
"
DEPEND="${COMMON_DEPEND}
@@ -61,16 +62,24 @@ RESTRICT+=" test"
PATCHES=( "${FILESDIR}/${PN}-17.03.80-mysql56-crash.patch" )
pkg_setup() {
- # Set default storage backend in order: MySQL, PostgreSQL
+ # Set default storage backend in order: MySQL, PostgreSQL, SQLite
# reverse driver check to keep the order
+ use sqlite && DRIVER="QSQLITE3"
use postgres && DRIVER="QPSQL"
use mysql && DRIVER="QMYSQL"
+
+ if use sqlite || has_version "<${CATEGORY}/${P}[sqlite]"; then
+ ewarn "We strongly recommend you change your Akonadi database backend to either MySQL"
+ ewarn "or PostgreSQL in your user configuration."
+ ewarn "In particular, kde-apps/kmail does not work properly with the sqlite backend."
+ fi
+
kde5_pkg_setup
}
src_configure() {
local mycmakeargs=(
- -DAKONADI_BUILD_QSQLITE=OFF
+ -DAKONADI_BUILD_QSQLITE=$(usex sqlite)
-DBUILD_TOOLS=$(usex tools)
$(cmake-utils_use_find_package xml LibXml2)
)
@@ -94,7 +103,8 @@ pkg_postinst() {
kde5_pkg_postinst
elog "You can select the storage backend in ~/.config/akonadi/akonadiserverrc."
elog "Available drivers are:"
- use postgres && elog " QPSQL"
use mysql && elog " QMYSQL"
+ use postgres && elog " QPSQL"
+ use sqlite && elog " QSQLITE3"
elog "${DRIVER} has been set as your default akonadi storage backend."
}
next reply other threads:[~2017-08-17 12:24 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 12:24 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-09 17:34 [gentoo-commits] proj/kde:master commit in: kde-apps/akonadi/ Andreas Sturmlechner
2024-10-04 21:55 Andreas Sturmlechner
2024-07-01 19:10 Andreas Sturmlechner
2024-05-17 19:50 Andreas Sturmlechner
2023-12-19 22:00 Andreas Sturmlechner
2023-12-19 12:34 Andreas Sturmlechner
2023-12-18 21:30 Andreas Sturmlechner
2023-08-06 20:39 Andreas Sturmlechner
2021-11-15 10:59 Andreas Sturmlechner
2021-02-16 22:48 Andreas Sturmlechner
2021-02-15 14:39 Andreas Sturmlechner
2021-02-04 13:16 Andreas Sturmlechner
2020-12-25 21:51 Andreas Sturmlechner
2020-10-10 21:39 Andreas Sturmlechner
2020-09-28 21:26 Andreas Sturmlechner
2020-02-23 14:57 Andreas Sturmlechner
2019-12-12 18:22 Andreas Sturmlechner
2019-11-25 0:21 Andreas Sturmlechner
2019-09-11 8:09 Andreas Sturmlechner
2019-07-27 14:05 Andreas Sturmlechner
2019-07-24 11:32 Andreas Sturmlechner
2019-01-10 8:43 Andreas Sturmlechner
2017-11-14 21:20 Andreas Sturmlechner
2017-10-30 10:32 Andreas Sturmlechner
2017-10-09 19:17 Andreas Sturmlechner
2017-09-25 15:50 Andreas Sturmlechner
2017-09-22 16:08 Andreas Sturmlechner
2017-09-06 21:39 Andreas Sturmlechner
2017-08-26 13:04 Michael Palimaka
2017-08-12 12:32 Andreas Sturmlechner
2016-10-30 12:56 Johannes Huber
2016-09-07 8:57 Michael Palimaka
2016-06-23 11:54 Michael Palimaka
2016-06-17 10:25 Michael Palimaka
2016-06-05 18:59 Michael Palimaka
2015-10-31 14:49 Michael Palimaka
2015-10-02 19:15 Michael Palimaka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1502971662.eed37f8bca645a01f013d2b473a77c61eb8c925c.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox