Vincent Danen <[EMAIL PROTECTED]> writes:

> Is there such a tag?  I'm running into a problem building an exim
> package.  In the Makefile, I tell it to use OpenLDAP 2.x (which is, I
> gather, quite different from OpenLDAP 1.x).  However, I pass -lldap
> for libs (using -lldap2 doesn't work).  My concern is that -lldap can
> be used for both 1.x and 2.x, right?
> 
> I have a Requires: openldap >= 2.0.11 in there, and a BuildRequires:
> libldap2-devel, but I want it to be more restrictive.  Ie. what
> happens if both libldap2-devel and openldap-devel are installed?  By
> just passing -lldap, I don't know which will be used, and I think
> telling exim to use LDAP2 and it accidentally builds with LDAP1 would
> be bad.
> 
> Can I do something like BuildConflicts: openldap-devel to force the
> user building exim to remove any LDAP1 libs/source prior to building?
> Or is this plain old unnecessary?  I want to ensure it is built
> against LDAP2.
> 

Yes BuildConflicts is your friend. Use something like:

BuildConflicts: libldap1-devel
-- 
Fred - May the source be with you

Reply via email to