wok-next rev 13009
libsasl-without-ldap: Add support for db 5.x.
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 06 18:31:58 2012 +0200 (2012-06-06) |
parents | f6f458d4977a |
children | f713f0a0d6cf |
files | libsasl-without-ldap/receipt libsasl-without-ldap/stuff/0027_db5_support.patch |
line diff
1.1 --- a/libsasl-without-ldap/receipt Wed Jun 06 18:28:24 2012 +0200 1.2 +++ b/libsasl-without-ldap/receipt Wed Jun 06 18:31:58 2012 +0200 1.3 @@ -16,7 +16,7 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 - 1.8 + patch -Np1 -i $stuff/0027_db5_support.patch 1.9 ./configure --prefix=/usr --infodir=/usr/share/info \ 1.10 --without-pam --disable-anon \ 1.11 --disable-cram --disable-digest \
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/libsasl-without-ldap/stuff/0027_db5_support.patch Wed Jun 06 18:31:58 2012 +0200 2.3 @@ -0,0 +1,24 @@ 2.4 +Author: Ondřej Surý <ondrej@debian.org> 2.5 +Description: Support newer Berkeley DB versions 2.6 +--- a/sasldb/db_berkeley.c 2.7 ++++ b/sasldb/db_berkeley.c 2.8 +@@ -101,7 +101,7 @@ static int berkeleydb_open(const sasl_ut 2.9 + ret = db_create(mbdb, NULL, 0); 2.10 + if (ret == 0 && *mbdb != NULL) 2.11 + { 2.12 +-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1 2.13 ++#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1)) 2.14 + ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, flags, 0660); 2.15 + #else 2.16 + ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, flags, 0660); 2.17 +--- a/utils/dbconverter-2.c 2.18 ++++ b/utils/dbconverter-2.c 2.19 +@@ -214,7 +214,7 @@ static int berkeleydb_open(const char *p 2.20 + ret = db_create(mbdb, NULL, 0); 2.21 + if (ret == 0 && *mbdb != NULL) 2.22 + { 2.23 +-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1 2.24 ++#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1)) 2.25 + ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, DB_CREATE, 0664); 2.26 + #else 2.27 + ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, DB_CREATE, 0664);