Date: Mon, 21 Oct 2024 09:37:12 GMT From: Robert Clausecker <fuz@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: dfeab5d38571 - main - net-mgmt/ipfixcol2: port to aarch64 Message-ID: <202410210937.49L9bCBB032820@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=dfeab5d38571c9b6bc90c0c23c948d55d0659caf commit dfeab5d38571c9b6bc90c0c23c948d55d0659caf Author: Robert Clausecker <fuz@FreeBSD.org> AuthorDate: 2024-10-15 16:39:08 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2024-10-21 09:36:01 +0000 net-mgmt/ipfixcol2: port to aarch64 - use sse2neon to implement SSE intrinsics on AArch64 Approved by: zarychtam@plan-b.pwste.edu.pl (maintainer) PR: 282113 --- net-mgmt/ipfixcol2/Makefile | 7 ++++--- .../patch-src_tools_fdsdump_src_aggregator_hashTable.cpp | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/net-mgmt/ipfixcol2/Makefile b/net-mgmt/ipfixcol2/Makefile index 59aca4ede7a7..38ff4557deae 100644 --- a/net-mgmt/ipfixcol2/Makefile +++ b/net-mgmt/ipfixcol2/Makefile @@ -10,15 +10,16 @@ WWW= https://github.com/CESNET/ipfixcol2 LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= Require SSE2 and static_assert(sizeof(uint64_t) == sizeof(time_t), "Assumed that time_t is uint64_t, but it's not") -BUILD_DEPENDS= rst2man:textproc/py-docutils +BUILD_DEPENDS_aarch64= ${LOCALBASE}/include/sse2neon.h:devel/sse2neon +BUILD_DEPENDS= rst2man:textproc/py-docutils ${BUILD_DEPENDS_${ARCH}} LIB_DEPENDS= librdkafka.so:net/librdkafka \ libepoll-shim.so:devel/libepoll-shim \ libfds.so:net-mgmt/libfds -USES= cmake localbase:ldflags pkgconfig +USES= cmake:testing localbase:ldflags pkgconfig USE_GITHUB= yes GH_ACCOUNT= CESNET USE_RC_SUBR= ${PORTNAME} diff --git a/net-mgmt/ipfixcol2/files/patch-src_tools_fdsdump_src_aggregator_hashTable.cpp b/net-mgmt/ipfixcol2/files/patch-src_tools_fdsdump_src_aggregator_hashTable.cpp new file mode 100644 index 000000000000..250fa05e6475 --- /dev/null +++ b/net-mgmt/ipfixcol2/files/patch-src_tools_fdsdump_src_aggregator_hashTable.cpp @@ -0,0 +1,14 @@ +--- src/tools/fdsdump/src/aggregator/hashTable.cpp.orig 2024-10-15 16:33:15 UTC ++++ src/tools/fdsdump/src/aggregator/hashTable.cpp +@@ -6,7 +6,11 @@ + + #define XXH_INLINE_ALL + ++#if defined(__arm__) || defined(__aarch64__) ++#include <sse2neon.h> ++#else + #include <xmmintrin.h> ++#endif + + #include "hashTable.hpp" + #include "3rd_party/xxhash/xxhash.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410210937.49L9bCBB032820>