Date: Mon, 25 Jul 2022 04:36:07 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Subject: git: 86cd004883ed - 2022Q3 - security/liboqs: Fix build on non-amd64 architectures Message-ID: <202207250436.26P4a7Pb064435@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch 2022Q3 has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=86cd004883ed46cad02c2a230a7a5013b73d09e4 commit 86cd004883ed46cad02c2a230a7a5013b73d09e4 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:36:02 +0000 security/liboqs: Fix build on non-amd64 architectures BIKE algorithm is limited by architecture and its files are only installed on amd64. (cherry picked from commit 2863100bb0091ace386be1c59582895565371b44) --- 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 3281d4ebfa70..eb6fcf05bb23 100644 --- a/security/liboqs/Makefile +++ b/security/liboqs/Makefile @@ -31,4 +31,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?202207250436.26P4a7Pb064435>