Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566980 - [kde overlay] media-sound/amarok-2.8.90 fails to build with use "-embedded": cannot find -lmysqld
Summary: [kde overlay] media-sound/amarok-2.8.90 fails to build with use "-embedded": ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-27 12:38 UTC by Till Schäfer
Modified: 2016-04-12 21:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.gz,103.37 KB, application/gzip)
2015-11-27 12:40 UTC, Till Schäfer
Details
amarok-2.8.90-fix-cmake-MySQLEmbedded.patch (amarok-2.8.90-fix-cmake-MySQLEmbedded.patch,961 bytes, patch)
2015-12-02 20:55 UTC, Matt Whitlock
Details | Diff
build.log for with patch applied (build.log.gz,106.42 KB, application/gzip)
2015-12-07 13:19 UTC, Till Schäfer
Details
amarok-2.8.90-respect-use-embedded.patch (amarok-2.8.90-respect-use-embedded.patch,675 bytes, patch)
2015-12-15 06:16 UTC, Matt Whitlock
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2015-11-27 12:38:16 UTC
Emerging media-sound/amarok-2.8.90 currently results in a build failure here: 

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqld
collect2: error: ld returned 1 exit status
src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/build.make:156: recipe for target 'lib/amarok_collection-mysqlcollection.so' failed
make[2]: *** [lib/amarok_collection-mysqlcollection.so] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-sound/amarok-2.8.90/work/amarok-2.8.90_build'
CMakeFiles/Makefile2:2013: recipe for target 'src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/all' failed
make[1]: *** [src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/all] Error 2


Reproducible: Always




emerge --info media-sound/amarok 
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.21-r1, 4.1.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    15955488 total,   1977648 free
KiB Swap:   16801788 total,  15994208 free
Timestamp of repository gentoo: Fri, 27 Nov 2015 10:21:51 +0000
Timestamp of repository kde: Thu, 26 Nov 2015 19:21:42 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    priority: 50

local
    location: /usr/local/portage
    masters: gentoo
    priority: 1000

Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write --jobs=5 --load-average=10.0"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
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"
USE="64bit X a52 aac acl acpi aes alsa amd64 avx bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cddb cdio cdr cli consolekit cracklib crypt css cups cxx dbus declarative dell dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor glib glibc gpg gpm gtk haskell iconv icu id3tag ieee1394 imagemagick inotify ipv4 ipv6 irc java jpeg jpeg2k kde kipi lame latex lcms ldap libnotify libsamplerate lzma mad mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl ntp ogg okteta opengl openmp otr pam pango pcre pdf phonon plasma pm-utils png policykit popcnt ppds pulseaudio qemu qt3support qt4 quicktime rar readline real rss sdl seccomp semantic-desktop session spell spice sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg syslog taglib tcpd threads tiff truetype udev udisks unicode upower usb v41 v412 v4l vaapi vcd vim-syntax visualization vorbis wavpack wifi wma wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xscreensaver 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="efi-64" INPUT_DEVICES="keyboard mouse evdev" 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_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-sound/amarok-2.8.0-r3::gentoo was built with the following:
USE="cdda handbook ipod ofa opengl utils (-aqua) -debug -embedded -lastfm -mp3tunes -mtp -test" ABI_X86="64" LINGUAS="de -bs -ca -ca@valencia -cs -da -el -en_GB -es -et -eu -fi -fr -ga -gl -hu -it -ja -lt -lv -nb -nl -pa -pl -pt -pt_BR -ro -ru -sl -sr -sr@ijekavian -sr@ijekavianlatin -sr@latin -sv -tr -uk -zh_CN -zh_TW"
Comment 1 Till Schäfer 2015-11-27 12:40:27 UTC
Created attachment 418008 [details]
build.log
Comment 2 Till Schäfer 2015-11-27 13:06:15 UTC
This is related to the use flag embedded. If I enable it, amarok builds here.
Comment 3 Matt Whitlock 2015-12-02 20:55:57 UTC
Created attachment 418404 [details, diff]
amarok-2.8.90-fix-cmake-MySQLEmbedded.patch

The test for MySQL Embedded in cmake/modules/FindMySQLAmarok.cmake is incorrect, as it depends on `mysql_config --libmysqld-libs` having no output in the case that MySQL Embedded is not supported, but actually mysql_config outputs usage help in this case because '--libmysqld-libs' is not a recognized option.

Attached is a patch that corrects the CMake test and allows Amarok to build without MySQL Embedded.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2015-12-06 09:55:12 UTC
(In reply to Matt Whitlock from comment #3)
> Created attachment 418404 [details, diff] [details, diff]
> amarok-2.8.90-fix-cmake-MySQLEmbedded.patch
> 
> The test for MySQL Embedded in cmake/modules/FindMySQLAmarok.cmake is
> incorrect, as it depends on `mysql_config --libmysqld-libs` having no output
> in the case that MySQL Embedded is not supported, but actually mysql_config
> outputs usage help in this case because '--libmysqld-libs' is not a
> recognized option.
> 
> Attached is a patch that corrects the CMake test and allows Amarok to build
> without MySQL Embedded.

Any idea if this Gentoo-specific, or is this patch fine to send upstream?
Comment 5 Matt Whitlock 2015-12-06 17:16:58 UTC
(In reply to Michael Palimaka (kensington) from comment #4)
> Any idea if this Gentoo-specific, or is this patch fine to send upstream?

It should be fine to send upstream, assuming mysql_config always returns a non-zero exit code when libmysqld is not supported.

Hopefully upstream will correct the indentation inside the newly introduced "if" block. (I left it unindented to minimize the diff.)
Comment 6 Till Schäfer 2015-12-07 13:18:09 UTC
THX for the patch. However, it still fails to build here: 

/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native -O2 -pipe -ggdb  -fmessage-length=0 -Wl,--as-needed -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wl,--enable-new-dtags -Wl,--no-undefined -lc  -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,amarok_collection-mysqlcollection.so -o ../../../../../../lib/amarok_collection-mysqlcollection.so CMakeFiles/amarok_collection-mysqlcollection.dir/amarok_collection-mysqlcollection_automoc.cpp.o CMakeFiles/amarok_collection-mysqlcollection.dir/MySqlCollectionFactory.cpp.o CMakeFiles/amarok_collection-mysqlcollection.dir/MySqlQueryMaker.cpp.o ../../../../../../lib/libamarok-sqlcollection.so.1.0.0 ../../../../../../lib/libamaroklib.so.1.0.0 /usr/lib64/qt4/libQtCore.so -lpthread /usr/lib64/qt4/libQtGui.so -L/usr/lib64/mysql -lmysqld -lpthread -ldl -lz -lcrypt -lpthread ../../../../../../lib/libamarokcore.so.1.0.0 /usr/lib64/qt4/libQtGui.so /usr/lib64/libkdecore.so.5.14.14 -lpthread /usr/lib64/qt4/libQtDBus.so /usr/lib64/qt4/libQtCore.so -Wl,-rpath,/var/tmp/portage/media-sound/amarok-2.8.90/work/amarok-2.8.90_build/lib:/usr/lib64/qt4: -Wl,-rpath-link,/var/tmp/portage/media-sound/amarok-2.8.90/work/amarok-2.8.90_build/lib 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqld
collect2: error: ld returned 1 exit status
src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/build.make:156: recipe for target 'lib/amarok_collection-mysqlcollection.so' failed
make[2]: *** [lib/amarok_collection-mysqlcollection.so] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-sound/amarok-2.8.90/work/amarok-2.8.90_build'
CMakeFiles/Makefile2:2013: recipe for target 'src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/all' failed
make[1]: *** [src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Comment 7 Till Schäfer 2015-12-07 13:19:55 UTC
Created attachment 418718 [details]
build.log for with patch applied
Comment 8 Matt Whitlock 2015-12-07 14:32:59 UTC
(In reply to Till Schäfer from comment #6)
> THX for the patch. However, it still fails to build here

Is your dev-db/mysql installed with USE="embedded"?

What is the output of "mysql_client"?

Do you have a /usr/lib*/libmysqld.so?
Comment 9 Till Schäfer 2015-12-07 17:22:18 UTC
(In reply to Matt Whitlock from comment #8)
> (In reply to Till Schäfer from comment #6)
> > THX for the patch. However, it still fails to build here
> 
> Is your dev-db/mysql installed with USE="embedded"?
nope, and i have mariadb installed: 

$ eix -e mariadb
[I] dev-db/mariadb
     Available versions:  ~5.5.46^d 10.0.21(0/18)^td ~10.0.21-r1(0/18)^td 10.0.22(0/18)^td ~10.0.22-r1(0/18)^td ~10.1.8(0/18)^td ~10.1.9(0/18)^td {bindist client-libs cluster +community cracklib debug embedded extraengine galera innodb-lz4 innodb-lzo innodb-snappy jemalloc latin1 libressl max-idx-128 minimal mroonga odbc +openssl oqgraph pam +perl profiling selinux +server sphinx ssl sst-rsync sst-xtrabackup static static-libs systemd systemtap tcmalloc test tokudb +tools xml yassl ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  10.0.22^d(14:13:17 27.11.2015)(openssl pam perl -bindist -debug -embedded -extraengine -jemalloc -latin1 -libressl -minimal -odbc -oqgraph -profiling -selinux -sphinx -static -static-libs -systemtap -tcmalloc -test -tokudb -xml -yassl ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            http://mariadb.org/
     Description:         An enhanced, drop-in replacement for MySQL



> What is the output of "mysql_client"?
There is no such executable here. Is it the same as mysql_client_test? In this case: 

# mysql_client_test


#####################################
client_connect  
#####################################

 [MySQL] connection failed
 Establishing a connection to '' ...
 Check the connection options using --help or -?

> 
> Do you have a /usr/lib*/libmysqld.so?
no 

# l /usr/lib32/libmysqld.so
ls: cannot access /usr/lib32/libmysqld.so: No such file or directory
# l /usr/lib64/libmysqld.so
ls: cannot access /usr/lib64/libmysqld.so: No such file or directory
Comment 10 Matt Whitlock 2015-12-07 18:32:56 UTC
(In reply to Till Schäfer from comment #9)
> (In reply to Matt Whitlock from comment #8)
> > What is the output of "mysql_client"?
> There is no such executable here.

Oh, I'm sorry. That was a typo. I meant "mysql_config".
Comment 11 Andreas Sturmlechner gentoo-dev 2015-12-07 18:38:31 UTC
(In reply to Till Schäfer from comment #9)
> > 
> > Do you have a /usr/lib*/libmysqld.so?
> no 

If you had that file, it would be /usr/lib*/mysql/libmysqld.so
Comment 12 Till Schäfer 2015-12-07 19:43:13 UTC
$ mysql_config 
Usage: /usr/bin/mysql_config [OPTIONS]
Options:
        --cflags         [-I/usr/include/mysql -I/usr/include/mysql/..]
        --include        [-I/usr/include/mysql -I/usr/include/mysql/..]
        --libs           [-L/usr/lib64 -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl]
        --libs_r         [-L/usr/lib64 -lmysqlclient_r -lpthread -lz -lm -lssl -lcrypto -ldl]
        --plugindir      [/usr/lib64/mysql/plugin]
        --socket         [/var/run/mysqld/mysqld.sock]
        --port           [0]
        --version        [10.0.22]
        --libmysqld-libs [-L/usr/lib64/mysql -lmysqld]
        --variable=VAR   VAR is one of:
                pkgincludedir [/usr/include/mysql]
                pkglibdir     [/usr/lib64]
                plugindir     [/usr/lib64/mysql/plugin]


# l /usr/lib*/mysql/
/usr/lib/mysql/:
total 188K
drwxr-xr-x   3 root root 4.0K 27. Nov 14:13 .
drwxr-xr-x 155 root root 176K  7. Dez 12:33 ..
drwxr-xr-x   2 root root 4.0K 27. Nov 14:13 plugin

/usr/lib64/mysql/:
total 188K
drwxr-xr-x   3 root root 4.0K 27. Nov 14:13 .
drwxr-xr-x 155 root root 176K  7. Dez 12:33 ..
drwxr-xr-x   2 root root 4.0K 27. Nov 14:13 plugin

also locate -i libmysqld.so returned nothing

 => still no :-)
Comment 13 Matt Whitlock 2015-12-07 23:43:35 UTC
(In reply to Till Schäfer from comment #12)
>  => still no :-)

So your dev-db/mariadb[embedded] is installed incorrectly. That's not a bug in Amarok's build process.

Maybe the ebuild for dev-db/mariadb removes libmysqld improperly (i.e., removes the file after the build rather than disabling it from being built in the first place).
Comment 14 Matt Whitlock 2015-12-07 23:44:42 UTC
(In reply to Matt Whitlock from comment #13)
> dev-db/mariadb[embedded]

Sorry, I meant [-embedded]. With that flag disabled, mysql_config shouldn't even know what --libmysqld-libs means.
Comment 15 Till Schäfer 2015-12-09 14:07:13 UTC
I have created a separate bug report for the mysql_config issue: Bug #567858

However, should we really rely on autodetection here if we have a separate use flag for embedded? I mean, amarok only enforces the installation of mysql with embedded enabled, but it is also possible to install mysql with embedded enabled and amarok with embedded disabled. In this situation the useflag is disabled, but the feature is still compiled in, or am i wrong? 

Beside the unexpected behavior from a user perspective:  If I disable the embedded useflag for mysql later, this will cause a breakage of the current amarok installation. Furthermore portage is unable to detect the necessary rebuild on a dependency level. I need to run revdep-rebuild.
Comment 16 Matt Whitlock 2015-12-15 06:00:16 UTC
Okay, so I upgraded to dev-db/mysql-5.6.28, and now my mysql_config lies about libmysqld, just like yours does, and now Amarok fails to build for me because it can't find -lmysqld even though it shouldn't be trying to link against that library anyway since USE="-embedded". Gah!
Comment 17 Matt Whitlock 2015-12-15 06:16:32 UTC
Created attachment 419248 [details, diff]
amarok-2.8.90-respect-use-embedded.patch

This patch makes Amarok's MySQL collection attempt to link against -lmysqld only if USE="embedded".
Comment 18 Till Schäfer 2015-12-15 14:41:45 UTC
patch works here. THX again
Comment 19 Sven Eden 2016-02-03 13:40:09 UTC
I put the patch into
/etc/portage/patches/media-sound/amarok-2.8.90/amarok-2.8.90-respect-use-embedded.patch
(I removed the tilde on the first line)
and emerge nicely enough applied the patch and the merge ran through just fine.

Thanks alot!
Comment 20 Johannes Huber (RETIRED) gentoo-dev 2016-03-29 12:22:10 UTC
@Matt Whitlock could you please send the patch to upstream (git.reviewboard.kde.org)?
Comment 21 Matt Whitlock 2016-03-29 16:26:54 UTC
(In reply to Johannes Huber from comment #20)
> @Matt Whitlock could you please send the patch to upstream
> (git.reviewboard.kde.org)?

https://git.reviewboard.kde.org/r/127523/
Comment 22 Matt Whitlock 2016-03-30 03:16:11 UTC
Would someone else please respond to Myriam's comment on the KDE review request? I don't want it to come across as though I'm making this request only on my own behalf.
Comment 23 Johannes Huber (RETIRED) gentoo-dev 2016-03-30 15:31:57 UTC
(In reply to Matt Whitlock from comment #22)
> Would someone else please respond to Myriam's comment on the KDE review
> request? I don't want it to come across as though I'm making this request
> only on my own behalf.

You have got already positive replies to Myriam's comment. :)
Comment 24 jms 2016-04-12 09:15:15 UTC
got the same problem with
Emerging media-sound/amarok-2.8.90 currently results in a build failure here: 

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqld
collect2: error: ld returned 1 exit status


I have mysql with -embedded 
eix -e mysql
[I] dev-db/mysql
     Available versions:  (~)5.5.47^d (~)5.5.48^d 5.6.28(0/18)^t (~)5.6.29(0/18)^t {bindist cluster +community debug embedded extraen+perl profiling selinux +server ssl static static-libs systemtap tcmalloc test yassl ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390=
     Installed versions:  5.6.29(18:25:06 12/02/2016)(openssl perl server -debug -embedded -extraengine -jemalloc -latin1 -libressl -c -test -yassl ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            http://www.mysql.com/
     Description:         A fast, multi-threaded, multi-user SQL database server

[I] virtual/mysql
     Available versions:  (~)5.5-r1 5.6-r6(0/18) (~)5.6-r7(0/18) (~)5.6-r8(0/18) {embedded minimal static static-libs ABI_MIPS="n32 n"}
     Installed versions:  5.6-r8(09:35:09 10/03/2016)(-embedded -static)
     Description:         Virtual for MySQL database server

I did try to use 
amarok-2.8.90-fix-cmake-MySQLEmbedded.patch
amarok-2.8.90-respect-use-embedded.patch

following
https://wiki.gentoo.org/wiki//etc/portage/patches

but couldn't apply it

[[32;01m * ^[[39;49;00mPackage:    media-sound/amarok-2.8.90
^[[32;01m * ^[[39;49;00mRepository: kde
^[[32;01m * ^[[39;49;00mMaintainer: jmbsvicetto@gentoo.org kde@gentoo.org,sound@gentoo.org
^[[32;01m * ^[[39;49;00mUSE:        abi_x86_64 amd64 cdda elibc_glibc ipod kernel_linux lastfm linguas_en_GB linguas_es linguas_fr mtp ofa opengl userland_GNU utils
^[[32;01m * ^[[39;49;00mFEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking amarok-2.8.90.tar.xz to /var/tmp/portage/media-sound/amarok-2.8.90/work
>>> Source unpacked in /var/tmp/portage/media-sound/amarok-2.8.90/work
>>> Preparing source in /var/tmp/portage/media-sound/amarok-2.8.90/work/amarok-2.8.90 ...
>>> Enabling languages:  en_GB es fr
 ^[[32;01m*^[[0m Applying amarok-2.8.0-taglib110.patch ...
^[[A^[[125C ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying patches from /etc/portage/patches/media-sound/amarok-2.8.90 ...
 ^[[32;01m*^[[0m   amarok-2.8.90-fix-cmake-MySQLEmbedded.patch ...
The text leading up to this was:
--------------------------
|--- cmake/modules/FindMySQLAmarok.cmake~       2015-06-11 05:24:42.000000000 +0000
|+++ cmake/modules/FindMySQLAmarok.cmake        2015-12-02 20:47:45.710063206 +0000
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
^[[A^[[125C ^[[34;01m[ ^[[31;01m!!^[[34;01m ]^[[0m
 ^[[31;01m*^[[0m ERROR: media-sound/amarok-2.8.90::kde failed (prepare phase):
 ^[[31;01m*^[[0m   patch -p1  failed with /etc/portage/patches/media-sound/amarok-2.8.90/amarok-2.8.90-fix-cmake-MySQLEmbedded.patch
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m               ebuild.sh, line  133:  Called src_prepare
 ^[[31;01m*^[[0m             environment, line 4106:  Called kde4-base_src_prepare
 ^[[31;01m*^[[0m             environment, line 3127:  Called cmake-utils_src_prepare
 ^[[31;01m*^[[0m             environment, line 1214:  Called _cmake_execute_optionally 'src_prepare'
 ^[[31;01m*^[[0m             environment, line  599:  Called enable_cmake-utils_src_prepare
 ^[[31;01m*^[[0m             environment, line 1648:  Called default_src_prepare
 ^[[31;01m*^[[0m      phase-functions.sh, line  870:  Called __eapi6_src_prepare
 ^[[31;01m*^[[0m             environment, line  394:  Called eapply_user
 ^[[31;01m*^[[0m             environment, line 1414:  Called eapply '/etc/portage/patches/media-sound/amarok-2.8.90'
 ^[[31;01m*^[[0m             environment, line 1391:  Called _eapply_patch '/etc/portage/patches/media-sound/amarok-2.8.90/amarok-2.8.90-fix-cmake-MySQLEmbedded.patch' '  '
 ^[[31;01m*^[[0m             environment, line 1333:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/media-sound/amarok-2.8.90/amarok-2.8.90-fix-cmake-MySQLEmbedded.patch'
 ^[[31;01m*^[[0m   isolated-functions.sh, line  117:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m                die "$@"

is it me?my settings?the fact it's an overlay?the patches?
Comment 25 Johannes Huber (RETIRED) gentoo-dev 2016-04-12 17:43:20 UTC
Thanks. This is fixed now in git. Patch pushed upstream. Please sync.

https://gitweb.gentoo.org/proj/kde.git/commit/?id=01c937900910b60d2c59095de0aab41511bb7555
Comment 26 jms 2016-04-12 21:01:38 UTC
 Thanks!
works perfect