summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorPaul de Vrieze <pauldv@gentoo.org>2006-05-20 13:17:54 +0000
committerPaul de Vrieze <pauldv@gentoo.org>2006-05-20 13:17:54 +0000
commit8f615aefe64fbc29af55baf6eb59036f34878760 (patch)
tree31d59714af101cd25c7c22b519b8a05575055923 /eclass
parentVersion bump. (diff)
downloadgentoo-2-8f615aefe64fbc29af55baf6eb59036f34878760.tar.gz
gentoo-2-8f615aefe64fbc29af55baf6eb59036f34878760.tar.bz2
gentoo-2-8f615aefe64fbc29af55baf6eb59036f34878760.zip
Check existence of the library file too
Diffstat (limited to 'eclass')
-rw-r--r--eclass/db-use.eclass8
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