On Sunday, 2011-06-26, Salvo Tomaselli wrote:
> Package: akonadi-server
> Version: 1.5.3-2
> Severity: normal
>
> akonadi can't find mysql (actually located in /usr/sbin/mysqld), so
> it expects the user to manually find it and insert in there.
>
> Somehow i think my grandmother couldn't do it, so i suggest to patch
> akonadi to look in /usr/sbin by default. (it actually is in my path but
> akonadi doesn't seem to look into it).
Weird, /usr/sbin is one of the paths searched for the mysqld executable.
from akonadi/server/src/storage/dbconfigmysql.cpp:
#ifdef MYSQLD_EXECUTABLE
if ( QFile::exists( QLatin1String( MYSQLD_EXECUTABLE ) ) )
defaultServerPath = QLatin1String( MYSQLD_EXECUTABLE );
#endif
const QStringList mysqldSearchPath = QStringList()
<< QLatin1String( "/usr/sbin" )
<< QLatin1String( "/usr/local/sbin" )
<< QLatin1String( "/usr/local/libexec" )
<< QLatin1String( "/usr/libexec" )
<< QLatin1String( "/opt/mysql/libexec" )
<< QLatin1String( "/opt/local/lib/mysql5/bin" )
<< QLatin1String( "/opt/mysql/sbin" );
if ( defaultServerPath.isEmpty() )
defaultServerPath = XdgBaseDirs::findExecutableFile( QLatin1String(
"mysqld" ), mysqldSearchPath );
Cheers,
Kevin
Attachment:
signature.asc
Description: This is a digitally signed message part.