Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134943 - courier-imap configure fix for sys-libs/db-4.3
Summary: courier-imap configure fix for sys-libs/db-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-30 11:32 UTC by Hanno Zysik (geki)
Modified: 2006-09-14 23:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
files/courier-imap-4.0.1-db4-*.patch diff (courier-imap-new-db.diff,1.35 KB, patch)
2006-05-30 11:32 UTC, Hanno Zysik (geki)
Details | Diff
Build failure log (courier-4.0.6-without-patch.log,170.24 KB, text/plain)
2006-08-18 09:27 UTC, Mark Glines
Details
Build success log (courier-4.0.6-with-patch.log,232.57 KB, text/plain)
2006-08-18 09:28 UTC, Mark Glines
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Zysik (geki) 2006-05-30 11:32:11 UTC
Summary says it.
Comment 1 Hanno Zysik (geki) 2006-05-30 11:32:55 UTC
Created attachment 87897 [details, diff]
files/courier-imap-4.0.1-db4-*.patch diff
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-11 02:59:28 UTC
The function names of 'db_create_4002' is not correct for db4.3/db4.4
$ readelf -s /usr/lib/libdb-4.3.so  |egrep '\<db_create'
   302: 0006e611  2058 FUNC    GLOBAL DEFAULT   11 db_create@@libdb-4.3.so
Comment 3 Hanno Zysik (geki) 2006-06-11 03:04:03 UTC
It checks: db_create_4002, db_create_4001 and db_create.
And db_create is just fine. ;)
Comment 4 Mark Glines 2006-08-18 09:26:35 UTC
Hi folks,

I'm unable to build courier-imap-4.0.6 without this patch.  My system has USE=berkdb, and has sys-libs/db-4.2.52_p4 and sys-libs/db-4.3.29-r2 installed.

Without the patch, it finds db_create_4002 in -ldb-4.2, but fails to link later because bdbobj.c tries to call db_create(), not db_create_4002().

With the patch, it finds db_create in -ldb-4.3 and everything works fine.  I'll attach build logs.

So I've verified the patch is useful.  Please apply.

Thanks,

Mark
Comment 5 Mark Glines 2006-08-18 09:27:57 UTC
Created attachment 94555 [details]
Build failure log

Builds without the patch fail.
Comment 6 Mark Glines 2006-08-18 09:28:37 UTC
Created attachment 94556 [details]
Build success log

Builds with the patch succeed.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-09-14 23:21:31 UTC
fixed in cvs. 
for future reference, please do NOT patch existing patches - rather update the patch and post the new version here.
Also, for the patch, I added checks for db_create_4003 and db_create_4004, because those are applicable in this case.