summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-09-15 06:22:18 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-09-15 06:22:18 +0000
commit6b5479503e8b4b6a0a371ca771dfb4fbb2c6a425 (patch)
treeaa603211f876d447885ae2bf9247407b5f55a3ce /net-mail
parentBump. (diff)
downloadgentoo-2-6b5479503e8b4b6a0a371ca771dfb4fbb2c6a425.tar.gz
gentoo-2-6b5479503e8b4b6a0a371ca771dfb4fbb2c6a425.tar.bz2
gentoo-2-6b5479503e8b4b6a0a371ca771dfb4fbb2c6a425.zip
Fix bug #134943 - compile failure with newer versions of berkdb.
(Portage version: 2.1.1)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/courier-imap/ChangeLog8
-rw-r--r--net-mail/courier-imap/courier-imap-4.0.6.ebuild6
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-db4-bdbobj_configure.in.patch35
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-db4-configure.in.patch42
4 files changed, 87 insertions, 4 deletions
diff --git a/net-mail/courier-imap/ChangeLog b/net-mail/courier-imap/ChangeLog
index 1b05ca4f0c0e..d9a71a36bd10 100644
--- a/net-mail/courier-imap/ChangeLog
+++ b/net-mail/courier-imap/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-mail/courier-imap
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/ChangeLog,v 1.135 2006/09/05 03:30:00 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/ChangeLog,v 1.136 2006/09/15 06:22:18 robbat2 Exp $
+
+ 15 Sep 2006; Robin H. Johnson <robbat2@gentoo.org>
+ +files/courier-imap-4.0.6-db4-bdbobj_configure.in.patch,
+ +files/courier-imap-4.0.6-db4-configure.in.patch,
+ courier-imap-4.0.6.ebuild:
+ Fix bug #134943 - compile failure with newer versions of berkdb.
05 Sep 2006; Joshua Kinard <kumba@gentoo.org> courier-imap-4.0.4.ebuild:
Marked stable on mips.
diff --git a/net-mail/courier-imap/courier-imap-4.0.6.ebuild b/net-mail/courier-imap/courier-imap-4.0.6.ebuild
index edb8de3b0457..f05ffa7d2fad 100644
--- a/net-mail/courier-imap/courier-imap-4.0.6.ebuild
+++ b/net-mail/courier-imap/courier-imap-4.0.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/courier-imap-4.0.6.ebuild,v 1.2 2006/08/25 21:17:57 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/courier-imap-4.0.6.ebuild,v 1.3 2006/09/15 06:22:18 robbat2 Exp $
inherit eutils gnuconfig
IUSE="fam berkdb gdbm debug ipv6 nls selinux"
@@ -71,8 +71,8 @@ src_unpack() {
# These patches should fix problem detecting Berkeley DB.
# We now can compile with db4 support.
if use berkdb; then
- epatch ${FILESDIR}/${PN}-4.0.1-db4-bdbobj_configure.in.patch
- epatch ${FILESDIR}/${PN}-4.0.1-db4-configure.in.patch
+ epatch ${FILESDIR}/${PN}-4.0.6-db4-bdbobj_configure.in.patch
+ epatch ${FILESDIR}/${PN}-4.0.6-db4-configure.in.patch
fi
export WANT_AUTOCONF="2.5"
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-db4-bdbobj_configure.in.patch b/net-mail/courier-imap/files/courier-imap-4.0.6-db4-bdbobj_configure.in.patch
new file mode 100644
index 000000000000..b2c802c548bf
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-db4-bdbobj_configure.in.patch
@@ -0,0 +1,35 @@
+--- courier-imap-3.0.7-orig/bdbobj/configure.in 2001-09-18 18:26:28.000000000 -0700
++++ courier-imap-3.0.7/bdbobj/configure.in 2004-08-14 16:15:08.469316646 -0700
+@@ -21,15 +21,23 @@
+ dnl Checks for libraries.
+
+ saveLIBS="$LIBS"
+-AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
+- AC_CHECK_LIB(db, db_env_create, [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
+- ))
+-
+-FOUND_DB=0
+-AC_CHECK_FUNC(dbopen, FOUND_DB=1)
+-AC_CHECK_FUNC(db_open, FOUND_DB=1)
+-AC_CHECK_FUNC(db_env_create, FOUND_DB=1)
++for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
++ do
++ AC_CHECK_LIB($dbname, db_create_4004, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4003, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))))
++
++ done
++FOUND_DB=0
++AC_CHECK_FUNC(db_create_4004, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4003, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4002, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4001, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4000, FOUND_DB=1)
++AC_CHECK_FUNC(db_create, FOUND_DB=1)
+
+ LIBS="$saveLIBS"
+
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-db4-configure.in.patch b/net-mail/courier-imap/files/courier-imap-4.0.6-db4-configure.in.patch
new file mode 100644
index 000000000000..8f6e40693a9f
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-db4-configure.in.patch
@@ -0,0 +1,42 @@
+--- configure.in.orig 2004-11-16 16:02:11.045791896 -0800
++++ configure.in 2004-11-16 16:03:06.743324584 -0800
+@@ -11,7 +11,6 @@
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+-AC_PROG_SYSCONFTOOL
+ AC_LIBTOOL_DLOPEN
+ AM_PROG_LIBTOOL
+
+@@ -150,16 +149,22 @@
+
+ if test "$db" != "gdbm"
+ then
++ for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
++ do
++ AC_CHECK_LIB($dbname, db_create_4004, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4003, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))))
++ done
++ AC_CHECK_FUNC(db_create_4004, HAVE_BDB=1)
++ AC_CHECK_FUNC(db_create_4003, HAVE_BDB=1)
++ AC_CHECK_FUNC(db_create_4002, HAVE_BDB=1)
++ AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1)
++ AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1)
++ AC_CHECK_FUNC(db_create, HAVE_BDB=1)
+
+- AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
+- AC_CHECK_LIB(db, db_env_create,
+- [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
+- ))
+-
+- AC_CHECK_FUNC(dbopen, HAVE_BDB=1)
+- AC_CHECK_FUNC(db_open, HAVE_BDB=1)
+- AC_CHECK_FUNC(db_env_create, HAVE_BDB=1)
+ fi
+
+ LIBS="$saveLIBS"