Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135781 - openldap-2.3.27-r2 unable to build with syncprov
Summary: openldap-2.3.27-r2 unable to build with syncprov
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-06 08:40 UTC by REdOG
Modified: 2007-10-13 19:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description REdOG 2006-06-06 08:40:44 UTC
The openldap-2.3.20 ebuild defaulted to building with --enable-syncprov
In the openldap-2.3.24-r2 ebuild syncprov isn't enabled nor is there a way to specify building with syncprov.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-06 09:44:08 UTC
So, use -r1 meanwhile? :)
Comment 2 REdOG 2006-06-06 13:30:06 UTC
I just added a way to use --enable-syncprov in -r2 via my overlay
but -r1 enables it by default
Comment 3 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2006-06-07 01:25:13 UTC
you now need to have USE="overlays" in order to build syncprov as its considered part of the overlays.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2006-11-10 09:39:21 UTC
I have build OpenLDAP with the following:

[ebuild   R   ] net-nds/openldap-2.3.27-r2  USE="berkdb crypt ipv6 kerberos overlays readline samba ssl tcpd -debug -gdbm -minimal -odbc -perl -sasl (-selinux) -slp -smbkrb5passwd" 0 kB

You will notice overlays are enabled. However syncprov was not available. The only way to get syncprov was to specify EXTRA_ECONF="--enable-syncprov"
Comment 5 Markus Ullmann (RETIRED) gentoo-dev 2006-12-23 08:31:13 UTC
Fixed in 2.3.30-r1 and above
Comment 6 REdOG 2007-08-03 16:01:59 UTC
Same problem in 2.3.35-r1 & 2.3.37

syncprov not included with USE="overlays"

used EXTRA_ECONF="--enable-syncprov" 
Comment 7 Alexandre Ghisoli 2007-08-08 15:41:57 UTC
Confirmed in 2.3.37 too.

used only USE="overlays", files will be installed :
/usr/lib64/openldap/openldap/syncprov-2.3.so.0
/usr/lib64/openldap/openldap/syncprov-2.3.so.0.2.23
/usr/lib64/openldap/openldap/syncprov.la
/usr/lib64/openldap/openldap/syncprov.so
/usr/share/man/man5/slapo-syncprov.5.bz2

But slaptest gives error (overlay "syncprov" not found)

I've to use the EXTRA_ECONF="--enable-syncprov" to make it working, and no .so files are installed !

So can be workarround with moduleload / modulepath in slapd.conf ?


Comment 8 Alexandre Ghisoli 2007-08-08 16:05:38 UTC
(In reply to comment #7)

> So can be workarround with moduleload / modulepath in slapd.conf ?
> 

Ok, I can confirm the workaround, but you *need* to specify modulepath, as slapd doenst look into .../openldap/openldap directory.

1st : define modules :

modulepath      /usr/lib64/openldap/openldap
moduleload      syncprov

2nd : in your database definition, use the overlay :

overlay syncprov
syncprov-nopresent TRUE
syncprov-reloadhint TRUE

Comment 9 Markus Ullmann (RETIRED) gentoo-dev 2007-10-13 19:46:51 UTC
(In reply to comment #8)
> Ok, I can confirm the workaround, but you *need* to specify modulepath, as
> slapd doenst look into .../openldap/openldap directory.

Yup, there's a reason we generate paths and basic modules :)

> 1st : define modules :
> 
> modulepath      /usr/lib64/openldap/openldap
> moduleload      syncprov
> 
> 2nd : in your database definition, use the overlay :
> 
> overlay syncprov
> syncprov-nopresent TRUE
> syncprov-reloadhint TRUE
> 

also as a good hint, openldap provides testcases for nearly all overlay and they tend to be good config hints as they test there if it works :)

So marking this as invalid as it's desired behaviour