Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219069 - openldap-2.3 and db 4.6 patch
Summary: openldap-2.3 and db 4.6 patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-23 20:46 UTC by Caleb Tennis (RETIRED)
Modified: 2008-06-02 19:40 UTC (History)
9 users (show)

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


Attachments
Use db 4.5-4.2 instead of 4.6 (openldap-db-4.6.patch,1.98 KB, patch)
2008-04-23 20:47 UTC, Caleb Tennis (RETIRED)
Details | Diff
openldap-2.3.41-no-db-46.patch (openldap-2.3.41-no-db-46.patch,1.69 KB, patch)
2008-05-17 03:22 UTC, Nathan Sullivan
Details | Diff
Depend on a supported version of sys-libs/db (openldap-2.3.41-no-db-4.6.patch,1.87 KB, patch)
2008-05-19 16:40 UTC, Ian Abbott
Details | Diff
Remove sys-libs/db-4.6 block, find best version 4.5-4.2, allow parallel make (openldap-2.3.41.ebuild.patch,2.42 KB, patch)
2008-05-21 12:48 UTC, Tais P. Hansen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Tennis (RETIRED) gentoo-dev 2008-04-23 20:46:17 UTC
Since openldap doesn't like db 4.6, and refuses to build if it's installed, this patch will instead attempt to find a different version (4.5 down to 4.2) and use it instead even if db 4.6 is installed.

This is nice because then we don't have to block against db 4.6 anymore.

Please consider applying this patch.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2008-04-23 20:47:17 UTC
Created attachment 150745 [details, diff]
Use db 4.5-4.2 instead of 4.6

This patch attempts to find a different version of db and 4.6 and use it instead, even if db 4.6 is installed.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2008-05-16 14:04:24 UTC
Note: I will plan to apply this patch soon unless I get any objections...
Comment 3 Chris Smith 2008-05-16 22:26:32 UTC
Outside of masking the slotted version sys-libs/db-4.6.21 or removing openldap there currently seems to be no other way around this block.

Calculating dependencies... done!
[ebuild  NS   ] sys-libs/db-4.6.21 [4.5.20_p2] USE="-bootstrap -doc -java -nocxx -tcl -test" 11,604 kB
[blocks B     ] =sys-libs/db-4.6* (is blocking net-nds/openldap-2.3.41)

Total: 1 package (1 in new slot), Size of downloads: 11,604 kB
Conflict: 1 block (1 unsatisfied)
Comment 4 Nathan Sullivan 2008-05-17 03:21:20 UTC
ok I can confirm ive just installed db-4.6, then rebuilt openldap-2.3.41 with the attached patch (adjusted to remove the db-4.6 blockage of course, and the patch needs rediffing for line# mods, ill attach a succeeding patch in a sec to replace it). i then checked my system to see what depends on openldap and ive rebuilt everything against it with no issues. my guess is there shouldnt be any issues anyway considering all this does is tells it to use a different version of db, anything but 4.6 anyways...
Comment 5 Nathan Sullivan 2008-05-17 03:22:42 UTC
Created attachment 153389 [details, diff]
openldap-2.3.41-no-db-46.patch

new patch with line# fixes and removes db-4.6 blockage, should be safe to apply to the tree and mark bug resolved... (only tested on amd64 here, i cant see any huge reason for an arch issue though)
Comment 6 Ian Abbott 2008-05-19 15:32:09 UTC
I tried the patch and it worked fine - it built against db-4.5 instead of db-4.6. However, I then ran 'emerge --depclean -a' and it wanted to remove db-4.5 (actually sys-libs/db-4.5.20_p2) because it thinks nothing depends on it.
Comment 7 Ian Abbott 2008-05-19 16:40:11 UTC
Created attachment 153675 [details, diff]
Depend on a supported version of sys-libs/db

This is similar to Nathan's patch, but makes the openldap depend on one of the supported slots of sys-libs/db.
Comment 8 Tais P. Hansen 2008-05-21 12:34:09 UTC
(In reply to comment #7)
> Created an attachment (id=153675) [edit]
> Depend on a supported version of sys-libs/db
> 
> This is similar to Nathan's patch, but makes the openldap depend on one of the
> supported slots of sys-libs/db.
> 

db_includedir takes multiple arguments. Doing $(db_includedir 4.5 4.4 4.3 4.2) is enough.

Comment 9 Tais P. Hansen 2008-05-21 12:39:15 UTC
Btw. slot dependencies requires EAPI=1.
Comment 10 Tais P. Hansen 2008-05-21 12:44:39 UTC
And while I'm at it, I've built openldap-2.3.41 6 times now with -j and the icecc compile cluster without any problems. -j1 is probably a leftover.
Comment 11 Tais P. Hansen 2008-05-21 12:48:18 UTC
Created attachment 153839 [details, diff]
Remove sys-libs/db-4.6 block, find best version 4.5-4.2, allow parallel make
Comment 12 Caleb Tennis (RETIRED) gentoo-dev 2008-05-21 18:19:38 UTC
committed this as 2.3.41-r1
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2008-06-02 19:40:35 UTC
seems to work, marking as fixed.