pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/qemu qemu: bulk builds with jack enabled get...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cfe4da37dc65
branches:  trunk
changeset: 771808:cfe4da37dc65
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Dec 27 10:12:57 2021 +0000

description:
qemu: bulk builds with jack enabled get jack picked up through a
dependency of qemu, resulting in a build failure on NetBSD. just add
support for jack on netbsd to fix this.

diffstat:

 emulators/qemu/distinfo                        |   3 ++-
 emulators/qemu/options.mk                      |  11 +++++++++--
 emulators/qemu/patches/patch-audio_jackaudio.c |  18 ++++++++++++++++++
 3 files changed, 29 insertions(+), 3 deletions(-)

diffs (66 lines):

diff -r 9aa00caa8cc3 -r cfe4da37dc65 emulators/qemu/distinfo
--- a/emulators/qemu/distinfo   Mon Dec 27 10:07:32 2021 +0000
+++ b/emulators/qemu/distinfo   Mon Dec 27 10:12:57 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.189 2021/12/16 12:59:43 tnn Exp $
+$NetBSD: distinfo,v 1.190 2021/12/27 10:12:57 nia Exp $
 
 BLAKE2s (palcode-clipper-qemu-5.2.0nb8) = d388c896a80c1cc3d4785c8434d6688bbcfd54c28f7252ce550ab162a0bba321
 SHA512 (palcode-clipper-qemu-5.2.0nb8) = 33695d6001d86a19793a92d5e31775607c4dfc9ab9eea019ea6c4d543a2e11e8c07f83cca4934811a13ef829b528737ea37d9d2aaf66cba6f2746d44d2aa0b43
@@ -6,6 +6,7 @@
 BLAKE2s (qemu-6.2.0.tar.xz) = f8a5e369a65ed0903c271712c81a3c8a1b8893f923dfb815a7db1359fc263ece
 SHA512 (qemu-6.2.0.tar.xz) = e9f8231c9e1cfcc41cb47f10a55d63f6b8aee307af00cf6acf64acb7aa4f49fa7e9d6330703a2abea15d8b7bbaba7d3cb08c83edd98d82642367b527df730817
 Size (qemu-6.2.0.tar.xz) = 115667324 bytes
+SHA1 (patch-audio_jackaudio.c) = 0c9e2bea94857007938e16285b721d1495fcb8e1
 SHA1 (patch-backends_tpm_tpm__ioctl.h) = fbd6c877ad605f7120290efbb0ac653c69f351de
 SHA1 (patch-hw-mips-Kconfig) = c7199ad26ac45116ab4d38252db4234ae93bdf9a
 SHA1 (patch-hw-mips-mipssim.c) = 1f682b74b34398b3ff15f9e7f24a85f4b8bb4853
diff -r 9aa00caa8cc3 -r cfe4da37dc65 emulators/qemu/options.mk
--- a/emulators/qemu/options.mk Mon Dec 27 10:07:32 2021 +0000
+++ b/emulators/qemu/options.mk Mon Dec 27 10:12:57 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.16 2021/02/23 09:28:33 wiz Exp $
+# $NetBSD: options.mk,v 1.17 2021/12/27 10:12:57 nia Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.qemu
-PKG_SUPPORTED_OPTIONS= debug-info gtk3 iscsi sdl spice
+PKG_SUPPORTED_OPTIONS= debug-info gtk3 iscsi jack sdl spice
 PKG_SUGGESTED_OPTIONS+=        iscsi spice
 
 .include "../../mk/bsd.fast.prefs.mk"
@@ -26,6 +26,13 @@
 
 PLIST_VARS+=           gtk keymap virtfs-proxy-helper
 
+.if !empty(PKG_OPTIONS:Mjack)
+CONFIGURE_ARGS+=       --enable-jack
+.include "../../audio/jack/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-jack
+.endif
+
 .if !empty(PKG_OPTIONS:Mdebug-info)
 CONFIGURE_ARGS+=       --enable-debug-info
 .else
diff -r 9aa00caa8cc3 -r cfe4da37dc65 emulators/qemu/patches/patch-audio_jackaudio.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/qemu/patches/patch-audio_jackaudio.c    Mon Dec 27 10:12:57 2021 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-audio_jackaudio.c,v 1.1 2021/12/27 10:12:57 nia Exp $
+
+Teach it about NetBSD's pthread_setname_np.
+
+--- audio/jackaudio.c.orig     2021-12-14 20:42:02.000000000 +0000
++++ audio/jackaudio.c
+@@ -631,7 +631,11 @@ static int qjack_thread_creator(jack_nat
+     }
+ 
+     /* set the name of the thread */
++#ifdef __NetBSD__
++    pthread_setname_np(*thread, "%s", (void *)"jack-client");
++#else
+     pthread_setname_np(*thread, "jack-client");
++#endif
+ 
+     return ret;
+ }



Home | Main Index | Thread Index | Old Index