Re: cyrus-sasl dependency in

From: Juraj Lutter <>
Date: Mon, 08 Nov 2021 17:28:27 UTC

> On 8 Nov 2021, at 18:17, Xin Li <> wrote:
> On 11/8/21 05:39, Juraj Lutter wrote:
>> Hi Delphij,
>> you seem to be the most active in :-)
>> I’ve found that since openldap-client also depends on cyrus-sasl unconditionally, requires this:
>> otis@b13:/usr/ports/Mk % git diff --
>> diff --git a/Mk/ b/Mk/
>> index a6f37dd99b10..7acbc9c660bb 100644
>> --- a/Mk/
>> +++ b/Mk/
>> @@ -77,6 +77,7 @@ IGNORE=               cannot install: doesn't work with OpenLDAP version: ${OPENLDAP_VER} (Do
>>  .      endfor
>>  .else
>>  IGNORE=                cannot install: unknown OpenLDAP version: ${OPENLDAP_VER}
>>  .endif # Check for correct libs
>> What are you thought about it?
> Could you provide an example that shows the breakage or elaborate more about why needs to be listed as a direct library dependency for ports that depends on OpenLDAP?  It's already listed as LIB_DEPENDS in openldap*-{server,client} and installing the library should automatically bring in cyrus-sasl as needed, no?

In fact, I was only looking for a solution to silence this:

====> Running Q/A tests (stage-qa)
Error: /usr/local/lib/postfix/ is linked to /usr/local/lib/ from security/cyrus-sasl2 but it is not declared as a dependency
Warning: you need

And even when LDAP is being pulled in via LIB_DEPENDS in, there is no explicit dependency on cyrus-sasl2.

What would be the better approach? Given that is not the right place.


Juraj Lutter