Making a port to use OpenSSL of ports collection on FreeBSD 11.x

Dima Panov fluffy at FreeBSD.org
Thu May 6 03:49:11 UTC 2021


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.

--
Dima. (desktop, kde, x11, office, ports-secteam)@FreeBSD team
(fluffy at FreeBSD.org, https://t.me/dima_panov)

> On Thursday, May 06, 2021 at 6:26 AM, Chris <portmaster at bsdforge.com (mailto:portmaster at bsdforge.com)> wrote:
> On 2021-05-05 09:10, Yasuhiro Kimura wrote:
> > From: Chris <portmaster at bsdforge.com>
> > 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 at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20210506/6990b7e7/attachment.sig>


More information about the freebsd-ports mailing list