pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/jack jack: fix build on SunOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46b2eb13c635
branches:  trunk
changeset: 375789:46b2eb13c635
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Mar 26 22:36:19 2022 +0000

description:
jack: fix build on SunOS

diffstat:

 audio/jack/distinfo                              |   3 ++-
 audio/jack/patches/patch-posix_JackPosixThread.h |  20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r ab7f1aa10211 -r 46b2eb13c635 audio/jack/distinfo
--- a/audio/jack/distinfo       Sat Mar 26 22:06:10 2022 +0000
+++ b/audio/jack/distinfo       Sat Mar 26 22:36:19 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2021/10/26 09:59:03 nia Exp $
+$NetBSD: distinfo,v 1.32 2022/03/26 22:36:19 tnn Exp $
 
 BLAKE2s (jack2-1.9.19.tar.gz) = aa43a3ae606c00e7c8e047e89250e068717f44fa0443b8531a6d83ca2a9dff71
 SHA512 (jack2-1.9.19.tar.gz) = d8d5fe17e2984959546af3c53f044aa4648860e19ff8ffd54452e87fa6cdfd111f825c57e3df17cb8ed95de8392b6f354b12ded41e3e021a37f07b99a89ba18d
@@ -18,6 +18,7 @@
 SHA1 (patch-posix_JackNetUnixSocket.cpp) = 562242daf7c0f296bfcd03f468518aaf18d995d9
 SHA1 (patch-posix_JackNetUnixSocket.h) = ce9a9255dc0dd423562b94b0fcc1012c8ba3a37e
 SHA1 (patch-posix_JackPosixSemaphore.cpp) = 59425ada11a5cab83159691ae10a23c0d36750ef
+SHA1 (patch-posix_JackPosixThread.h) = 0aa94425ad44cc36fb583e48bdfa9f5f33a5eaa3
 SHA1 (patch-posix_JackSocket.cpp) = 88ae18c3d2cc31a43355ff9b0c78ab13b83bd314
 SHA1 (patch-tests_wscript) = e0bf616175a116df489808cda8cb8c70890d4da0
 SHA1 (patch-tools_wscript) = fab7472b29fc6e46ba1e8ca94c12aa8808b075da
diff -r ab7f1aa10211 -r 46b2eb13c635 audio/jack/patches/patch-posix_JackPosixThread.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack/patches/patch-posix_JackPosixThread.h  Sat Mar 26 22:36:19 2022 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-posix_JackPosixThread.h,v 1.1 2022/03/26 22:36:20 tnn Exp $
+
+Cast from from std::nullptr_t to pthread_t is not safe, because
+size can be different. On SunOS LP64, pthread_t is unsigned int.
+
+--- posix/JackPosixThread.h.orig       2021-07-15 06:18:26.000000000 +0000
++++ posix/JackPosixThread.h
+@@ -46,10 +46,10 @@ class SERVER_EXPORT JackPosixThread : pu
+     public:
+ 
+         JackPosixThread(JackRunnableInterface* runnable, bool real_time, int priority, int cancellation)
+-                : JackThreadInterface(runnable, priority, real_time, cancellation), fThread((jack_native_thread_t)NULL)
++                : JackThreadInterface(runnable, priority, real_time, cancellation), fThread((jack_native_thread_t)0)
+         {}
+         JackPosixThread(JackRunnableInterface* runnable, int cancellation = PTHREAD_CANCEL_ASYNCHRONOUS)
+-                : JackThreadInterface(runnable, 0, false, cancellation), fThread((jack_native_thread_t)NULL)
++                : JackThreadInterface(runnable, 0, false, cancellation), fThread((jack_native_thread_t)0)
+         {}
+ 
+         int Start();



Home | Main Index | Thread Index | Old Index