git: 762e37327837 - 2023Q4 - security/lastpass-cli: ensure consistent OpenSSL usage

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 19 Oct 2023 07:10:35 UTC
The branch 2023Q4 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=762e37327837dbc4ea55c0c22620fc05907e0c28

commit 762e37327837dbc4ea55c0c22620fc05907e0c28
Author:     John W. O'Brien <john@saltant.com>
AuthorDate: 2023-10-16 05:33:26 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-10-19 07:10:08 +0000

    security/lastpass-cli: ensure consistent OpenSSL usage
    
    The recent change, switching security/openssl from 1.1.1w to 3.0.11
    uncovered a latent bug in security/lastpass-cli, which always uses
    OpenSSL from base regardless of the ssl setting in DEFAULT_VERSIONS.
    With DEFAULT_VERSIONS+=ssl=openssl, the configure phase reports
    "Installing openssl-3.0.11,1" and subsequently
    
        -- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1t")
    
    This patch fixes the bug and ensures the same OpenSSL version is used
    throughout.
    
    PR:             274507
    MFH:            2023Q4
    (cherry picked from commit 76da322580253a6aaad9c9ec0fdc6a5427242865)
---
 security/lastpass-cli/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/security/lastpass-cli/Makefile b/security/lastpass-cli/Makefile
index 211483000b59..2bc298d54abf 100644
--- a/security/lastpass-cli/Makefile
+++ b/security/lastpass-cli/Makefile
@@ -41,6 +41,8 @@ PINENTRY_RUN_DEPENDS=	pinentry:security/pinentry
 XCLIP_RUN_DEPENDS=	xclip:x11/xclip
 XSEL_RUN_DEPENDS=	xsel:x11/xsel-conrad
 
+CMAKE_ARGS+=	-DOPENSSL_ROOT_DIR=${OPENSSLBASE}
+
 post-extract:
 	@${REINPLACE_CMD} -e 's/-Wno-language-extension-token//g' \
 		${WRKSRC}/CMakeLists.txt