pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/xxhash xxhash: Fix build on C11 systems
details: https://anonhg.NetBSD.org/pkgsrc/rev/18adf43edebe
branches: trunk
changeset: 376016:18adf43edebe
user: sborrill <sborrill%pkgsrc.org@localhost>
date: Thu Mar 31 15:36:08 2022 +0000
description:
xxhash: Fix build on C11 systems
Pull up patch from dev branch:
https://github.com/Cyan4973/xxHash/commit/6189ecd3d44a693460f86280ccf49d33cb4b18e1
diffstat:
devel/xxhash/distinfo | 3 ++-
devel/xxhash/patches/patch-xxhash.h | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r b786c4b41562 -r 18adf43edebe devel/xxhash/distinfo
--- a/devel/xxhash/distinfo Thu Mar 31 15:29:41 2022 +0000
+++ b/devel/xxhash/distinfo Thu Mar 31 15:36:08 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2021/12/16 16:49:41 adam Exp $
+$NetBSD: distinfo,v 1.9 2022/03/31 15:36:08 sborrill Exp $
BLAKE2s (xxhash-0.8.1.tar.gz) = b12deeb6870753b0ed70b745142c64155252501b813ae0874d5df5a4ee2e677b
SHA512 (xxhash-0.8.1.tar.gz) = 12feedd6a1859ef55e27218dbd6dcceccbb5a4da34cd80240d2f7d44cd246c7afdeb59830c2d5b90189bb5159293532208bf5bb622250102e12d6e1bad14a193
Size (xxhash-0.8.1.tar.gz) = 171552 bytes
SHA1 (patch-Makefile) = 05aec11dadf1a909e3aaa44d77dad9f42927b6b9
+SHA1 (patch-xxhash.h) = 7f1bf20961c7ec61a326a280277bf6fbf5deda1e
diff -r b786c4b41562 -r 18adf43edebe devel/xxhash/patches/patch-xxhash.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/xxhash/patches/patch-xxhash.h Thu Mar 31 15:36:08 2022 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-xxhash.h,v 1.1 2022/03/31 15:36:08 sborrill Exp $
+
+No longer depend on `<assert.h>` for XXH_STATIC_ASSERT since some
+versions are buggy.
+
+Use `_Static_assert` instead, which is part of the C11 language.
+
+https://github.com/Cyan4973/xxHash/issues/671
+https://github.com/Cyan4973/xxHash/commit/6189ecd3d44a693460f86280ccf49d33cb4b18e1
+--- xxhash.h.orig 2021-11-29 12:34:10.000000000 -0600
++++ xxhash.h 2021-12-28 19:55:42.000000000 -0600
+@@ -1546,8 +1546,7 @@
+ /* note: use after variable declarations */
+ #ifndef XXH_STATIC_ASSERT
+ # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
+-# include <assert.h>
+-# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
++# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { _Static_assert((c),m); } while(0)
+ # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* C++11 */
+ # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
+ # else
Home |
Main Index |
Thread Index |
Old Index