diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-09-02 08:44:43 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-09-02 08:44:43 +0000 |
commit | a8a0026817b853460da682f9aa868e65e4b23a79 (patch) | |
tree | bccec7157c283d3767ab42069cb6ab3dfa426c21 /eclass | |
parent | add some more symlink stuff to db_fix_so in the eclass, and remove the old br... (diff) | |
download | gentoo-2-a8a0026817b853460da682f9aa868e65e4b23a79.tar.gz gentoo-2-a8a0026817b853460da682f9aa868e65e4b23a79.tar.bz2 gentoo-2-a8a0026817b853460da682f9aa868e65e4b23a79.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.eclass | 17 |
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 |