summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-02-21 18:38:30 +0100
committerMichael Palimaka <kensington@gentoo.org>2016-02-24 01:20:36 +1100
commitc7dbe2c56bcbbcb7478f9407057df292b8e86d15 (patch)
tree9b58376d04150336aac35cd1ff7b92f9a6d81bbd
parent30d31a8ec11204ca25e2d967331e9bc9b0cc12c0 (diff)
downloadkde-c7dbe2c56bcbbcb7478f9407057df292b8e86d15.tar.gz
kde-c7dbe2c56bcbbcb7478f9407057df292b8e86d15.tar.bz2
kde-c7dbe2c56bcbbcb7478f9407057df292b8e86d15.zip
app-office/akonadi-server: Fix mysql.conf before it breaks
Backport from git master for mysql versions >=5.7 Package-Manager: portage-2.2.27
-rw-r--r--app-office/akonadi-server/akonadi-server-1.13.1_pre20160203-r1.ebuild (renamed from app-office/akonadi-server/akonadi-server-1.13.1_pre20160203.ebuild)13
-rw-r--r--app-office/akonadi-server/files/akonadi-server-1.13.1-mysql.conf.patch38
2 files changed, 46 insertions, 5 deletions
diff --git a/app-office/akonadi-server/akonadi-server-1.13.1_pre20160203.ebuild b/app-office/akonadi-server/akonadi-server-1.13.1_pre20160203-r1.ebuild
index 3a7685afafe..e94e994204c 100644
--- a/app-office/akonadi-server/akonadi-server-1.13.1_pre20160203.ebuild
+++ b/app-office/akonadi-server/akonadi-server-1.13.1_pre20160203-r1.ebuild
@@ -34,12 +34,12 @@ REQUIRED_USE="|| ( sqlite mysql postgres )"
CDEPEND="
dev-libs/boost:=
- x11-misc/shared-mime-info
>=dev-qt/qtcore-4.8.5:4
>=dev-qt/qtdbus-4.8.5:4
>=dev-qt/qtgui-4.8.5:4
>=dev-qt/qtsql-4.8.5:4[mysql?,postgres?]
>=dev-qt/qttest-4.8.5:4
+ x11-misc/shared-mime-info
sqlite? ( dev-db/sqlite:3 )
"
DEPEND="${CDEPEND}
@@ -54,7 +54,10 @@ RDEPEND="${CDEPEND}
RESTRICT="test"
-PATCHES=( "${FILESDIR}/${PN}-1.13.0-mysql56-crash.patch" )
+PATCHES=(
+ "${FILESDIR}/${PN}-1.13.0-mysql56-crash.patch"
+ "${FILESDIR}/${PN}-1.13.1-mysql.conf.patch"
+)
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
@@ -86,9 +89,9 @@ pkg_setup() {
if use sqlite || has_version "<${CATEGORY}/${P}[sqlite]"; then
ewarn
ewarn "We strongly recommend you change your Akonadi database backend to MySQL in your"
- ewarn "user configuration. This is the backend recommended by KDE upstream."
- ewarn "In particular, kde-apps/kmail-4.10 does not work properly with the sqlite"
- ewarn "backend anymore."
+ ewarn "user configuration. This is the backend recommended by KDE upstream. PostgreSQL"
+ ewarn "is also known to work very well but requires manual dump and import on major"
+ ewarn "upgrades of the DB."
ewarn "You can select the backend in your ~/.config/akonadi/akonadiserverrc."
ewarn "Available drivers are:${AVAILABLE}"
ewarn
diff --git a/app-office/akonadi-server/files/akonadi-server-1.13.1-mysql.conf.patch b/app-office/akonadi-server/files/akonadi-server-1.13.1-mysql.conf.patch
new file mode 100644
index 00000000000..a090636e725
--- /dev/null
+++ b/app-office/akonadi-server/files/akonadi-server-1.13.1-mysql.conf.patch
@@ -0,0 +1,38 @@
+From: Daniel Vrátil <dvratil@kde.org>
+Date: Tue, 16 Feb 2016 17:26:22 +0000
+Subject: Drop mysql.conf option removed in MySQL 5.7
+X-Git-Url: http://quickgit.kde.org/?p=akonadi.git&a=commitdiff&h=9a9f7eaa38023f70c6fa85a87359a487ccf7a48c
+---
+Drop mysql.conf option removed in MySQL 5.7
+
+innodb_additional_mem_pool_size option has been deprecated in MySQL 5.6
+and removed in 5.7 so MySQL will no longer start it the option is present
+in mysql.conf.
+
+The option still seems to be supported by MariaDB, but the default value
+we had in the mysql.conf was below the minimum allowed value, so the harm
+in removing the option for MariaDB should be minimal.
+
+If options supported by MySQL and MariaDB begin to diverge more in the future
+we might consider having separate config files for each database.
+
+* 2016-02-21: Adjusted path for 1.13 branch
+---
+
+
+--- a/server/src/storage/mysql-global.conf
++++ b/server/src/storage/mysql-global.conf
+@@ -37,9 +37,9 @@
+ # use InnoDB for transactions and better crash recovery
+ default_storage_engine=innodb
+
+-# memory pool InnoDB uses to store data dictionary information and other internal data structures (default:1M)
+-# Deprecated in MySQL >= 5.6.3
+-innodb_additional_mem_pool_size=1M
++# memory pool InnoDB uses to store data dictionary information and other internal data structures (default:8M)
++# Deprecated in MySQL >= 5.6.3, removed in 5.7 (works in MariaDB)
++# innodb_additional_mem_pool_size=8M
+
+ # memory buffer InnoDB uses to cache data and indexes of its tables (default:128M)
+ # Larger values means less I/O
+