From owner-freebsd-ports@freebsd.org Fri May 29 09:39:08 2020 Return-Path: Delivered-To: freebsd-ports@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 EC45F334441 for ; Fri, 29 May 2020 09:39:08 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49YKJr0kt8z4Q9d for ; Fri, 29 May 2020 09:39:07 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id AAC927154C; Fri, 29 May 2020 11:39:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L3rD5VDhjtn0; Fri, 29 May 2020 11:39:06 +0200 (CEST) Received: from [192.168.10.67] (opteron [192.168.10.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 017417154B; Fri, 29 May 2020 11:39:06 +0200 (CEST) Subject: Re: Getting dovecot to use the openssl from ports From: Willem Jan Withagen To: FreeBSD Ports , Carmel NY References: Message-ID: Date: Fri, 29 May 2020 11:38:44 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl X-Rspamd-Queue-Id: 49YKJr0kt8z4Q9d X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of wjw@digiware.nl designates 176.74.240.9 as permitted sender) smtp.mailfrom=wjw@digiware.nl X-Spamd-Result: default: False [-3.07 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.90)[-0.896]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.98)[-0.982]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[digiware.nl]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[176.74.240.9:from]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.69)[-0.692]; FREEMAIL_TO(0.00)[freebsd.org,outlook.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2020 09:39:09 -0000 On 29-5-2020 11:31, Willem Jan Withagen wrote: > On 29-5-2020 00:56, Carmel NY wrote: >> On Thu, 28 May 2020 23:36:46 +0200, Willem Jan Withagen stated: >>> On 28-5-2020 16:53, Carmel NY wrote: >>>> On Thu, 28 May 2020 16:25:20 +0200, Willem Jan Withagen stated: >>>>> Hi, >>>>> >>>>> I'm trying to get dovecot to use the openssl from ports in >>>>> /usr/local/lib. But whatever I try, en en op with cryptostuff from >>>>> /usr/lib.... >>>>> >>>>> I think the correct way is to set >>>>> etc/make.conf >>>>>       DEFAULT_VERSIONS+=ssl=openssl >>>>> >>>>> En though when making tells me: >>>>>      dovecot-2.3.10.1 depends on file: >>>>> /usr/local/lib/libcrypto.so.11 - found >>>>> >>>>> I end up with: >>>>> /usr/local/libexec/dovecot/imap-login: >>>>>           libdovecot-login.so.0 => >>>>> /usr/local/lib/dovecot/libdovecot-login.so.0 (0x80120a000) >>>>>           libdovecot.so.0 => /usr/local/lib/dovecot/libdovecot.so.0 >>>>> (0x801422000) >>>>>           libc.so.7 => /lib/libc.so.7 (0x800825000) >>>>>           libssl.so.8 => /usr/lib/libssl.so.8 (0x8017c5000) >>>>>           libcrypto.so.8 => /lib/libcrypto.so.8 (0x801c00000) >>>>> >>>>> Which the crypto stuff from BASE >>>>> >>>>> But I have available.... >>>>> root@mailserver:/ # ls /usr/local/lib/libcrypto.so.11 >>>>> /usr/local/lib/libcrypto.so.11 >>>>> >>>>> What am I missing here? >>>> How are you attempting to build the port? >>> I realized this after posting, but I did this by what I'm used to doing >>> since 1993: >>>      cd /usr/ports/mail/dovecot >>>      make install >>> >>> But even if I use poudriere it still uses what is in base. >> Are you sure you modified the correct "make.conf" file? Specifically: >> >>     /usr/local/etc/poudriere.d/make.conf >> >> This is what you should have in that file: >> >>     DEFAULT_VERSIONS+=ssl=openssl >> >> Make sure to update the ports tree in poudriere, and then try >> rebuilding "dovecot". Once it rebuilds it, look at the build log and >> see if it shows any obvious errors. > > I have build env.s for several releases on this server.... > And it is always a trick to get it in the right one. > Trying yours as we speak. Right that helped.... root@test:/tmp/usr/local/lib/dovecot # ldd ./libdovecot-login.so.0.0.0 ./libdovecot-login.so.0.0.0:         libdovecot.so.0 => not found (0)         libssl.so.11 => /usr/local/lib/libssl.so.11 (0x800683000)         libcrypto.so.11 => /usr/local/lib/libcrypto.so.11 (0x801018000)         libc.so.7 => /lib/libc.so.7 (0x800245000)         libthr.so.3 => /lib/libthr.so.3 (0x800719000) Now wait for a silent moment on the server to actually install this package and find out if it really helps. --WjW