pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/MesaLib MesaLib: Work around timespec_get con...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a2486a23f862
branches:  trunk
changeset: 344967:a2486a23f862
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Nov 29 10:34:13 2019 +0000

description:
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:

 graphics/MesaLib/distinfo                                   |   3 +-
 graphics/MesaLib/patches/patch-include_c11_threads__posix.h |  17 +++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 190f03e60c99 -r a2486a23f862 graphics/MesaLib/distinfo
--- a/graphics/MesaLib/distinfo Fri Nov 29 09:46:36 2019 +0000
+++ b/graphics/MesaLib/distinfo Fri Nov 29 10:34:13 2019 +0000
@@ -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 -r 190f03e60c99 -r a2486a23f862 graphics/MesaLib/patches/patch-include_c11_threads__posix.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib/patches/patch-include_c11_threads__posix.h       Fri Nov 29 10:34:13 2019 +0000
@@ -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)
+ {



Home | Main Index | Thread Index | Old Index