All mysql ebuilds using mysql.eclass install their header and shared librarie files into the wrong paths. The headers are installed in '/usr/include/mysql-VERSION/mysql' and the libraries in '/usr/lib/mysql-VERSION/mysql' where 'VERSION is the major/minor-version of the installed mysql. I guess this is not intended and the right directories are /usr/include/mysql-VERSION and /usr/lib/mysql-VERSION Build 2006-02-18 on Linux 2.6.14 The ebuild with which I first encountered the bug was mysql-5.0.18-r30 but mysql-4.1.18-r30 showed the same behavior. The bug is caused by the sed skript in line 372 of mysql.eclass: find . -name 'Makefile' \ -exec sed --in-place \ -e 's|^pkglibdir\s*=\s*$(libdir)/mysql|pkglibdir = $(libdir)|' \ -e 's|^pkgincludedir\s*=\s*$(includedir)/mysql|pkgincludedir = $(includedir)|' \ {} \; At least some implementations of sed seem not to support '\s' so that the lines in the makefile are not replaced and the files get installed in the wrong path. I used GNU sed Version 4.0.7.
gnu sed version 4 should be really ok, please post the output of "emerge --info && sed --version"
also the output of "equery f dev-db/mysql" could be interesting. may be you had a broken file system, i.e. the previous mysql de-installed badly, this is a know (and hopefully now resolved) bug.
Created attachment 80197 [details] emerge --info
Created attachment 80198 [details] sed --version
I included the output of emerge --info and sed --version as attachments. I could fix the problem on my system by replacing the '\s*' with normal space characters in the sed skript on line 372 following of mysql.eclass. The downside is that it won't recognise the line any more if it contains multiple spaces. ' \+' might do the trick, but i didn't test that myself, yet.
(In reply to comment #2) > also the output of "equery f dev-db/mysql" could be interesting. > > may be you had a broken file system, i.e. the previous mysql de-installed > badly, this is a know (and hopefully now resolved) bug. > I allready fixed the bug on my system, so this output shouldn't be too interesting. Before the fix, the files in the wrong subdirectory belonged to the package like one should expect.
mysql slotted has been retired, closing as fixed