summary refs log tree commit diff
path: root/pkgs/desktops/kde-4.5/support/akonadi/fix-broken-datadir-parameter.patch
blob: fa33329d4b0f537c7ab42ba8ad7b7f9fe67272f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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