pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/cyrus-imapd23 * Fix building with db5.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e10d0901c7ca
branches: trunk
changeset: 576184:e10d0901c7ca
user: obache <obache%pkgsrc.org@localhost>
date: Thu Jun 03 06:55:54 2010 +0000
description:
* Fix building with db5.
* Bump PKGREVISION for db4 ABI bump, because bdb option is enabled by default.
diffstat:
mail/cyrus-imapd23/Makefile | 3 +-
mail/cyrus-imapd23/distinfo | 3 +-
mail/cyrus-imapd23/options.mk | 4 +-
mail/cyrus-imapd23/patches/patch-ap | 51 +++++++++++++++++++++++++++++++++++++
4 files changed, 57 insertions(+), 4 deletions(-)
diffs (99 lines):
diff -r bb949f83993b -r e10d0901c7ca mail/cyrus-imapd23/Makefile
--- a/mail/cyrus-imapd23/Makefile Thu Jun 03 06:50:25 2010 +0000
+++ b/mail/cyrus-imapd23/Makefile Thu Jun 03 06:55:54 2010 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2010/05/22 12:05:10 obache Exp $
+# $NetBSD: Makefile,v 1.4 2010/06/03 06:55:54 obache Exp $
DISTNAME= cyrus-imapd-2.3.16
+PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/imap/ \
diff -r bb949f83993b -r e10d0901c7ca mail/cyrus-imapd23/distinfo
--- a/mail/cyrus-imapd23/distinfo Thu Jun 03 06:50:25 2010 +0000
+++ b/mail/cyrus-imapd23/distinfo Thu Jun 03 06:55:54 2010 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2010/02/11 08:27:09 obache Exp $
+$NetBSD: distinfo,v 1.2 2010/06/03 06:55:54 obache Exp $
SHA1 (cyrus-imapd-2.3.16.tar.gz) = decc87045bfedb449d0af3512aa228090e558036
RMD160 (cyrus-imapd-2.3.16.tar.gz) = fa9d1462a7d7e839da9a11f52cddfd2ab854f2be
@@ -18,3 +18,4 @@
SHA1 (patch-am) = d06b62f9ea153560d84ec013861839071e4ab700
SHA1 (patch-an) = b3ac809f2807a1766197958e807eb99cb42847f0
SHA1 (patch-ao) = 784363a1802cbaf08e62bbbd2020fe592be0a126
+SHA1 (patch-ap) = 4a794b806b20270e2b9b551bfae21352389e1352
diff -r bb949f83993b -r e10d0901c7ca mail/cyrus-imapd23/options.mk
--- a/mail/cyrus-imapd23/options.mk Thu Jun 03 06:50:25 2010 +0000
+++ b/mail/cyrus-imapd23/options.mk Thu Jun 03 06:55:54 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1.1.1 2010/02/11 08:27:09 obache Exp $
+# $NetBSD: options.mk,v 1.2 2010/06/03 06:55:54 obache Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.cyrus-imapd
@@ -58,7 +58,7 @@
.endif
.if !empty(PKG_OPTIONS:Mbdb)
-BDB_ACCEPTED= db4 db3
+BDB_ACCEPTED= db3 db4 db5
. include "../../mk/bdb.buildlink3.mk"
CONFIGURE_ARGS+= --with-bdb=${BDB_TYPE}
CONFIGURE_ARGS+= --with-bdb-incdir=${BDBBASE}/include/${BDB_TYPE}
diff -r bb949f83993b -r e10d0901c7ca mail/cyrus-imapd23/patches/patch-ap
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/cyrus-imapd23/patches/patch-ap Thu Jun 03 06:55:54 2010 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-ap,v 1.1 2010/06/03 06:55:54 obache Exp $
+
+Fix building with db5.
+
+--- lib/cyrusdb_berkeley.c.orig 2009-03-10 02:56:22.000000000 +0000
++++ lib/cyrusdb_berkeley.c
+@@ -108,7 +108,7 @@ static void db_panic(DB_ENV *dbenv __att
+ exit(EC_TEMPFAIL);
+ }
+
+-#if (DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 3)
++#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 3))
+ static void db_err(const DB_ENV *dbenv __attribute__((unused)),
+ const char *db_prfx, const char *buffer)
+ #else
+@@ -164,7 +164,7 @@ static int init(const char *dbdir, int m
+ #endif
+ }
+
+-#if (DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 3)
++#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 3))
+ dbenv->set_msgcall(dbenv, db_msg);
+ #endif
+ dbenv->set_errcall(dbenv, db_err);
+@@ -282,7 +282,7 @@ static int mysync(void)
+
+ assert(dbinit);
+
+-#if !(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
++#if !((DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1)))
+ do {
+ #endif
+ #if (DB_VERSION_MAJOR > 3) || ((DB_VERSION_MAJOR == 3) && (DB_VERSION_MINOR > 0))
+@@ -290,7 +290,7 @@ static int mysync(void)
+ #else
+ r = txn_checkpoint(dbenv, 0, 0);
+ #endif
+-#if !(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
++#if !((DB_VERSION_MAJOR > 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1))
+ } while (r == DB_INCOMPLETE); /* Never returned by BDB 4.1 */
+ #endif
+ if (r) {
+@@ -413,7 +413,7 @@ static int myopen(const char *fname, DBT
+ /* xxx set comparator! */
+ if (flags & CYRUSDB_MBOXSORT) db->set_bt_compare(db, mbox_compar);
+
+-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1
++#if (DB_VERSION_MAJOR > 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
+ r = (db->open)(db, NULL, fname, NULL, type, dbflags | DB_AUTO_COMMIT, 0664);
+ #else
+ r = (db->open)(db, fname, NULL, type, dbflags, 0664);
Home |
Main Index |
Thread Index |
Old Index