Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 520206

Summary: app-office/akonadi-server fails at runtime with dev-db/mysql-5.5* due to mysql_install_db not being in /usr/bin any more
Product: Gentoo Linux Reporter: Martin Walch <walch.martin>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Walch 2014-08-18 19:21:32 UTC
kdepim is currently broken with mysql-5.5* which is now the newest stable version.

The reason is that mysql_install_db is not installed in any of the common bin directories, but in /usr/share/mysql/scripts (not sure if this is actually intended as it is the only file in /usr/share/mysql/scripts) and akonadi-server does not find it on startup:

$ akonadictl start
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/usr/local/bin", "/usr/bin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3", "/usr/games/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Found mysql_install_db:  "" 
Found mysqlcheck:  "/usr/bin/mysqlcheck" 
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL3 QMYSQL
ASSERT: "database.driver()->hasFeature( QSqlDriver::LastInsertId )" in file /var/tmp/portage/app-office/akonadi-server-1.13.0/work/akonadi-1.13.0/server/src/storage/dbconfigmysql.cpp, line 172
"[
0: akonadiserver(_Z11akBacktracev+0x34) [0x4736d4]
1: akonadiserver() [0x473b2e]
2: /lib64/libc.so.6(+0x38810) [0x7fc743128810]
3: /lib64/libc.so.6(gsignal+0x35) [0x7fc743128795]
4: /lib64/libc.so.6(abort+0x148) [0x7fc743129c18]
5: /usr/lib64/qt4/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x64) [0x7fc74491fca4]
6: /usr/lib64/qt4/libQtCore.so.4(+0x77e04) [0x7fc74491fe04]
7: /usr/lib64/qt4/libQtCore.so.4(_Z6qFatalPKcz+0x94) [0x7fc74491ff94]
8: akonadiserver(_ZN7Akonadi6Server13DbConfigMysql19startInternalServerEv+0x1217) [0x4e28f7]
9: akonadiserver(_ZN7Akonadi6Server13AkonadiServer20startDatabaseProcessEv+0xc7) [0x4767e7]
10: akonadiserver(_ZN7Akonadi6Server13AkonadiServer4initEv+0x9c) [0x4791bc]
11: akonadiserver() [0x54d3a4]
12: /usr/lib64/qt4/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x25e) [0x7fc744a3f65e]
13: /usr/lib64/qt4/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x6d) [0x7fc744a25a4d]
14: /usr/lib64/qt4/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x360) [0x7fc744a29080]
15: /usr/lib64/qt4/libQtCore.so.4(+0x1ac29e) [0x7fc744a5429e]
16: /usr/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x24b) [0x7fc742be6ceb]
17: /usr/lib64/libglib-2.0.so.0(+0x4cf24) [0x7fc742be6f24]
18: /usr/lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fc742be6fec]
19: /usr/lib64/qt4/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x7c) [0x7fc744a5441c]
20: /usr/lib64/qt4/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x2f) [0x7fc744a2468f]
21: /usr/lib64/qt4/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x130) [0x7fc744a24970]
22: /usr/lib64/qt4/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x88) [0x7fc744a29c28]
23: akonadiserver(main+0x1cd) [0x46dd8d]
24: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fc743114db5]
25: akonadiserver() [0x46e621]
]
"

$ emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/no-multilib, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-AMD_E-450_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     3642028 total,    328956 free
KiB Swap:    4194300 total,   4194200 free
Timestamp of tree: Mon, 18 Aug 2014 18:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo java flow x-portage worldforge-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE pmd freedist as-is MPEG-4 sun-concurrent-util unRAR AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fgcse-after-reload -fpredictive-commoning"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fgcse-after-reload -fpredictive-commoning"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=native -fgcse-after-reload -fpredictive-commoning"
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-6 -e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java /var/lib/layman/flow /usr/local/portage /usr/local/portage/worldforge-overlay"
SYNC="rsync://rsync6.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa amd64 apache2 apng bash-completion berkdb bindist bluetooth bzip2 cairo ccache cdr cdrom cg cli consolekit cracklib crypt cups cxx dbus declarative designer-plugin desktopglobe dirac directfb doc dri dvd dvdr eap-sim encode exif extra extras faac farstream fasteap fbcon ffmpeg flac fontconfig fortran g3dvl gallium gbm gd gdbm gles gles2 gpm gstreamer gudev hou hpcups hpijs iconv icq ipv6 isabelle jabber jadetex java jpeg kde kdecards kdepim kdm kipi konqueror kpathsea laptop latex libkms llvm-shared-libs lzma mjpeg mmx mmxext mng modemmanager modules mpeg mplayer multitarget mysql natspec ncurses networkmanager nls nowin nptl nsplugin ogg openal opencl opengl openmp openrc openstreetmap opus oscar otr pam pcre pdf php plasma pm-utils png policykit powersave powertop ppp python qt qt-dbus qt-faststart qt3support qt4 r600-llvm-compiler readline reiser4 reiserfs samba schroedinger sdl semantic-desktop session shapefile smbclient snmp sou speex spell sql sse sse2 sse3 sse4a ssl ssse3 svg tcpd telepathy theora tiff tk truetype udev unicode upnp usb v4l vaapi vcd vcdx video videos vlc vorbis weak-algorithms webm webp webstart x264 xcb xml xmp xmpp xorg xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2014-08-18 19:36:32 UTC

*** This bug has been marked as a duplicate of bug 519548 ***