summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-11-27 22:12:25 +0000
committernia <nia@pkgsrc.org>2022-11-27 22:12:25 +0000
commit93020ac5ceabc53be75b45303c50e7b1da96cba0 (patch)
tree0f3e393f1f29e557be539db0c80f40d8be82a674 /databases
parenteef0fdbc22d33040d747f433debaf712479bc6d5 (diff)
downloadpkgsrc-93020ac5ceabc53be75b45303c50e7b1da96cba0.tar.gz
mysql80: Build fix for NetBSD 9
Diffstat (limited to 'databases')
-rw-r--r--databases/mysql80-client/distinfo3
-rw-r--r--databases/mysql80-client/patches/patch-include_violite.h20
2 files changed, 22 insertions, 1 deletions
diff --git a/databases/mysql80-client/distinfo b/databases/mysql80-client/distinfo
index 958c6ace4e2..e67f4f0a247 100644
--- a/databases/mysql80-client/distinfo
+++ b/databases/mysql80-client/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2022/11/26 12:25:22 nia Exp $
+$NetBSD: distinfo,v 1.8 2022/11/27 22:12:25 nia Exp $
BLAKE2s (mysql-boost-8.0.31.tar.gz) = 2da23b9233a2c5060aa22074cbe990d0dc1d90b2e55a4cd4b32571d2c77fe3bf
SHA512 (mysql-boost-8.0.31.tar.gz) = 87b1678de8c2fd640fd6f3ae58266ea63fe240578330e3296d0e5fc209bbe9b0c22996214b6ca4cce8c0d9cc2f9897f4e6723d835b33fc4342983c82929c3d96
@@ -15,6 +15,7 @@ SHA1 (patch-include_my__compare.h) = b66c8cebef8ab3328201fe4c7433a484ba83e203
SHA1 (patch-include_my__thread.h) = a88fee119c9a9e2c89e54c8b59555b0d5100cbcc
SHA1 (patch-include_my__thread__os__id.h) = 383923523623d0811915d5d75c523904102dcf43
SHA1 (patch-include_tables__contained__in.h) = c332b10760ef8b7f16b1e94821b79589f525e4e7
+SHA1 (patch-include_violite.h) = adbdf539d2ec0e225e1c38a7a1ec8b4cfb28f4d0
SHA1 (patch-libmysql_CMakeLists.txt) = cbc2185e52194de1bcdfe5e2af7bfc857e747acd
SHA1 (patch-mysys_kqueue__timers.cc) = 837474b779c24dd0af67444c2adbcf07b73e0d36
SHA1 (patch-mysys_stacktrace.cc) = 6792ceaae3c3b0d70bd8b6c848a128d50397e6f4
diff --git a/databases/mysql80-client/patches/patch-include_violite.h b/databases/mysql80-client/patches/patch-include_violite.h
new file mode 100644
index 00000000000..5ed427c520b
--- /dev/null
+++ b/databases/mysql80-client/patches/patch-include_violite.h
@@ -0,0 +1,20 @@
+$NetBSD: patch-include_violite.h,v 1.1 2022/11/27 22:12:25 nia Exp $
+
+pthread_t on NetBSD is a pointer to a struct. To account for the
+C++ type system we need to use an actual NULL pointer rather than
+an incompatible integer type.
+
+--- include/violite.h.orig 2022-09-13 16:15:16.000000000 +0000
++++ include/violite.h
+@@ -343,7 +343,11 @@ struct Vio {
+ It is initialized to 0 here, meaning don't attempt to send a signal, to
+ keep non-server code unaffected.
+ */
++#ifdef __NetBSD__
++ std::optional<my_thread_t> thread_id = nullptr;
++#else
+ std::optional<my_thread_t> thread_id = 0;
++#endif
+ sigset_t signal_mask; // Signal mask
+ /*
+ Flag to indicate whether we are in poll or shutdown.