summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-09-02 08:41:16 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-09-02 08:41:16 +0000
commit9b18bb4a7e2ee1eb99b026f01692171073d1014c (patch)
tree38fe7c4fd50532fff6d9b734e1ba2f0ca9d6f108 /eclass
parentVersion bump, bugfix for 26987 (diff)
downloadhistorical-9b18bb4a7e2ee1eb99b026f01692171073d1014c.tar.gz
historical-9b18bb4a7e2ee1eb99b026f01692171073d1014c.tar.bz2
historical-9b18bb4a7e2ee1eb99b026f01692171073d1014c.zip
add some more symlink stuff to db_fix_so in the eclass, and remove the old broken leftover parts from ebuild
Diffstat (limited to 'eclass')
-rw-r--r--eclass/db.eclass17
1 files changed, 16 insertions, 1 deletions
diff --git a/eclass/db.eclass b/eclass/db.eclass
index 4c380c70f321..2649f0f793d2 100644
--- a/eclass/db.eclass
+++ b/eclass/db.eclass
@@ -1,5 +1,5 @@
# This is a common location for functions used in the sys-libs/db ebuilds
-# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.3 2003/08/21 11:04:54 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.4 2003/09/02 08:41:16 robbat2 Exp $
ECLASS=db
INHERITED="$INHERITED $ECLASS"
@@ -10,6 +10,7 @@ db_fix_so () {
# first clean up old symlinks
find ${ROOT}/usr/lib -type l -name 'libdb*.so' -exec rm \{} \;
+ find ${ROOT}/usr/lib -type l -name 'libdb*.so.[23]' -exec rm \{} \;
find ${ROOT}/usr/lib -type l -name 'libdb*.a' -exec rm \{} \;
# now rebuild all the correct ones
@@ -20,6 +21,20 @@ db_fix_so () {
done;
done;
+ # db[23] gets some extra-special stuff
+ if [ -f libdb1.so.2 ]; then
+ ln -sf libdb1.so.2 libdb.so.2
+ ln -sf libdb1.so.2 libdb1.so
+ ln -sf libdb1.so.2 libdb-1.so
+ fi
+ # what do we do if we ever get 3.3 ?
+ for i in libdb libdb_cxx libdb_tcl libdb_java; do
+ if [ -f $i-3.2.so ]; then
+ ln -sf $i-3.2.so $i-3.so
+ ln -sf $i-3.2.so $i.so.3
+ fi
+ done
+
# do the same for headers now
# but since there are only two of them, just overwrite them
cd ${ROOT}/usr/include