diff --git a/security/palisade/Makefile b/security/palisade/Makefile index b0feeb7aeb5b..32c8e2fb566f 100644 --- a/security/palisade/Makefile +++ b/security/palisade/Makefile @@ -1,57 +1,57 @@ PORTNAME= palisade DISTVERSIONPREFIX= v DISTVERSION= 1.11.9 CATEGORIES= security math MAINTAINER= yuri@FreeBSD.org COMMENT= PALISADE lattice cryptography library for Fully Homomorphic Encryption WWW= https://palisade-crypto.org LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= fails to build: a declaration of 'Mul128' must be available BUILD_DEPENDS= autoconf:devel/autoconf # possibly a mistake in the project USES= cmake:noninja,testing localbase # compiler:c++11-lang USE_GITLAB= yes USE_GITHUB= nodefault GL_PROJECT= palisade-release # there's also palisade-development GL_TAGNAME= 3d1f9a3f9fd389df1f8f27f286511f4f5871258b GH_TUPLE= \ JerryRyan:cereal:a384b101:cereal/third-party/cereal \ google:benchmark:e451e50e:benchmark/third-party/google-benchmark \ google:googletest:8b4817e3:google_test/third-party/google-test USE_LDCONFIG= yes -CMAKE_OFF= BUILD_UNITTESTS BUILD_EXAMPLES BUILD_BENCHMARKS WITH_WERROR +CMAKE_OFF= BUILD_UNITTESTS BUILD_EXAMPLES BUILD_BENCHMARKS CMAKE_OFF+= WITH_NTL # https://gitlab.com/palisade/palisade-development/-/issues/180 CMAKE_ARGS= -DWITH_NTL=Y # libntl.so will be discontinued in 1.11, see https://gitlab.com/palisade/palisade-development/-/issues/180 CMAKE_TESTING_ON= BUILD_UNITTESTS CMAKE_TESTING_TARGET= testall CXXFLAGS+= -I${WRKSRC}/third-party/google-test/googletest BINARY_ALIAS= git=false LDFLAGS+= -pthread # only for tests: see https://gitlab.com/palisade/palisade-release/-/issues/23 OPTIONS_DEFINE= OPENMP HEXL .if exists(/usr/include/omp.h) OPTIONS_DEFAULT= OPENMP .endif HEXL_DESC= Use Intel Hexl Library OPENMP_CMAKE_BOOL= WITH_OPENMP HEXL_CMAKE_BOOL= WITH_HEXL HEXL_LIB_DEPENDS= libhexl.so:security/hexl .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) CXXFLAGS+= -Wno-error=unused-but-set-variable .endif .include diff --git a/security/palisade/files/patch-CMakeLists.txt b/security/palisade/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..08da4d305d39 --- /dev/null +++ b/security/palisade/files/patch-CMakeLists.txt @@ -0,0 +1,15 @@ +- remove -Werror to fix build errors on 15 + +--- CMakeLists.txt.orig 2024-05-03 18:15:41 UTC ++++ CMakeLists.txt +@@ -173,8 +173,8 @@ endif() + set (NATIVE_OPT "") + endif() + +-set(C_COMPILE_FLAGS "-Wall -Werror -O3 ${NATIVE_OPT} -DPALISADE_VERSION=${PALISADE_VERSION}") +-set(CXX_COMPILE_FLAGS "-Wall -Werror -O3 ${NATIVE_OPT} -DPALISADE_VERSION=${PALISADE_VERSION} ${IGNORE_WARNINGS}") ++set(C_COMPILE_FLAGS "-Wall ${NATIVE_OPT} -DPALISADE_VERSION=${PALISADE_VERSION}") ++set(CXX_COMPILE_FLAGS "-Wall ${NATIVE_OPT} -DPALISADE_VERSION=${PALISADE_VERSION} ${IGNORE_WARNINGS}") + + if ( EMSCRIPTEN ) + set(EMSCRIPTEN_IGNORE_WARNINGS "-Wno-unused-but-set-variable -Wno-unknown-warning-option")