Created attachment 336564 [details] try searching dynamic library with all possible extension Currently db-use.class in portage overlay assumes that the extension of dynamic library is .so, therefore db library weren't found on my OS X laptop, on which platform the correct extension is .dylib. I made a little fix and attached patch. The list of extensions is copied from db.eclass.
Thanks! We could also use get_libname() from multilib.eclass, that would cover even more cases. I applied this one: --- db-use.eclass (revision 61535) +++ db-use.eclass (working copy) @@ -89,7 +89,7 @@ db_libname() { if [ $# -eq 0 ]; then VER="$(db_findver sys-libs/db)" || return 1 - if [ -e "${EPREFIX}/usr/$(get_libdir)/libdb-${VER}.so" ]; then + if [ -e "${EPREFIX}/usr/$(get_libdir)/libdb-${VER}$(get_libname)" ]; then echo -n "db-${VER}" return 0 else @@ -101,7 +101,7 @@ for x in $@ do if VER=$(db_findver "=sys-libs/db-${x}*"); then - if [ -e "${EPREFIX}/usr/$(get_libdir)/libdb-${VER}.so" ]; then + if [ -e "${EPREFIX}/usr/$(get_libdir)/libdb-${VER}$(get_libname)" ]; then echo -n "db-${VER}" return 0 fi