Git package depends on security/openssl, and security/openssl breaks postfix/smtp.
Last edited by a moderator:
I might have misread things but mail/postfix always builds against security/openssl and cannot be build to use the base OpenSSL.
So I'm guessing you installed devel/git which updated security/openssl. In turn you probably should have rebuild mail/postfix due to the updated OpenSSL libraries.
# If no preference was set, check for an installed base version
# but give an installed port preference over it.
.if !defined(WITH_OPENSSL_BASE) && \
!defined(WITH_OPENSSL_PORT) && \
!exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \
exists(${DESTDIR}/usr/include/openssl/opensslv.h)
WITH_OPENSSL_BASE=yes
.endif
.if defined(WITH_OPENSSL_BASE)
OPENSSLBASE= /usr
OPENSSLDIR?= /etc/ssl
Ah, dug a little deeper. It's amazing what you can learn by reading files. I got thrown off because Freshports shows it depends on security/openssl.
It actually depends on what's already installed. The script to read is /usr/ports/Mk/bsd.openssl.mk.
Code:# If no preference was set, check for an installed base version # but give an installed port preference over it.
Reading a bit further it seems you can also force ports to use the base OpenSSL, regardless of the presence of security/openssl, by setting WITH_OPENSSL_BASE:
Code:.if !defined(WITH_OPENSSL_BASE) && \ !defined(WITH_OPENSSL_PORT) && \ !exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \ exists(${DESTDIR}/usr/include/openssl/opensslv.h) WITH_OPENSSL_BASE=yes .endif .if defined(WITH_OPENSSL_BASE) OPENSSLBASE= /usr OPENSSLDIR?= /etc/ssl
It has to be noted though, not all ports allow this, some insist on using the version from ports.
.if ${.CURDIR:M*/devel/git*}
WITH_OPENSSL_BASE=yes
.endif