FreeBSD Bugzilla – Attachment 254266 Details for
Bug 282113
net-mgmt/ipfixcol2: port to aarch64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
net-mgmt/ipfixcol2: port to aarch64
0001-net-mgmt-ipfixcol2-port-to-aarch64.patch (text/plain), 2.18 KB, created by
Robert Clausecker
on 2024-10-15 16:48:57 UTC
(
hide
)
Description:
net-mgmt/ipfixcol2: port to aarch64
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2024-10-15 16:48:57 UTC
Size:
2.18 KB
patch
obsolete
>From a0a2bb80d74059dd4b19c3a58630e431a510a805 Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@FreeBSD.org> >Date: Tue, 15 Oct 2024 18:39:08 +0200 >Subject: [PATCH] net-mgmt/ipfixcol2: port to aarch64 > > - use sse2neon to implement SSE intrinsics on AArch64 > >Approved by: ... >--- > net-mgmt/ipfixcol2/Makefile | 7 ++++--- > ...-src_tools_fdsdump_src_aggregator_hashTable.cpp | 14 ++++++++++++++ > 2 files changed, 18 insertions(+), 3 deletions(-) > create mode 100644 net-mgmt/ipfixcol2/files/patch-src_tools_fdsdump_src_aggregator_hashTable.cpp > >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" >-- >2.46.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval?
(
zarychtam
)
Actions:
View
|
Diff
Attachments on
bug 282113
: 254266