From owner-svn-src-head@freebsd.org Tue Mar 3 17:08:35 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CD3F3255C6F for ; Tue, 3 Mar 2020 17:08:35 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48X3Pb26P7z4HhY; Tue, 3 Mar 2020 17:08:35 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-7.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 34FB684F6; Tue, 3 Mar 2020 17:08:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: svn commit: r358411 - head/contrib/sendmail/src To: Cy Schubert , Hiroki Sato , eugen@grosbein.net, jkim@FreeBSD.org Cc: ume@FreeBSD.org, src-committers@freebsd.org, svn-src-head@freebsd.org References: <34373b64-876b-c97c-e805-ffaf3a69dd8b@grosbein.net> <8e60a869-fe1e-9314-ffdc-76ed3e2dc081@FreeBSD.org> <20200303.075047.1159550404273266246.hrs@FreeBSD.org> <0B5BF068-6E2E-48D5-BF68-1A007EBFE9D9@cschubert.com> From: John Baldwin Autocrypt: addr=jhb@FreeBSD.org; keydata= mQGiBETQ+XcRBADMFybiq69u+fJRy/0wzqTNS8jFfWaBTs5/OfcV7wWezVmf9sgwn8TW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eaRqeR6zFus7EZTwtX sNzs5bP8y51PSUDJbeiy2RNCNKWFMndM22TZnk3GNG45nQd4OwYK0RZVrikalmJY5Q6m7Z16 4yrZgIXFdKj2t8F+x613/SJW1lIr9/bDp4U9tw0V1g3l2dFtD3p3ZrQ3hpoDtoK70ioIAjjH aIXIAcm3FGZFXy503DOA0KaTWwvOVdYCFLm3zWuSOmrX/GsEc7ovasOWwjPn878qVjbUKWwx Q4QkF4OhUV9zPtf9tDSAZ3x7QSwoKbCoRCZ/xbyTUPyQ1VvNy/mYrBcYlzHodsaqUDjHuW+I SQQYEQIACQUCRND5ggIbDAAKCRBy3lIGd+N/BCO8AJ9j1dWVQWxw/YdTbEyrRKOY8YZNwwCf afMAg8QvmOWnHx3wl8WslCaXaE8= Message-ID: Date: Tue, 3 Mar 2020 09:08:33 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <0B5BF068-6E2E-48D5-BF68-1A007EBFE9D9@cschubert.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 17:08:35 -0000 On 3/3/20 6:48 AM, Cy Schubert wrote: > On March 2, 2020 2:50:47 PM PST, Hiroki Sato wrote: >> Jung-uk Kim wrote >> in <8e60a869-fe1e-9314-ffdc-76ed3e2dc081@FreeBSD.org>: >> >> jk> > I merely try to understand how to unbreak upgrade path for >> 11.2-STABLE workstations >> jk> > with stock sendmail and SSL support that also has many ports >> installed including >> jk> > ports requiring new openssl API. Because buildworld fails and >> upgrade is broken. >> jk> I am also trying to understand your problem. Which port is >> specifically >> jk> requiring new OpenSSL API for you? >> >> The problem eugen@ is trying to explain is (correct me if this is >> wrong): >> >> 1. One needs to install OpenSSL from ports if she wants to install >> software which depends on it. deskutils/nextcloudclient, for >> example. Setting DEFAILT_VERSION+=ssl=openssl is strongly >> recommended in this case for consistency. >> >> 2. Handbook says enabling SMTP AUTH requires the following in >> make.conf: >> >> SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL >> SENDMAIL_LDFLAGS=-L/usr/local/lib >> SENDMAIL_LDADD=-lsasl2 >> >> However, this variables make the buildworld target to pick up >> OpenSSL from ports if installed, not from base, in the middle of >> building sendmail. "make buildworld" will always fail. There is >> no way to avoid OpenSSL from ports if she wants software such as >> deskutils/nextcloudclient. >> >> This build breakage occurs with sendmail + openssl from ports, not >> related to cyrus-sasl2. A shlib mismatch between sendmail and >> cyrus-sasl2 in terms of OpenSSL library is another issue. >> >> I think there are several workaround, but the primary problem is that >> people can get confused with instructions in the handbook. I suggest >> to update the handbook: >> >> a) If you do not have security/openssl on your system, set the >> following in make.conf and rebuilt the world: >> >> SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL >> SENDMAIL_LDFLAGS=-L/usr/local/lib >> SENDMAIL_LDADD=-lsasl2 >> >> b) If you have security/openssl, sendmail in the base system does not >> support SMTP AUTH because of incompatibility with the newer >> versions of OpenSSL. Use mail/sendmail from ports. >> >> I still feel that b) is sub-optimal, but it would be too complex to >> make them coexist with each other. The attached patch and putting >> SASLBASEDIR=/usr/local into /etc/make.conf instead of the SENDMAIL_* >> variables should mitigate the first problem but if >> security/cyrus-sasl2 was built with OpenSSL from ports, the shlib >> mismatch still occurs. >> >> -- Hiroki > > Buildworld should only use libraries in /usr/obj. I've found and fixed these in ntp, Heimdal and amd. Base sendmail build shouldn't use installed libraries or headers. > > The implications are obvious. While that rule is true in general, the SMTP AUTH bits for base sendmail have always been a special case like this. I switched to postfix several years ago, but prior to that I was doing the same thing on my mail server. I think hrs' new text for the handbook is probably the right answer. -- John Baldwin