diff options
author | jperkin <jperkin@pkgsrc.org> | 2019-11-29 10:34:13 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2019-11-29 10:34:13 +0000 |
commit | d5d43e81d04022fc588896eade0ab9dd3c40e16b (patch) | |
tree | a5cc6e160717c0ca729a94b0cb5e9d81904751d5 /graphics/MesaLib | |
parent | f3c5a996766c68b707bcbbebb0f493267cdd3157 (diff) | |
download | pkgsrc-d5d43e81d04022fc588896eade0ab9dd3c40e16b.tar.gz |
MesaLib: Work around timespec_get configure test issue on Darwin.
The meson configure test reports success, even when providing it with clearly
bogus values (like compiling with -std=c89 even though the headers limit the
visibility of timespec_get to >= c11), so just always use the compat version.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r-- | graphics/MesaLib/distinfo | 3 | ||||
-rw-r--r-- | graphics/MesaLib/patches/patch-include_c11_threads__posix.h | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/graphics/MesaLib/distinfo b/graphics/MesaLib/distinfo index 1de9e0dcdd9..8b73b94ef76 100644 --- a/graphics/MesaLib/distinfo +++ b/graphics/MesaLib/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.143 2019/11/28 14:35:07 jperkin Exp $ +$NetBSD: distinfo,v 1.144 2019/11/29 10:34:13 jperkin Exp $ SHA1 (mesa-19.2.4.tar.xz) = 85cc1b57840f14d720f806f8160356b8c9b13a7f RMD160 (mesa-19.2.4.tar.xz) = f2c7d454fb67cc27bf28de3ea4f5c85979523e96 SHA512 (mesa-19.2.4.tar.xz) = e8a0e90460f3153d730f8fb13f2c912a9826c05d2af9e22dc575bcd8885bf6a33c0af1c6659e81701ff097a132df88eead208e89dceb552b9da809ab543fa479 Size (mesa-19.2.4.tar.xz) = 11458340 bytes +SHA1 (patch-include_c11_threads__posix.h) = e1dca04b5c514d20123ef99338c6dabedbc14c5f SHA1 (patch-src_amd_common_ac__debug.c) = 8233367c3b5bc344442ea8d19488fdd1e3791ae9 SHA1 (patch-src_compiler_builtin__type__macros.h) = e4868011711fb89a293580a12eb603b8e7162336 SHA1 (patch-src_compiler_glsl_glsl__parser__extras.cpp) = ef114d6e288e6d212fce9d1c0606f7d454a171c4 diff --git a/graphics/MesaLib/patches/patch-include_c11_threads__posix.h b/graphics/MesaLib/patches/patch-include_c11_threads__posix.h new file mode 100644 index 00000000000..9b61b6ce05d --- /dev/null +++ b/graphics/MesaLib/patches/patch-include_c11_threads__posix.h @@ -0,0 +1,17 @@ +$NetBSD: patch-include_c11_threads__posix.h,v 1.1 2019/11/29 10:34:13 jperkin Exp $ + +Use compat version of timespec_get regardless on Darwin. The +meson configure test completes successfully even with clearly +bogus values. + +--- include/c11/threads_posix.h.orig 2019-11-22 00:06:57.000000000 +0000 ++++ include/c11/threads_posix.h +@@ -382,7 +382,7 @@ tss_set(tss_t key, void *val) + + /*-------------------- 7.25.7 Time functions --------------------*/ + // 7.25.6.1 +-#ifndef HAVE_TIMESPEC_GET ++#if !defined(HAVE_TIMESPEC_GET) || defined(__APPLE__) + static inline int + timespec_get(struct timespec *ts, int base) + { |