After upgrading to mysql-5.1.58 a number of applications are added to the preserved-rebuild set. However, they fail to emerge because they can't find mysql.h. Additionally, mysql itself gets added to the same set after the upgrade, where is remains even after re-emerging. The missing header file is actually installed, but at /usr/include/mysql/mysql/mysql.h which is not where other applications are looking for it. Problem presumably related to the definition in /usr/portage/eclass/mysql.eclass where the includedir is defined as MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"} (line 367) beneath which another layer of nesting is added by the upgrade installation. Reproducible: Always
(In reply to comment #0) Bugs 375063 and 375083 appear to describe the same problem.
(In reply to comment #0) This is now fixed. When mysql-5.1.58 was re-emerged the include files were installed correcty under /usr/include/mysql (previously /usr/include/mysql/mysql) and there are no applications added to the preserved-rebuild set. mysql.h is findable at /usr/include/mysql/mysql.h
*** This bug has been marked as a duplicate of bug 341853 ***
This one is defintely related to mysql-5.1.58 and not mariadb. *** This bug has been marked as a duplicate of bug 375063 ***