diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2004-10-10 20:12:19 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2004-10-10 20:12:19 +0000 |
commit | cc3da238e5fa3ce9117d325a465515cfc603b952 (patch) | |
tree | 5f7676c11fb31f6f5956467f8d12679c5ad3f6cd /eclass | |
parent | Stable on alpha. (Manifest recommit) (diff) | |
download | gentoo-2-cc3da238e5fa3ce9117d325a465515cfc603b952.tar.gz gentoo-2-cc3da238e5fa3ce9117d325a465515cfc603b952.tar.bz2 gentoo-2-cc3da238e5fa3ce9117d325a465515cfc603b952.zip |
Update db_fix_so to also work with BSD find; closes bug #66998
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/db.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/db.eclass b/eclass/db.eclass index a3f0a1a42fe2..55bd7fceb12a 100644 --- a/eclass/db.eclass +++ b/eclass/db.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.eclass,v 1.11 2004/08/24 01:12:06 tester Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.12 2004/10/10 20:12:19 ka0ttic Exp $ # This is a common location for functions used in the sys-libs/db ebuilds ECLASS=db @@ -18,7 +18,7 @@ db_fix_so () { # now rebuild all the correct ones for ext in so a; do for name in libdb libdb_cxx libdb_tcl libdb_java; do - target=`find -type f -maxdepth 1 -name "${name}-*.${ext}" |sort -g |tail -n 1` + target=`find . -type f -maxdepth 1 -name "${name}-*.${ext}" |sort -g |tail -n 1` [ -n "${target}" ] && ln -sf ${target//.\//} ${name}.${ext} done; done; @@ -40,7 +40,7 @@ db_fix_so () { # do the same for headers now # but since there are only two of them, just overwrite them cd ${ROOT}/usr/include - target=`find -type d -maxdepth 1 -name 'db[0-9]*' | sort -g |cut -d/ -f2- | tail -n1` + target=`find . -type d -maxdepth 1 -name 'db[0-9]*' | sort -g |cut -d/ -f2- | tail -n1` if [ -n "${target}" ] && [ -e "${target}/db.h" ]; then ln -sf ${target}/db.h . ln -sf ${target}/db_185.h . |