The ebuild for net-mail/vpopmail-5.4.16 has the mysql libdir hardcoded to /usr/lib/mysql. On every Gentoo system I have ever used mysql on this dir has been /var/lib/mysql, so I guess someone just mistyped the path here. This bug prevents vpopmail from building, changing the path to /var/lib/mysql fixes it again. Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge -v net-mail/vpopmail Actual Results: checks fail at finding mysql lib dir, emerge stops. Expected Results: Checks pass, vpopmail gets compiled and installed correctly.
--with-libdir is not the mysql datadir where databases are stored, but the directory where mysql client libraries needed at link time are stored...