pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

openssl3: fix build on macOS



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Wed Sep 6 22:05:16 2023 +0200
Changeset:	6b30d400d30d6db070e02a1e4b21bbd817d62ff1

Modified Files:
	openssl3/Makefile
	openssl3/PLIST

Log Message:
openssl3: fix build on macOS

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6b30d400d30d6db070e02a1e4b21bbd817d62ff1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 openssl3/Makefile | 8 +++++---
 openssl3/PLIST    | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs:
diff --git a/openssl3/Makefile b/openssl3/Makefile
index 7247524c84..1f7c325479 100644
--- a/openssl3/Makefile
+++ b/openssl3/Makefile
@@ -38,11 +38,13 @@ CONFIGURE_ARGS+=	no-async
 PLIST_VARS+=		devcrypto afalg
 # the AF_ALG engine is supported only on Linux, where it
 # is used instead of the BSD /dev/crypto engine.
-.if ${OPSYS} == "Linux" && !exists(/dev/crypto)
+.if ${OPSYS} == "Linux"
 PLIST.afalg=		yes
-.else
-CONFIGURE_ARGS+=	no-afalgeng
+.endif
+.if exists(/dev/crypto)
 PLIST.devcrypto=	yes
+.else
+CONFIGURE_ARGS+=	no-devcryptoeng
 .endif
 
 # Fix 64-bit build on at least Mac OS X Snow Leopard
diff --git a/openssl3/PLIST b/openssl3/PLIST
index 7a6112a440..c566a5a37c 100644
--- a/openssl3/PLIST
+++ b/openssl3/PLIST
@@ -147,7 +147,7 @@ lib/libcrypto.so.3
 lib/libssl.a
 lib/libssl.so
 lib/libssl.so.3
-lib/ossl-modules/legacy.so
+lib/ossl-modules/legacy.${SOEXT}
 lib/pkgconfig/libcrypto.pc
 lib/pkgconfig/libssl.pc
 lib/pkgconfig/openssl.pc


Home | Main Index | Thread Index | Old Index