NetBSD Problem Report #18164

Received: (qmail 3018 invoked by uid 605); 4 Sep 2002 09:01:49 -0000
Message-Id: <200209040859.g848xQT17249@balkis.ics.muni.cz>
Date: Wed, 4 Sep 2002 10:59:26 +0200 (CEST)
From: ljocha@ics.muni.cz
Sender: gnats-bugs-owner@netbsd.org
Reply-To: ljocha@ics.muni.cz
To: gnats-bugs@gnats.netbsd.org
Subject: evolution: runtime check for libdb version
X-Send-Pr-Version: 3.95

>Number:         18164
>Category:       pkg
>Synopsis:       runtime libdb version check fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    rh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 04 09:02:01 +0000 2002
>Closed-Date:    Thu Sep 05 23:26:55 +0000 2002
>Last-Modified:  Sat Apr 29 08:46:54 +0000 2006
>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:
Responsible-Changed-From-To: pkg-manager->rh 
Responsible-Changed-By: rh 
Responsible-Changed-When: Thu Sep 5 14:56:11 PDT 2002 
Responsible-Changed-Why:  
rh took responsibility for this PR 
State-Changed-From-To: open->closed 
State-Changed-By: rh 
State-Changed-When: Thu Sep 5 14:57:05 PDT 2002 
State-Changed-Why:  
I committed your fix (with some modifications: I used the symbolic 
DB_VERSION numbers instead of the hardcoded values). 
Thanks for the PR 

From: Ales Krenek <ljocha@ics.muni.cz>
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: pkg/18164
Date: 22 Nov 2002 10:18:50 +0100

 Recently, I've upgraded to 1.6 and found out the patch is not applied
 on the netbsd-1-6 branch. Hope the fix is trivial.

 Regards,

 Ales
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.