Created attachment 235882 [details] Replace static_assert by _Static_assert in xxhash.h xxHash had a bug fixed in December 2021 regarding static_assert (https://github.com/Cyan4973/xxHash/pull/670). While they did not release a new version yet which would include this bugfix, it is affecting other ports, like backup/py-borgbackup. It would be nice to include this patch into the FreeBSD port so this library can be used again.
I'll claim this under portmgr@ blanket approval to fix downstream ports.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a4d5e26a9721eae2deba5fef794a2e593170658 commit 8a4d5e26a9721eae2deba5fef794a2e593170658 Author: Thierry Dussuet <thierry.dussuet@protonmail.com> AuthorDate: 2022-08-13 18:35:43 +0000 Commit: Matthias Andree <mandree@FreeBSD.org> CommitDate: 2022-08-13 18:43:27 +0000 devel/xxhash: fix static_assert to _Static_assert This fixes C11+ users of xxhash that do not #include <assert.h> PR: 265819 Approved by: portmgr@ (blanket, one-line fix to unbreak py-borgbackup) MFH: 2022Q3 devel/xxhash/Makefile | 2 +- devel/xxhash/files/patch-xxhash.h (new) | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-)
A commit in branch 2022Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4d45e445eb831ec162b4d92e89a7b83878d14f9d commit 4d45e445eb831ec162b4d92e89a7b83878d14f9d Author: Thierry Dussuet <thierry.dussuet@protonmail.com> AuthorDate: 2022-08-13 18:35:43 +0000 Commit: Matthias Andree <mandree@FreeBSD.org> CommitDate: 2022-08-13 18:52:06 +0000 devel/xxhash: fix static_assert to _Static_assert This fixes C11+ users of xxhash that do not #include <assert.h> PR: 265819 Approved by: portmgr@ (blanket, one-line fix to unbreak py-borgbackup) MFH: 2022Q3 (cherry picked from commit 8a4d5e26a9721eae2deba5fef794a2e593170658) devel/xxhash/Makefile | 2 +- devel/xxhash/files/patch-xxhash.h (new) | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-)