11.4 sendmail with SASL and ports openssl?
Bengt Ahlgren
bengt.ahlgren at ri.se
Mon Aug 17 08:28:00 UTC 2020
Eugene Grosbein <eugen at grosbein.net> writes:
> 14.08.2020 17:46, Bengt Ahlgren wrote:
>
>> Then the question is whether I need openssl libraries from ports, when I
>> use that for all ports with DEFAULT_VERSIONS+=ssl=openssl due to QT5
>> requirements?
>>
>> If I want to link with openssl from ports, it looks like I anyway need
>> SENDMAIL_LDFLAGS=-L/usr/local/lib, otherwise the linker will pick up
>> libssl and libcrypto from base. Specifying the full path for these
>> libraries, like for libsasl2 in the handbook, only results in
>> double-linking with libraries from both ports and base. So I ended up
>> with:
>>
>> SENDMAIL_CFLAGS=-I/usr/local/include -I/usr/local/include/sasl -DSASL
>> SENDMAIL_LDFLAGS=-L/usr/local/lib
>> SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
>
> Stock sendmail was recently updated from 8.14.x to 8.16.x in base after 11.4-RELEASE.
>
> Previous sendmail version was incompatible with openssl 1.1+,
> so Handbook updated before 11.4-RELEASE to make sure sendmail is built and linked
> with stock openssl, or else build failed.
>
> It seems updated sendmail in stable branches made compatible with openssl 1.1+,
> so the choice is yours.
Thanks for the info! For the record, I run 11.4-STABLE after that
sendmail update.
Bengt
More information about the freebsd-stable
mailing list