diff options
| author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-07-22 09:52:54 +0000 |
|---|---|---|
| committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-07-22 09:53:03 +0000 |
| commit | 426c0efca9f0077e2ce01d73ed890edfffb3989a (patch) | |
| tree | 589a2f300e264115307b91601393cfa268549115 | |
| parent | 4f62d3170cfcef5198a0eba031e54a029ce8efa5 (diff) | |
| download | ports-426c0efca9f0077e2ce01d73ed890edfffb3989a.tar.gz ports-426c0efca9f0077e2ce01d73ed890edfffb3989a.zip | |
security/distcache: unbreak the build when using OpenSSL from ports
While appropriate --with-ssl=${OPENSSLBASE} switch is passed to the
configure script, the SSLeay_version -> OpenSSL_version adjustment
was performed not relative to ${OPENSSLINC}, which is wrong. Also,
this check cannot be executed at `post-patch' because OpenSSL from
ports is not yet available at this early stage.
PR: 236820
| -rw-r--r-- | security/distcache/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/distcache/Makefile b/security/distcache/Makefile index ab15fa121028..28688e72397c 100644 --- a/security/distcache/Makefile +++ b/security/distcache/Makefile @@ -23,8 +23,8 @@ PORTDOCS= ANNOUNCE BUGS CHANGES FAQ README OPTIONS_DEFINE= DOCS -post-patch: - @${GREP} -q 'define SSLeay_version' /usr/include/openssl/crypto.h \ +pre-configure: # yes, post-patch won't work in this case + @${GREP} -q 'define SSLeay_version' ${OPENSSLINC}/openssl/crypto.h \ && ${REINPLACE_CMD} -e 's,SSLeay_version,OpenSSL_version,' \ ${WRKSRC}/ssl/configure || : |
