summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul de Vrieze <pauldv@gentoo.org>2003-05-25 21:06:23 +0000
committerPaul de Vrieze <pauldv@gentoo.org>2003-05-25 21:06:23 +0000
commitde90cdb4945ec86f09f10feab3bf78becf36873e (patch)
tree3dc111d9df9a0174b7787aa881f431c8daca77b2 /eclass/db4-fix.eclass
parentVersion Bump (diff)
downloadgentoo-2-de90cdb4945ec86f09f10feab3bf78becf36873e.tar.gz
gentoo-2-de90cdb4945ec86f09f10feab3bf78becf36873e.tar.bz2
gentoo-2-de90cdb4945ec86f09f10feab3bf78becf36873e.zip
Make the fixing a bit more tollerant, should allow cyrus-sasl to build
with db4
Diffstat (limited to 'eclass/db4-fix.eclass')
-rw-r--r--eclass/db4-fix.eclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/db4-fix.eclass b/eclass/db4-fix.eclass
index 948541c2fd44..352e356b52dd 100644
--- a/eclass/db4-fix.eclass
+++ b/eclass/db4-fix.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/db4-fix.eclass,v 1.1 2003/05/24 14:38:06 pauldv Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/db4-fix.eclass,v 1.2 2003/05/25 21:06:23 pauldv Exp $
#
# Author: Paul de Vrieze <pauldv@gentoo.org>
#
@@ -32,13 +32,15 @@ dodb4-fix () {
einfo "fixing $1 to work with db-4 by appending ${postfix}"
cp $1 ${1}.cpy
cat ${1}.cpy \
- |sed -e "s;\( *AC_CHECK_LIB( *db4? *, db_[^ ,]*\);\1${postfix};" \
- -e "s/\( *AC_CHECK_LIB([^,]*, db_create\)\( *,\)/\1${postfix}\2/" \
+ |sed -e "s;\( *AC_CHECK_LIB( *db-?4? *, db_[^ ,]*\);\1${postfix};" \
+ -e "s/\(-l\|[ \t]\)\(db3\)\([ \t]\)/\1db-3\3/g" \
>${1} || die "sed failed"
+# -e "s/\( *AC_CHECK_LIB([^,]*, db_create\)\( *,\)/\1${postfix}\2/" \
+
autoconf
fi
else
einfo "db4 not found, so not applying db4 fixes"
fi
-} \ No newline at end of file
+}