summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-05-19 19:58:46 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-05-19 19:58:46 +0000
commitbc6f5694e45a50a95b08247e23296b1b0304b231 (patch)
tree1c31bd8a5f3c822b655448ca0d82557ec14e1dd8 /eclass
parentNew upstream version; Resolves Bug #117312; Added Emacs Herd to metadata.xml ... (diff)
downloadgentoo-2-bc6f5694e45a50a95b08247e23296b1b0304b231.tar.gz
gentoo-2-bc6f5694e45a50a95b08247e23296b1b0304b231.tar.bz2
gentoo-2-bc6f5694e45a50a95b08247e23296b1b0304b231.zip
Unbreak db_libname and make it multilib-compatible.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/db-use.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/db-use.eclass b/eclass/db-use.eclass
index bef01470ae8e..2bf5d15bd73d 100644
--- a/eclass/db-use.eclass
+++ b/eclass/db-use.eclass
@@ -1,9 +1,9 @@
# 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.3 2006/05/18 14:00:27 pauldv Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/db-use.eclass,v 1.4 2006/05/19 19:58:46 flameeyes Exp $
# This is a common location for functions that aid the use of sys-libs/db
-inherit versionator
+inherit versionator multilib
#Convert a version to a db slot
db_ver_to_slot() {
@@ -83,7 +83,7 @@ db_includedir() {
db_libname() {
if [ $# -eq 0 ]; then
VER="$(db_findver sys-libs/db)" || return 1
- if [ -e "/usr/lib/libdb-${VER}" ]; then
+ if [ -e "/usr/$(get_libdir)/libdb-${VER}.so" ]; then
echo -n "db-${VER}"
return 0
else