From owner-freebsd-ports@freebsd.org Thu May 6 04:01:58 2021 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 2E6BF631C16 for ; Thu, 6 May 2021 04:01:58 +0000 (UTC) (envelope-from portmaster@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ultimatedns.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FbKdx5wVxz3NhL; Thu, 6 May 2021 04:01:57 +0000 (UTC) (envelope-from portmaster@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 146423sL080274; Wed, 5 May 2021 21:02:09 -0700 (PDT) (envelope-from portmaster@bsdforge.com) MIME-Version: 1.0 Date: Wed, 05 May 2021 21:02:03 -0700 From: Chris To: Dima Panov Cc: Yasuhiro Kimura , freebsd-ports@freebsd.org Subject: Re: Making a port to use OpenSSL of ports collection on FreeBSD 11.x In-Reply-To: References: <8151EFB0-635D-4648-AF0B-653E45584F1A@grem.de> <20210505.232208.1752175478734160028.yasu@utahime.org> <20210506.011037.2056308540818173996.yasu@utahime.org> <154fe2a4cccad0fb69ef5215fe265456@bsdforge.com> User-Agent: UDNSMS/17.0 Message-ID: <0edc022ebd49e63759293f909a4875d2@bsdforge.com> X-Sender: portmaster@bsdforge.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4FbKdx5wVxz3NhL X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2021 04:01:58 -0000 On 2021-05-05 20:49, Dima Panov wrote: > Moin! > > Chris, your suggestion leads to dll hell due to mix-links between ssl > libraries :( > At least, your setup easily face up situation where one lib will be built > with > “port openss” and consumers still get a “base openssl”. DEFAULT_VERSION here > is > set to avoid a such situation — the whole ports collection should be linked > with > ONE ssl/crypto library. I agree. After posting my proposed solution. I was finally able to find _which_ of the ports I did it in. Fortunately, it was an isolated case. Which got me to thinking that _this_ case here had far reaching ramifications. I would have withdrawn my suggestion. But you beat me to it. ;-) Thanks for the reply (and correction), Dima! --Chris > > -- > Dima. (desktop, kde, x11, office, ports-secteam)@FreeBSD team > (fluffy@FreeBSD.org, https://t.me/dima_panov) > >> On Thursday, May 06, 2021 at 6:26 AM, Chris > (mailto:portmaster@bsdforge.com)> wrote: >> On 2021-05-05 09:10, Yasuhiro Kimura wrote: >> > From: Chris >> > Subject: Re: Making a port to use OpenSSL of ports collection on FreeBSD >> > 11.x >> > Date: Wed, 05 May 2021 08:03:00 -0700 >> > >> > > I ran into a similar situation requiring freebsd 11 users not use >> > > SSL from base, and I simply used a conditional based against freebsd >> > > version, that also included a RUN_DEPENDS on security/openssl >> > > Wouldn't that work in your case? >> > > >> > > --Chris >> > >> > Probably only adding security/openssl to *_DEPENDS isn't enough. If >> > you look at Mk/Uses/ssl.mk, you'll find the path of include files and >> > libraries are customized depending on which ssl stack is used. So you >> > also need to add similar custimizetion in Makefile of port avoding >> > conflicts with the settings in Mk/Uses/ssl.mk. And it must be hard >> > job. >> Well unless something has changed significantly in that regard over >> the last couple mos. I found it was enough to trap ${OSREL:R} targeting >> 11 && within that conditional add ssl=openssl >> It worked a treat. You may find some additional clues in >> bsd.default-versions.mk >> >> HTH >> >> --Chris >> > >> > --- >> > Yasuhiro Kimura >> > _______________________________________________ >> > freebsd-ports@freebsd.org mailing list >> > https://lists.freebsd.org/mailman/listinfo/freebsd-ports >> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"