diff options
author | Paul de Vrieze <pauldv@gentoo.org> | 2006-05-20 13:17:54 +0000 |
---|---|---|
committer | Paul de Vrieze <pauldv@gentoo.org> | 2006-05-20 13:17:54 +0000 |
commit | b75f9c798d4c77337bfdea17eb580faccdd6d10a (patch) | |
tree | eead0b04f23be1b8b57c9c8e6725c7914ffd9560 /eclass/db-use.eclass | |
parent | Version bump. (diff) | |
download | historical-b75f9c798d4c77337bfdea17eb580faccdd6d10a.tar.gz historical-b75f9c798d4c77337bfdea17eb580faccdd6d10a.tar.bz2 historical-b75f9c798d4c77337bfdea17eb580faccdd6d10a.zip |
Check existence of the library file too
Diffstat (limited to 'eclass/db-use.eclass')
-rw-r--r-- | eclass/db-use.eclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/db-use.eclass b/eclass/db-use.eclass index 2bf5d15bd73d..3fa2053bce10 100644 --- a/eclass/db-use.eclass +++ b/eclass/db-use.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/db-use.eclass,v 1.4 2006/05/19 19:58:46 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/db-use.eclass,v 1.5 2006/05/20 13:17:54 pauldv Exp $ # This is a common location for functions that aid the use of sys-libs/db inherit versionator multilib @@ -95,8 +95,10 @@ db_libname() { for x in $@ do if VER=$(db_findver "=sys-libs/db-${x}*"); then - echo -n "db-${VER}" - return 0 + if [ -e "/usr/$(get_libdir)/libdb-${VER}.so" ]; then + echo -n "db-${VER}" + return 0 + fi fi done eerror "No suitable db version found" >&2 |