Created attachment 179536 [details] patch The update brings support to smtpd_tls_eecdh_grade=auto setting, making it possible to use x25519 elliptic curve, when compiled against libressl-devel or openssl-devel. Builds fine on Poudriere on 10.3.
Hi Piotr, the new version has so many changes that building against libressl will no longer work. Unluckily I'm busy at the moment and having nearly no time to fix this but it is one requirement before updating to a new version.
(In reply to Olli Hauer from comment #1) What version of LibreSSL do you build against? I did a test build against 2.5.1, it compiles fine.
Created attachment 179556 [details] log I'm uploading a log of building Postfix 3.2-20170129 with LibreSSL 2.5.1, which succeeds.
Created attachment 179562 [details] log if build with ssl=libressl Hm, have you set the following in /etc/make.conf? DEFAULT_VERSIONS+= ssl=libressl If not then postfix should builds against the base SSL. See a quick build log (FreeBSD 11)
(In reply to Olli Hauer from comment #4) Yes, it's because LibreSSL 2.5 has changed API, similarly to OpenSSL 1.1. As you can see from my log, I have ssl=libressl-devel in make.conf. IMO postfix-current not being able to compile again LibreSSL 2.4 is not a reason against upgrading postfix-current. Users running bleeding-edge software (unstable versions etc.) are supposed to be prepared to such issues. Even then they can just switch to LibreSSL 2.5, which works. You could set up IGNORE in Makefile if ! ${SSL_DEFAULT:Mlibressl-devel} || ! ${SSL_DEFAULT:Mopenssl-devel} (just pseudocode). IMO it's not surprising if development versions of software require development (or the newest stable) versions of dependencies :)
Created attachment 179568 [details] svndiff for mail/postfix-current Fix build with LibreSSL Obtained from: OpenBSD
A commit references this bug: Author: ohauer Date: Sat Feb 4 07:55:30 UTC 2017 New revision: 433285 URL: https://svnweb.freebsd.org/changeset/ports/433285 Log: - update to 20170129 - fix build with libressl < 2.5.x Release Notes: ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/postfix-3.2-20170129.RELEASE_NOTES PR: 216732 Submitted by: Bernard Spil Reported by: Piotr Kubaj Obtained from: OpenBSD Changes: head/mail/postfix-current/Makefile head/mail/postfix-current/distinfo head/mail/postfix-current/files/patch-src_tls_tls__dh.c
Committed, Thanks!