From owner-freebsd-ports@freebsd.org Thu May 6 03:49:11 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 073E06316A4 for ; Thu, 6 May 2021 03:49:11 +0000 (UTC) (envelope-from fluffy@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FbKMB6VDgz3NY8; Thu, 6 May 2021 03:49:10 +0000 (UTC) (envelope-from fluffy@FreeBSD.org) Received: from [192.168.1.6] (host.212-19-20-216.broadband.redcom.ru [212.19.20.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fluffy) by smtp.freebsd.org (Postfix) with ESMTPSA id 9A11F2562F; Thu, 6 May 2021 03:49:09 +0000 (UTC) (envelope-from fluffy@FreeBSD.org) Date: Thu, 6 May 2021 13:49:06 +1000 From: Dima Panov To: Chris , Yasuhiro Kimura Cc: freebsd-ports@freebsd.org Message-ID: In-Reply-To: <154fe2a4cccad0fb69ef5215fe265456@bsdforge.com> References: <8151EFB0-635D-4648-AF0B-653E45584F1A@grem.de> <20210505.232208.1752175478734160028.yasu@utahime.org> <20210506.011037.2056308540818173996.yasu@utahime.org> <154fe2a4cccad0fb69ef5215fe265456@bsdforge.com> Subject: Re: Making a port to use OpenSSL of ports collection on FreeBSD 11.x MIME-Version: 1.0 Content-Type: multipart/signed; boundary="60936732_46e87ccd_10d27"; protocol="application/pgp-signature" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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 03:49:11 -0000 --60936732_46e87ccd_10d27 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Moin=21 Chris, your suggestion leads to dll hell due to mix-links between ssl lib= raries :( At least, your setup easily face up situation where one lib will be built= with =E2=80=9Cport openss=E2=80=9D and consumers still get a =E2=80=9Cba= se openssl=E2=80=9D. DE=46AULT=5FVERSION here is set to avoid a such situ= ation =E2=80=94 the whole ports collection should be linked with ONE ssl/= crypto library. -- Dima. (desktop, kde, x11, office, ports-secteam)=40=46reeBSD team (fluffy=40=46reeBSD.org, https://t.me/dima=5Fpanov) > On Thursday, May 06, 2021 at 6:26 AM, Chris wrote: > On 2021-05-05 09:10, Yasuhiro Kimura wrote: > > =46rom: Chris > > Subject: Re: Making a port to use OpenSSL of ports collection on =46r= eeBSD > > 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 freebs= d > > > version, that also included a RUN=5FDEPENDS on security/openssl > > > Wouldn't that work in your case=3F > > > > > > --Chris > > > > Probably only adding security/openssl to *=5FDEPENDS 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 =24=7BOSREL:R=7D tar= geting > 11 && within that conditional add ssl=3Dopenssl > It worked a treat. You may find some additional clues in > bsd.default-versions.mk > > HTH > > --Chris > > > > --- > > Yasuhiro Kimura > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > > freebsd-ports=40freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > > To unsubscribe, send any mail to =22freebsd-ports-unsubscribe=40freeb= sd.org=22 > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > freebsd-ports=40freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to =22freebsd-ports-unsubscribe=40freebsd= .org=22 --60936732_46e87ccd_10d27 Content-Type: application/pgp-signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: Canary PGP V3 iQJVBAABCgA/OBxEaW1hIFBhbm92IChGcmVlQlNELk9SRyBDb21taXR0ZXIpIDxm bHVmZnlARnJlZUJTRC5PUkc+BQJgk2cxAAoJEPuLoJ3VOY8p8OsQAOhClVCtfZ9N GKFEx1girABwc+Max/aRv0VqGoX6mzzg1Vu74NzyinJLfFWBco/ulc+ZipANsa3z 3GSwBnM6JY81AZOiaRJBsmn7nt0VvREexm8vId7Nz+ALAlxSo6qOz+9mPU4ZB1pu vrFA8wv7iFprLmjWbVGrD/fECw1xSQAqVtMpQXvVhppQ2+OEW4z1aukLalXSGrDX 7GeHW9DuMc5uROJj7No8Z8GpkwsfIBG17U+2SHrEyKAgLzva9Gr3wVfcWRWO1R+Z 4du5PKlrjpahUXrDZ5HQ550Sbv9HeoYieiCuq6fdgpNp1OGhcn3hqNJ9DNRUnGj2 fSU/lsXn6yTo052PTc5nQQyQVIMIe1gnBERtRkdBWO9qNlXpK5WYp7P7XG8q/Hvs Sf6a+6R/gLGEjl3fG7IX3IB4YPiEVpHYYuk5tdy3t+5IZfvkmx9OdFFdZ2fs7nm9 Mwr/4T0MPBd3WtLY7UeQKXCM9cNOTkvibAY+iUNpZQoW21mEvH2HfMC4ShosK+B1 LgtDjepiL6hTBE1GfBaIM+NKM2ppkVWSdgnRwsKbgFvACaH40MriCTzszpUE+UUI 5f1CR4meSASVviDkqy7VyeAzMZjNzMV37WqhBscGRSy5AymursOFBpbEqkkZwThj /lx0uLjh2ekVZUeiYvzOmI2TmpLyWmj0 =JeGx -----END PGP SIGNATURE----- --60936732_46e87ccd_10d27--