Patch akonadiserver so as to correct the datadir parameter passed to
mysql.
Without this patch akonadiserver in KDE 4.4.5 would not start and
consequently kmail would crash during start up.
From 744ecd537cde5a5511ef84771550a2e28d0703fb Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkal...@eka.(none)>
Date: Wed, 11 Aug 2010 14:40:34 -0430
Subject: [PATCH 3/3] Fix akonadi startup failure.
Patch akonadiserver so as to correct the datadir parameter passed to mysql.
---
pkgs/desktops/kde-4.4/support/akonadi/default.nix | 1 +
.../akonadi/fix-broken-datadir-parameter.patch | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
create mode 100644 pkgs/desktops/kde-4.4/support/akonadi/fix-broken-datadir-parameter.patch
diff --git a/pkgs/desktops/kde-4.4/support/akonadi/default.nix b/pkgs/desktops/kde-4.4/support/akonadi/default.nix
index 1f00d04..b93f65b 100644
--- a/pkgs/desktops/kde-4.4/support/akonadi/default.nix
+++ b/pkgs/desktops/kde-4.4/support/akonadi/default.nix
@@ -6,6 +6,7 @@ stdenv.mkDerivation rec {
url = "http://download.akonadi-project.org/${name}.tar.bz2";
sha256 = "1d2ancspavp4qg717hj56j1likb0ifdr65q1awbc2ghqqgd9znck";
};
+ patches = [ ./fix-broken-datadir-parameter.patch ];
buildInputs = [ cmake qt4 shared_mime_info libxslt boost mysql automoc4 soprano ];
meta = with stdenv.lib; {
description = "KDE PIM Storage Service";
diff --git a/pkgs/desktops/kde-4.4/support/akonadi/fix-broken-datadir-parameter.patch b/pkgs/desktops/kde-4.4/support/akonadi/fix-broken-datadir-parameter.patch
new file mode 100644
index 0000000..fa33329
--- /dev/null
+++ b/pkgs/desktops/kde-4.4/support/akonadi/fix-broken-datadir-parameter.patch
@@ -0,0 +1,17 @@
+Fix broken datadir parameter.
+
+--- akonadi-1.3.85/server/src/storage/dbconfigmysql.cpp 2010-06-09 03:41:30.000000000 -0430
++++ akonadi-local-1.3.85/server/src/storage/dbconfigmysql.cpp 2010-08-11 00:21:20.547181479 -0430
+@@ -250,11 +250,10 @@
+ // synthesize the mysqld command
+ QStringList arguments;
+ arguments << QString::fromLatin1( "--defaults-file=%1/mysql.conf" ).arg( akDir );
++ arguments << QString::fromLatin1( "--datadir=%1/" ).arg( dataDir );
+ #ifndef Q_WS_WIN
+- arguments << QString::fromLatin1( "--datadir" ) << QString::fromLatin1( "%1/" ).arg( dataDir );
+ arguments << QString::fromLatin1( "--socket=%1/mysql.socket" ).arg( miscDir );
+ #else
+- arguments << QString::fromLatin1( "--datadir=%1/" ).arg( dataDir );
+ arguments << QString::fromLatin1( "--shared-memory" );
+ #endif
+
--
1.7.2.1
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev