[packages/wwwcount] - fix building with bdb 5.x - rel 11

baggins baggins at pld-linux.org
Sat Sep 22 20:58:32 CEST 2012


commit 094e8c7157e60b91d0fbe057c0a80671a20d070b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Sep 22 20:58:10 2012 +0200

    - fix building with bdb 5.x
    - rel 11

 wwwcount-db41.patch | 2 +-
 wwwcount.spec       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/wwwcount.spec b/wwwcount.spec
index 01207cf..9d1b0e0 100644
--- a/wwwcount.spec
+++ b/wwwcount.spec
@@ -8,7 +8,7 @@ Summary:	WWW Hit Access Counter
 Summary(pl.UTF-8):	Licznik dostępu do strony WWW
 Name:		wwwcount
 Version:	2.6
-Release:	10
+Release:	11
 Epoch:		1
 Group:		Networking/Utilities
 License:	BSD-like
diff --git a/wwwcount-db41.patch b/wwwcount-db41.patch
index 1b3d4b0..6357215 100644
--- a/wwwcount-db41.patch
+++ b/wwwcount-db41.patch
@@ -12,7 +12,7 @@
         ret->set_malloc( ret, ldbm_malloc );
         */
         ret->set_cachesize( ret, 0, dbcachesize, 0 );
-+#if (DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1)
++#if (DB_VERSION_MAJOR == 5) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1))
 +       err = ret->open( ret, NULL, name, NULL, DB_TYPE, rw, mode);
 +#else
         err = ret->open( ret, name, NULL, DB_TYPE, rw, mode);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wwwcount.git/commitdiff/094e8c7157e60b91d0fbe057c0a80671a20d070b



More information about the pld-cvs-commit mailing list