git: c80f4950824f - main - benchmarks/lzbench: try to unbreak the port's build against newer Clang
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 May 2025 02:42:12 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c80f4950824f748d68724d3e7a8f26571fff3db3
commit c80f4950824f748d68724d3e7a8f26571fff3db3
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-05-16 02:41:04 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-05-16 02:41:04 +0000
benchmarks/lzbench: try to unbreak the port's build against newer Clang
As of September 2023 (llvmorg-18.1.0-rc1) /usr/include/c++/v1/__config
no longer includes <sys/endian.h>, because both Clang and GCC always
define __BYTE_ORDER__ macro. This had accidentally revealed a problem
in Kanzi data compressor which was including <machine/endian.h> to no
avail. Replace it with <sys/endian.h> to obtain bswap??() definitions.
Reported by: pkg-fallout
PR: 285285
LLVM commit: https://github.com/llvm/llvm-project/commit/0a97720
---
benchmarks/lzbench/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/benchmarks/lzbench/Makefile b/benchmarks/lzbench/Makefile
index 7ba7e581ae85..effaa5f3d436 100644
--- a/benchmarks/lzbench/Makefile
+++ b/benchmarks/lzbench/Makefile
@@ -22,6 +22,8 @@ post-patch:
${WRKSRC}/_lzbench/lzbench.h
@${REINPLACE_CMD} -e 's,shell echo|$$(CC),& 2>/dev/null,' \
${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e '/^#if defined(__FreeBSD__)/,+1s,machine,sys,' \
+ ${WRKSRC}/kanzi-cpp/src/Memory.hpp
@${REINPLACE_CMD} -e '/pithy_Load64/s,vld1_u64(,&(uint64_t *),' \
${WRKSRC}/pithy/pithy.cpp
@${REINPLACE_CMD} -e '/^#if/s,defined(__aarch64__),& ||\