Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579544 - sys-libs/ldb can be built without net-nds/openldap: make dependency optional
Summary: sys-libs/ldb can be built without net-nds/openldap: make dependency optional
Status: RESOLVED DUPLICATE of bug 506448
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo's SAMBA Team
Depends on:
Blocks: 579088
  Show dependency tree
Reported: 2016-04-10 21:03 UTC by Vincent Brillault
Modified: 2016-08-29 16:21 UTC (History)
2 users (show)

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

Ebuild patch making the openldap dependency optional (file_579544.txt,753 bytes, text/plain)
2016-04-10 21:03 UTC, Vincent Brillault
Compilation logs without openldap (compile.logs,83.69 KB, text/plain)
2016-04-10 21:05 UTC, Vincent Brillault

Note You need to log in before you can comment on or make changes to this bug.
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 ***