Paul Hoffman
2014-May-03 16:35 UTC
Fwd: ports/189208: Add a mention of WITH_OPENSSL_PORT to the pkg-descr of security/openssl
Note that the description below does *not* match what people were saying last week about how things work. My reading of the earlier thread was that, unless you had WITH_OPENSSL_PORT=yes in /etc/make.conf, a port needing OpenSSL would make with OpenSSL from the base. I am not a porter and wouldn't know where to look in the code, so I can't figure out which is right. But it is clear that this is worth clarifying both in the openssl pkg-descr *and* in the make.conf man page. --Paul Hoffman Begin forwarded message:> From: dinoex at FreeBSD.org > Subject: Re: ports/189208: Add a mention of WITH_OPENSSL_PORT to the pkg-descr of security/openssl > Date: May 3, 2014 at 9:19:37 AM PDT > To: phoffman at proper.com, dinoex at FreeBSD.org, dinoex at FreeBSD.org > > Synopsis: Add a mention of WITH_OPENSSL_PORT to the pkg-descr of security/openssl > > State-Changed-From-To: open->feedback > State-Changed-By: dinoex > State-Changed-When: Sat May 3 18:16:54 CEST 2014 > State-Changed-Why: > > The description is not correct. > > WITH_OPENSSL_PORT=yes > > Will force a port with USE_SSL to install the openssl port first. > > once the openssl port is installed, > all ports with USE_SSL with link to the openssl port, > regardless of WITH_OPENSSL_PORT. > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=189208 >
Scot Hetzel
2014-May-03 17:55 UTC
ports/189208: Add a mention of WITH_OPENSSL_PORT to the pkg-descr of security/openssl
On Sat, May 3, 2014 at 11:35 AM, Paul Hoffman <phoffman at proper.com> wrote:> Note that the description below does *not* match what people were saying last week about how things work. My reading of the earlier thread was that, unless you had WITH_OPENSSL_PORT=yes in /etc/make.conf, a port needing OpenSSL would make with OpenSSL from the base. > > I am not a porter and wouldn't know where to look in the code, so I can't figure out which is right. But it is clear that this is worth clarifying both in the openssl pkg-descr *and* in the make.conf man page. >bsd.openssl.mk has the falling checks: if WITH_OPENSSL_BASE is set, then use the base system's OpenSSL. if WITH_OPENSSL_BASE or WITH_OPENSSL_PORT are not set, check if ${LOCALBASE}/lib/libcrypto.so is installed, if it is then use the OpenSSL port, otherwise use the base system's OpenSSL. if WITH_OPENSSL_PORT is set, then use the OpenSSL port So, if you install the OpenSSL port first, then ports that require OpenSSL should be built against the OpenSSL Port. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.