I've tried this with mysql-5.0.30 and 5.0.26-r1, but it's probably something to do with the eclass: $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.55 2007/01/03 15:27:13 vivo Exp $ The problem is that after installing mysql there are no symlinks to libmysqlclient* in /usr/lib. The libs are present in /usr/lib/mysql. This causes for instance postfix, tpop3d and php to fail at run-time. It also causes postfix to fail at compile-time. The forums suggest adding -mysql to package.use. I'm using that work around for tpop3d and postfix, but I really need mysql support in php. Some background info on what I was doing when I ran into this: I updated my system and noticed that I had two dev-db/mysql-5.x versions installed. I uninstalled both and reinstalled mysql-5.0.30. Then I noticed that postfix could not find the mysql libs and also that I didn't have any mysql init scripts anymore. After a while I found out I also had to install sys-apps/mysql to get the init scripts. So now I have only the problem with the libs left.
quick workaround put : LDPATH="/usr/lib/mysql" into /etc/env.d/99mysql and run env-update
Actually .. this is prolly better .. since you need to create the symlinks anyway .. ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so.15 ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so.15.0 ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so.15.0.0 ln -s /usr/lib/mysql/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so ln -s /usr/lib/mysql/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so.15 ln -s /usr/lib/mysql/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so.15.0 ln -s /usr/lib/mysql/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so.15.0.0
fixed, the symlinks are now created inside src_install() and sorry for the problem with sys-apps/mysql, it's fixed too (with RDEPEND)