Solved msmtp problem (unless it's just me)

The msmtp package was upgraded a few days ago. The previous default package had TLS/SSL compiled in, I think, I actually don't remember checking. The current port has GNUTLS as default for SSL/TLS support, however the latest package doesn't. My $HOME/.msmtprc configuration has TLS on. So, trying to send mail, I was getting failed TLS not compiled in. I then built the port and took the port's default of GNUTLS and I could then send mail.

For the moment I've dropped an email to the port's maintainer, but as I've seen nothing on this with (an admittedly cursory) web search, I'm wondering if it's a Just Me(TM) issue.

I use msmtp to send email using neomutt as it's more flexible than neomutt's builtin smtp, allowing multiple accounts to be done easily. The problem is fixed, for me--I've also had to pkg lock msmtp as if I do pkg update now it wants to update as options have changed, but I am wondering if anyone else has run into this.
 
It's definitely broken.
It links properly with openssl.
This is the patch that fixes it.
Code:
diff --git a/mail/msmtp/Makefile b/mail/msmtp/Makefile
index 317bd8e7e221..19009ff13ee1 100644
--- a/mail/msmtp/Makefile
+++ b/mail/msmtp/Makefile
@@ -46,6 +46,7 @@ NLS_USES=             gettext

 GNUTLS_CONFIGURE_WITH= tls=gnutls
 GNUTLS_LIB_DEPENDS=    libgnutls.so:security/gnutls
+GNUTLS_LDFLAGS=                -lgnutls
 OPENSSL_USES=          ssl
 OPENSSL_CONFIGURE_WITH=        tls=openssl
 OPENSSL_CONFIGURE_ENV= libssl_CFLAGS="-I${OPENSSLINC}" \
Why did it broken?
Fixed.
 
Back
Top