Date: Mon, 25 Jul 2022 04:35:46 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 2863100bb009 - main - security/liboqs: Fix build on non-amd64 architectures Message-ID: <202207250435.26P4Zk5l064281@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=2863100bb0091ace386be1c59582895565371b44 commit 2863100bb0091ace386be1c59582895565371b44 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-07-25 04:34:42 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-07-25 04:35:44 +0000 security/liboqs: Fix build on non-amd64 architectures BIKE algorithm is limited by architecture and its files are only installed on amd64. --- security/liboqs/Makefile | 8 ++++++++ security/liboqs/pkg-plist | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/security/liboqs/Makefile b/security/liboqs/Makefile index 621360a7e59a..ef66fd0f5c66 100644 --- a/security/liboqs/Makefile +++ b/security/liboqs/Makefile @@ -28,4 +28,12 @@ TEST_TARGET= run_tests BINARY_ALIAS= python3=${PYTHON_CMD} +.include <bsd.port.options.mk> + +.if ${ARCH} == amd64 +PLIST_SUB+= KEM_BIKE="" # BIKE algorithm is limited by architecture in .CMake/alg_support.cmake +.else +PLIST_SUB+= KEM_BIKE="@comment " +.endif + .include <bsd.port.mk> diff --git a/security/liboqs/pkg-plist b/security/liboqs/pkg-plist index 5b7dfb5ebd6d..c038e3589494 100644 --- a/security/liboqs/pkg-plist +++ b/security/liboqs/pkg-plist @@ -1,7 +1,7 @@ include/oqs/aes.h include/oqs/common.h include/oqs/kem.h -include/oqs/kem_bike.h +%%KEM_BIKE%%include/oqs/kem_bike.h include/oqs/kem_classic_mceliece.h include/oqs/kem_frodokem.h include/oqs/kem_hqc.h @@ -9,7 +9,7 @@ include/oqs/kem_kyber.h include/oqs/kem_ntru.h include/oqs/kem_ntruprime.h include/oqs/kem_saber.h -include/oqs/kem_sike.h +%%KEM_BIKE%%include/oqs/kem_sike.h include/oqs/oqs.h include/oqs/oqsconfig.h include/oqs/rand.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207250435.26P4Zk5l064281>