Subject: pkg/18164: evolution: runtime check for libdb version
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ljocha@ics.muni.cz>
List: netbsd-bugs
Date: 09/04/2002 10:59:26
>Number:         18164
>Category:       pkg
>Synopsis:       runtime libdb version check fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 04 02:02:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ales Krenek
>Release:        NetBSD 1.5.4_ALPHA
>Organization:
Masaryk University
>Environment:
System: NetBSD balkis.ics.muni.cz 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (BALKIS) #9: Tue Sep 3 21:30:15 CEST 2002 toor@balkis.ics.muni.cz:/usr/src/sys/arch/i386/compile/BALKIS i386
Architecture: i386
Machine: i386
>Description:
Evolution checks for libdb version also at runtime, requires 3.1.17,
however, the installed version is 3.3.17. This results in failure of
addressbook, with misleading error message "check permissions".
>How-To-Repeat:
Try to open the Contacts folder.
>Fix:

--- e-util/e-dbhash.c.orig	Tue Sep  3 21:19:56 2002
+++ e-util/e-dbhash.c	Tue Sep  3 21:20:22 2002
@@ -38,8 +38,8 @@
 	db_version (&major, &minor, &patch);
 
 	if (major != 3 ||
-	    minor != 1 ||
-	    patch != 17) {
+	    minor != 3 ||
+	    patch != 11) {
 		g_warning ("Wrong version of libdb.");
 		return NULL;
 	}
--- addressbook/backend/pas/pas-backend-file.c.orig	Tue Sep  3 21:36:24 2002
+++ addressbook/backend/pas/pas-backend-file.c	Tue Sep  3 21:36:28 2002
@@ -1245,8 +1245,8 @@
 	db_version (&major, &minor, &patch);
 
 	if (major != 3 ||
-	    minor != 1 ||
-	    patch != 17) {
+	    minor != 3 ||
+	    patch != 11) {
 		g_warning ("Wrong version of libdb.");
 		return GNOME_Evolution_Addressbook_BookListener_OtherError;
 	}
>Release-Note:
>Audit-Trail:
>Unformatted: