summaryrefslogtreecommitdiff
path: root/audio/jack/patches
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2008-11-16 11:22:55 +0000
committerbjs <bjs@pkgsrc.org>2008-11-16 11:22:55 +0000
commit1d500c5f484b06730c10f538d012c607bfc9d0f6 (patch)
tree99c00de2b6bae14bdc7144c8766bfa9497906adb /audio/jack/patches
parent6055ccc1bc5286e8dca4e029cd02beba7481c5c2 (diff)
downloadpkgsrc-1d500c5f484b06730c10f538d012c607bfc9d0f6.tar.gz
Update to jack-0.115.1 (from SVN). Changes: pulled in a patch
to [hopefully] correct errant behavior wrt: non-blocking I/O and sockets. This is presently untested, however. Also, with this snapshot we at least have the hope that the network facility works. Includes other miscellaneous bug fixes, also. While here, explicitly enable coreaudio on Darwin and add a PLIST entry for its driver module. This is also untested, but at least installation on Darwin will not fail due to an incorrect PLIST. Also, include ../../mk/dlopen.buildlink3.mk in our bl3.mk in order to heed DLOPEN_REQUIRE_PTHREADS.
Diffstat (limited to 'audio/jack/patches')
-rw-r--r--audio/jack/patches/patch-aa4
-rw-r--r--audio/jack/patches/patch-ab8
-rw-r--r--audio/jack/patches/patch-ac31
-rw-r--r--audio/jack/patches/patch-ad4
-rw-r--r--audio/jack/patches/patch-ae65
-rw-r--r--audio/jack/patches/patch-af4
-rw-r--r--audio/jack/patches/patch-ag4
-rw-r--r--audio/jack/patches/patch-ah4
-rw-r--r--audio/jack/patches/patch-ai4
-rw-r--r--audio/jack/patches/patch-ak17
-rw-r--r--audio/jack/patches/patch-am4
-rw-r--r--audio/jack/patches/patch-ao4
-rw-r--r--audio/jack/patches/patch-ap4
-rw-r--r--audio/jack/patches/patch-aq4
-rw-r--r--audio/jack/patches/patch-ar4
-rw-r--r--audio/jack/patches/patch-as4
16 files changed, 102 insertions, 67 deletions
diff --git a/audio/jack/patches/patch-aa b/audio/jack/patches/patch-aa
index 521e57f24b2..e3e1d1aa8a0 100644
--- a/audio/jack/patches/patch-aa
+++ b/audio/jack/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.2 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-aa,v 1.3 2008/11/16 11:22:55 bjs Exp $
---- config/sysdeps/atomicity.h.orig 2008-07-27 08:50:27.000000000 -0400
+--- config/sysdeps/atomicity.h.orig 2008-11-11 17:36:35.000000000 -0500
+++ config/sysdeps/atomicity.h
@@ -1,7 +1,11 @@
#ifndef _jack_sysdep_atomicity_h_
diff --git a/audio/jack/patches/patch-ab b/audio/jack/patches/patch-ab
index e79f550e620..e307bae44b3 100644
--- a/audio/jack/patches/patch-ab
+++ b/audio/jack/patches/patch-ab
@@ -1,11 +1,11 @@
-$NetBSD: patch-ab,v 1.3 2008/08/09 10:33:17 bjs Exp $
+$NetBSD: patch-ab,v 1.4 2008/11/16 11:22:55 bjs Exp $
BSD poll returns POLLIN, not POLLHUP, when the socket is closed,
as does Darwin.
---- jackd/engine.c.orig 2008-07-27 08:50:30.000000000 -0400
+--- jackd/engine.c.orig 2008-11-11 17:36:40.000000000 -0500
+++ jackd/engine.c
-@@ -1383,7 +1383,7 @@ handle_external_client_request (jack_eng
+@@ -1385,7 +1385,7 @@ handle_external_client_request (jack_eng
if ((r = read (client->request_fd, &req, sizeof (req)))
< (ssize_t) sizeof (req)) {
if (r == 0) {
@@ -14,7 +14,7 @@ as does Darwin.
/* poll is implemented using
select (see the macosx/fakepoll
code). When the socket is closed
-@@ -1396,7 +1396,7 @@ handle_external_client_request (jack_eng
+@@ -1398,7 +1398,7 @@ handle_external_client_request (jack_eng
and remove the client.
*/
jack_mark_client_socket_error (engine, fd);
diff --git a/audio/jack/patches/patch-ac b/audio/jack/patches/patch-ac
index 999e5990982..3780464202f 100644
--- a/audio/jack/patches/patch-ac
+++ b/audio/jack/patches/patch-ac
@@ -1,19 +1,16 @@
-$NetBSD: patch-ac,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ac,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- tools/netsource.c.orig 2008-07-27 22:17:58.000000000 -0400
-+++ tools/netsource.c
-@@ -31,10 +31,14 @@ Foundation, Inc., 675 Mass Ave, Cambridg
- #include <stdlib.h>
- #include <string.h>
-
-+#include <sys/socket.h>
-+
- #include <netinet/in.h>
- #include <netdb.h>
-
-+#ifdef HAVE_ALLOCA_H
- #include <alloca.h>
-+#endif
-
- #include <jack/jack.h>
+--- libjack/simd.c.orig 2008-11-11 17:36:29.000000000 -0500
++++ libjack/simd.c
+@@ -332,9 +332,9 @@ sse_nonalign:
+ void x86_sse_f2i (int *dest, const float *src, int length, float scale)
+ {
+ int i;
+- float max[4] __attribute__((aligned(16))) =
++ static const float max[4] __attribute__((aligned(16))) =
+ { -1.0F, -1.0F, -1.0F, -1.0F };
+- float min[4] __attribute__((aligned(16))) =
++ static const float min[4] __attribute__((aligned(16))) =
+ { 1.0F, 1.0F, 1.0F, 1.0F };
+ float s[4] __attribute__((aligned(16)));
diff --git a/audio/jack/patches/patch-ad b/audio/jack/patches/patch-ad
index f2a5ff28d72..51aebaa2740 100644
--- a/audio/jack/patches/patch-ad
+++ b/audio/jack/patches/patch-ad
@@ -1,6 +1,6 @@
-$NetBSD: patch-ad,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ad,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- drivers/oss/oss_driver.h.orig 2008-07-27 08:50:33.000000000 -0400
+--- drivers/oss/oss_driver.h.orig 2008-11-11 17:36:43.000000000 -0500
+++ drivers/oss/oss_driver.h
@@ -34,7 +34,11 @@
#include <jack/jack.h>
diff --git a/audio/jack/patches/patch-ae b/audio/jack/patches/patch-ae
index 69e4c127c13..923a9d33745 100644
--- a/audio/jack/patches/patch-ae
+++ b/audio/jack/patches/patch-ae
@@ -1,17 +1,52 @@
-$NetBSD: patch-ae,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ae,v 1.2 2008/11/16 11:22:55 bjs Exp $
-I'm not quite sure what's going on here, but I don't think res
-should be a pointer (quells a warning, has no ill effects that
-I can detect).
+This is currently untested. Please file a PR if there are any problems.
---- libjack/intclient.c.orig 2008-07-27 08:50:23.000000000 -0400
-+++ libjack/intclient.c
-@@ -167,7 +167,7 @@ jack_internal_client_load (jack_client_t
- {
- va_list ap;
- va_start(ap, status);
-- jack_intclient_t* res = jack_internal_client_load_aux(client, client_name, options, status, ap);
-+ jack_intclient_t res = jack_internal_client_load_aux(client, client_name, options, status, ap);
- va_end(ap);
- return res;
- }
+--- tools/netsource.c.orig 2008-11-11 17:36:30.000000000 -0500
++++ tools/netsource.c
+@@ -215,10 +215,11 @@ process (jack_nframes_t nframes, void *a
+
+ /* ---------- Receive ---------- */
+ if (reply_port)
+- size = netjack_recv (insockfd, (char *) packet_buf, rx_bufsize, MSG_DONTWAIT, mtu);
++ size = netjack_recv (insockfd, (char *) packet_buf, rx_bufsize, NULL, mtu);
+ else
+- size = netjack_recv (outsockfd, (char *) packet_buf, rx_bufsize, MSG_DONTWAIT, mtu);
++ size = netjack_recv (outsockfd, (char *) packet_buf, rx_bufsize, NULL, mtu);
+ packet_header_ntoh (pkthdr);
++
+ /* Loop till we get the right packet at the right momment */
+ while (size == rx_bufsize && (framecnt - pkthdr->framecnt) > latency)
+ {
+@@ -226,9 +227,9 @@ process (jack_nframes_t nframes, void *a
+ //printf ("Frame %d \tLate packet received with a latency of %d frames\n", framecnt, framecnt - pkthdr->framecnt);
+
+ if (reply_port)
+- size = netjack_recv (insockfd, (char *) packet_buf, rx_bufsize, MSG_DONTWAIT, mtu);
++ size = netjack_recv (insockfd, (char *) packet_buf, rx_bufsize, NULL, mtu);
+ else
+- size = netjack_recv (outsockfd, (char *) packet_buf, rx_bufsize, MSG_DONTWAIT, mtu);
++ size = netjack_recv (outsockfd, (char *) packet_buf, rx_bufsize, NULL, mtu);
+ packet_header_ntoh (pkthdr);
+ }
+
+@@ -376,6 +377,7 @@ main (int argc, char *argv[])
+ int peer_port = 3000;
+ jack_options_t options = JackNullOption;
+ jack_status_t status;
++ int ff;
+
+ /* Torben's famous state variables, aka "the reporting API" ! */
+ int statecopy_connected, statecopy_latency, statecopy_netxruns;
+@@ -481,6 +483,11 @@ main (int argc, char *argv[])
+ return 1;
+ }
+
++ fcntl(outsockfd, F_GETFL, &ff);
++ fcntl(outsockfd, F_SETFL, ff | O_NONBLOCK);
++ fcntl(insockfd, F_GETFL, &ff);
++ fcntl(insockfd, F_SETFL, ff | O_NONBLOCK);
++
+ /* Set up jack callbacks */
+ jack_set_process_callback (client, process, 0);
+ jack_set_sync_callback (client, sync_cb, 0);
diff --git a/audio/jack/patches/patch-af b/audio/jack/patches/patch-af
index bb3b6c4a83b..e200f9110f4 100644
--- a/audio/jack/patches/patch-af
+++ b/audio/jack/patches/patch-af
@@ -1,6 +1,6 @@
-$NetBSD: patch-af,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-af,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- tools/transport.c.orig 2008-07-27 08:50:24.000000000 -0400
+--- tools/transport.c.orig 2008-11-11 17:36:30.000000000 -0500
+++ tools/transport.c
@@ -29,6 +29,10 @@
#include <jack/jack.h>
diff --git a/audio/jack/patches/patch-ag b/audio/jack/patches/patch-ag
index 4d8833920b0..3e0643d3f1a 100644
--- a/audio/jack/patches/patch-ag
+++ b/audio/jack/patches/patch-ag
@@ -1,6 +1,6 @@
-$NetBSD: patch-ag,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ag,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- jack.pc.in.orig 2008-07-27 08:50:34.000000000 -0400
+--- jack.pc.in.orig 2008-11-11 17:36:46.000000000 -0500
+++ jack.pc.in
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: jack
diff --git a/audio/jack/patches/patch-ah b/audio/jack/patches/patch-ah
index 66a6281d9a7..943ce6aa1e5 100644
--- a/audio/jack/patches/patch-ah
+++ b/audio/jack/patches/patch-ah
@@ -1,8 +1,8 @@
-$NetBSD: patch-ah,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ah,v 1.2 2008/11/16 11:22:55 bjs Exp $
Allow overriding the watchdog timeout.
---- jack/engine.h.orig 2008-07-27 08:50:29.000000000 -0400
+--- jack/engine.h.orig 2008-11-11 17:36:38.000000000 -0500
+++ jack/engine.h
@@ -51,8 +51,12 @@ typedef struct _jack_port_buffer_list {
jack_port_buffer_info_t *info; /* jack_buffer_info_t array */
diff --git a/audio/jack/patches/patch-ai b/audio/jack/patches/patch-ai
index 6b4525ae817..61cf9e4d8c6 100644
--- a/audio/jack/patches/patch-ai
+++ b/audio/jack/patches/patch-ai
@@ -1,6 +1,6 @@
-$NetBSD: patch-ai,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ai,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- libjack/client.c.orig 2008-07-27 08:50:23.000000000 -0400
+--- libjack/client.c.orig 2008-11-11 17:36:29.000000000 -0500
+++ libjack/client.c
@@ -969,10 +969,7 @@ jack_client_open_aux (const char *client
}
diff --git a/audio/jack/patches/patch-ak b/audio/jack/patches/patch-ak
index 0b1aec7534d..80e2aa6dfb2 100644
--- a/audio/jack/patches/patch-ak
+++ b/audio/jack/patches/patch-ak
@@ -1,19 +1,22 @@
-$NetBSD: patch-ak,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ak,v 1.2 2008/11/16 11:22:55 bjs Exp $
Yuck. At least let's attempt to make this somewhat sane.
When I have the time and figure out the Right Thing(tm)
to do, perhaps I'll rewrite some of the shm code.
---- libjack/unlock.c.orig 2008-07-27 08:50:23.000000000 -0400
+--- libjack/unlock.c.orig 2008-11-11 17:36:29.000000000 -0500
+++ libjack/unlock.c
-@@ -48,6 +48,7 @@ static char* library_roots[] = {
- "/usr/X11R6/lib",
+@@ -44,8 +44,9 @@ static char* whitelist[] = {
+ static char* library_roots[] = {
+ "/lib",
+ "/usr/lib",
++ "@PREFIX@", /* pkgsrc prefix */
++ "@X11PREFIX@/lib",
+ "/usr/local/lib",
+- "/usr/X11R6/lib",
"/opt/lib", /* solaris-y */
"/opt/local/lib", /* common on OS X */
-+ "@PREFIX@", /* pkgsrc prefix */
NULL
- };
-
@@ -63,7 +64,7 @@ cleanup_mlock ()
int whoknows;
int looks_like_library;
diff --git a/audio/jack/patches/patch-am b/audio/jack/patches/patch-am
index fabb6439a41..dfd54c18f93 100644
--- a/audio/jack/patches/patch-am
+++ b/audio/jack/patches/patch-am
@@ -1,6 +1,6 @@
-$NetBSD: patch-am,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-am,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- drivers/oss/Makefile.in.orig 2008-07-27 09:01:08.000000000 -0400
+--- drivers/oss/Makefile.in.orig 2008-11-11 17:43:11.000000000 -0500
+++ drivers/oss/Makefile.in
@@ -54,7 +54,7 @@ am__strip_dir = `echo $$p | sed -e 's|^.
am__installdirs = "$(DESTDIR)$(plugindir)"
diff --git a/audio/jack/patches/patch-ao b/audio/jack/patches/patch-ao
index ec4ca49ae3f..191e2864be7 100644
--- a/audio/jack/patches/patch-ao
+++ b/audio/jack/patches/patch-ao
@@ -1,9 +1,9 @@
-$NetBSD: patch-ao,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ao,v 1.2 2008/11/16 11:22:55 bjs Exp $
We want to make sure there's no garbage in the output buffer, otherwise
untoward stuff can happen.
---- drivers/oss/oss_driver.c.orig 2008-07-27 08:50:33.000000000 -0400
+--- drivers/oss/oss_driver.c.orig 2008-11-11 17:36:43.000000000 -0500
+++ drivers/oss/oss_driver.c
@@ -1042,6 +1042,7 @@ static void *io_thread (void *param)
pthread_mutex_lock(&driver->mutex_out);
diff --git a/audio/jack/patches/patch-ap b/audio/jack/patches/patch-ap
index c1c4129aa1f..a11773be4e8 100644
--- a/audio/jack/patches/patch-ap
+++ b/audio/jack/patches/patch-ap
@@ -1,6 +1,6 @@
-$NetBSD: patch-ap,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ap,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- jack/types.h.orig 2008-07-27 08:50:29.000000000 -0400
+--- jack/types.h.orig 2008-11-11 17:36:38.000000000 -0500
+++ jack/types.h
@@ -23,7 +23,7 @@
diff --git a/audio/jack/patches/patch-aq b/audio/jack/patches/patch-aq
index 14484feca01..61d80306da5 100644
--- a/audio/jack/patches/patch-aq
+++ b/audio/jack/patches/patch-aq
@@ -1,6 +1,6 @@
-$NetBSD: patch-aq,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-aq,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- Makefile.in.orig 2008-07-27 09:01:05.000000000 -0400
+--- Makefile.in.orig 2008-11-11 17:43:08.000000000 -0500
+++ Makefile.in
@@ -233,7 +233,7 @@ MAINTAINERCLEANFILES = Makefile.in acloc
stamp-h.in config.log config.cache config.status
diff --git a/audio/jack/patches/patch-ar b/audio/jack/patches/patch-ar
index 7a7f23f0956..f704a812456 100644
--- a/audio/jack/patches/patch-ar
+++ b/audio/jack/patches/patch-ar
@@ -1,6 +1,6 @@
-$NetBSD: patch-ar,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-ar,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- config/sysdeps/cycles.h.orig 2008-07-27 08:50:27.000000000 -0400
+--- config/sysdeps/cycles.h.orig 2008-11-11 17:36:35.000000000 -0500
+++ config/sysdeps/cycles.h
@@ -1,7 +1,11 @@
#ifndef _jack_sysdep_cycles_h_
diff --git a/audio/jack/patches/patch-as b/audio/jack/patches/patch-as
index f5b5edccd82..e841806491b 100644
--- a/audio/jack/patches/patch-as
+++ b/audio/jack/patches/patch-as
@@ -1,6 +1,6 @@
-$NetBSD: patch-as,v 1.1 2008/07/31 03:58:05 bjs Exp $
+$NetBSD: patch-as,v 1.2 2008/11/16 11:22:55 bjs Exp $
---- drivers/dummy/dummy_driver.c.orig 2008-07-27 08:50:34.000000000 -0400
+--- drivers/dummy/dummy_driver.c.orig 2008-11-11 17:36:45.000000000 -0500
+++ drivers/dummy/dummy_driver.c
@@ -109,6 +109,7 @@ dummy_driver_wait (dummy_driver_t *drive
{