pkgsrc-Changes archive

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

CVS commit: pkgsrc/audio/jack



Module Name:    pkgsrc
Committed By:   tnn
Date:           Sat Mar 26 22:36:20 UTC 2022

Modified Files:
        pkgsrc/audio/jack: distinfo
Added Files:
        pkgsrc/audio/jack/patches: patch-posix_JackPosixThread.h

Log Message:
jack: fix build on SunOS


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/audio/jack/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/audio/jack/patches/patch-posix_JackPosixThread.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/jack/distinfo
diff -u pkgsrc/audio/jack/distinfo:1.31 pkgsrc/audio/jack/distinfo:1.32
--- pkgsrc/audio/jack/distinfo:1.31     Tue Oct 26 09:59:03 2021
+++ pkgsrc/audio/jack/distinfo  Sat Mar 26 22:36:19 2022
@@ -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-netbsd_sun_JackSunDriver.h) 
 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

Added files:

Index: pkgsrc/audio/jack/patches/patch-posix_JackPosixThread.h
diff -u /dev/null pkgsrc/audio/jack/patches/patch-posix_JackPosixThread.h:1.1
--- /dev/null   Sat Mar 26 22:36:20 2022
+++ pkgsrc/audio/jack/patches/patch-posix_JackPosixThread.h     Sat Mar 26 22:36:20 2022
@@ -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