Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 579544

Summary: sys-libs/ldb can be built without net-nds/openldap: make dependency optional
Product: Gentoo Linux Reporter: Vincent Brillault <gentoo>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugs.gentoo.org, gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 579088    
Attachments: Ebuild patch making the openldap dependency optional
Compilation logs without openldap

Description Vincent Brillault 2016-04-10 21:03:24 UTC
Created attachment 430068 [details]
Ebuild patch making the openldap dependency optional

It seems that it is possible to build sys-libs/ldb without net-nds/openldap.
In addition, samba seems to be able to work properly with this sys-libs/ldb[-ldap] version (seems to be working on my local server). If this work, samba[-ldap] could be build without requiring net-nds/openldap (which it currently does indirectly thought ldb). 

Attach an ebuild patch and a successful compilation run where you can read the following:
'''
Checking for library lber    : not found
Checking for library ldap    : not found
Checking for ber_flush       : not found
Checking for ldap_           : not found
Checking for ldap_initialize : not found
'''

I see that it was stated in #506448 that "Yes, it definitely does want to link the ldap module against liblber and libldap.". Could you explain that in more details? Thanks in advance!
Comment 1 Vincent Brillault 2016-04-10 21:05:55 UTC
Created attachment 430070 [details]
Compilation logs without openldap
Comment 2 Andreas Kinzler 2016-06-17 18:56:16 UTC
I am wondering about the dep on net-nds/openldap too. I can build sys-libs/ldb-1.1.26 without openldap and samba (very important user of ldb) seems to work.
Comment 3 Joshua Kinard gentoo-dev 2016-08-29 16:21:03 UTC

*** This bug has been marked as a duplicate of bug 506448 ***