MySQL has sys-libs/libaio listed in DEPEND but not in RDEPEND. When installing from source, there is no difference. But when installing dev-db/mysql from binary packages (we have several servers with equal hardware), only RDEPEND is used and libaio is not seen as a dependancy. mysql-server does not start without libaio installed. Maybe the (kind of useless) line 'RDEPEND="${RDEPEND}"' should read 'RDEPEND="${DEPEND}"' instead. # emerge -pv mysql These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-libs/libaio-0.3.109-r3 USE="(-multilib) -static-libs" 43 kB [ebuild U ~] dev-db/mysql-5.5.28 [5.1.66] USE="community perl profiling ssl -berkdb -cluster -debug -embedded -extraengine -jemalloc% -latin1 -max-idx-128 -minimal (-selinux) -static -systemtap% -tcmalloc% {-test} (-big-tables%) (-pbxt%) (-xtradb%)" 25,952 kB [ebuild U ~] virtual/mysql-5.5 [5.1] USE="-embedded -minimal -static" 0 kB Total: 3 packages (2 upgrades, 1 new), Size of downloads: 25,995 kB # emerge -pv --usepkg mysql These are the packages that would be merged, in order: Calculating dependencies... done! [binary U ~] dev-db/mysql-5.5.28 [5.1.66] USE="community perl profiling ssl -berkdb -cluster -debug -embedded -extraengine -jemalloc% -latin1 -max-idx-128 -minimal (-selinux) -static -systemtap% -tcmalloc% {-test} (-big-tables%) (-pbxt%) (-xtradb%)" 0 kB [binary U ~] virtual/mysql-5.5 [5.1] USE="-embedded -minimal -static" 0 kB Total: 2 packages (2 upgrades, 2 binaries), Size of downloads: 0 kB
Created attachment 333650 [details, diff] mysql-v2 eclass patch The problem occurs in eclass/mysql-v2.eclass. New dependancies were added below the RDEPEND line which should be above it. The attached patch should fix the issue. Also posted in my personal overlay https://github.com/grknight/gentoo-mysql
InCVS