pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/mumble mumble: Update to 1.3.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32cfd5c209c0
branches:  trunk
changeset: 440706:32cfd5c209c0
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Oct 16 07:42:48 2020 +0000

description:
mumble: Update to 1.3.3

pkgsrc changes:

- Fixed device iteration on NetBSD
- Fixed the portaudio option
- Added a jack option

Client

Fixed: Chatbox invisble (zero height)
Fixed: Handling of invalid packet sizes
Fixed: Race-condition leading to loss of shortcuts
Fixed: Link in About dialog is now clickable again
Fixed: Sizing issues in ACL-Editor
Improved: PulseAudio now always samples at 48 kHz

Server

Fixed: Crash due to problems when using PostgreSQL
Fixed: Handling of invalid package sizes

diffstat:

 chat/mumble/Makefile                         |  11 ++---
 chat/mumble/distinfo                         |  11 +++--
 chat/mumble/options.mk                       |  14 +++++-
 chat/mumble/patches/patch-src_mumble_OSS.cpp |  56 ++++++++++++++++++++++++++++
 4 files changed, 77 insertions(+), 15 deletions(-)

diffs (152 lines):

diff -r f5b19a3188eb -r 32cfd5c209c0 chat/mumble/Makefile
--- a/chat/mumble/Makefile      Fri Oct 16 07:41:10 2020 +0000
+++ b/chat/mumble/Makefile      Fri Oct 16 07:42:48 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2020/08/18 17:57:41 leot Exp $
+# $NetBSD: Makefile,v 1.24 2020/10/16 07:42:48 nia Exp $
 
-DISTNAME=      mumble-1.3.2
-PKGREVISION=   2
+DISTNAME=      mumble-1.3.3
 CATEGORIES=    chat audio
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mumble-voip/}
 GITHUB_PROJECT=        mumble
@@ -15,7 +14,7 @@
 TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
 
 USE_TOOLS+=    pkg-config gmake
-USE_LANGUAGES= c c++11
+USE_LANGUAGES= c c++
 USE_LIBTOOL=   yes
 
 PYTHON_FOR_BUILD_ONLY= tool
@@ -50,10 +49,8 @@
 .if ${OSS_TYPE} != "none"
 SUBST_CLASSES+=                oss
 SUBST_STAGE.oss=       pre-configure
-SUBST_MESSAGE.oss=     Correct path to OSS device.
+SUBST_MESSAGE.oss=     Setting the OSS library.
 SUBST_FILES.oss+=      src/mumble/mumble.pro
-SUBST_FILES.oss+=      src/mumble/OSS.cpp
-SUBST_SED.oss+=                -e "s,/dev/dsp,${DEVOSSAUDIO},g"
 SUBST_VARS.oss+=       LIBOSSAUDIO
 .endif
 
diff -r f5b19a3188eb -r 32cfd5c209c0 chat/mumble/distinfo
--- a/chat/mumble/distinfo      Fri Oct 16 07:41:10 2020 +0000
+++ b/chat/mumble/distinfo      Fri Oct 16 07:42:48 2020 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2020/07/27 00:29:03 nia Exp $
+$NetBSD: distinfo,v 1.6 2020/10/16 07:42:48 nia Exp $
 
-SHA1 (mumble-1.3.2.tar.gz) = 9afb1dc0632fd249c0ff892979b89d1df920f374
-RMD160 (mumble-1.3.2.tar.gz) = 4f571c22e724781179e9208116d92cbaefd0c1cc
-SHA512 (mumble-1.3.2.tar.gz) = 3f5e3b586efbe9b49c7f14119072f4842bbd885f9c5145cdaa129a87c7fc85107d0735a3107f5a2789cec9fdadda1200ab4a6d76c3caee409d3e38406a8ba27f
-Size (mumble-1.3.2.tar.gz) = 8586368 bytes
+SHA1 (mumble-1.3.3.tar.gz) = 3fd6f2fbd42be57dfc8277143d3d4aea857255ab
+RMD160 (mumble-1.3.3.tar.gz) = 415fbb4d436beaf0d104f1920ef9fe00509294ab
+SHA512 (mumble-1.3.3.tar.gz) = be4c6d4de82a1059bf30d4c7e3c44e41e4bb50dc4a811b7d0def808c52059ff7bcccf65140db940f18cc1bb66d58ea4dab23ba5dcfae3b8b904866751f32edb3
+Size (mumble-1.3.3.tar.gz) = 8591354 bytes
+SHA1 (patch-src_mumble_OSS.cpp) = cf441337a6284da7f87429610275ef14d084ddbf
 SHA1 (patch-src_mumble_mumble.pro) = a49c3263f6034b2ea7c8633e24823937f4c4d3f5
diff -r f5b19a3188eb -r 32cfd5c209c0 chat/mumble/options.mk
--- a/chat/mumble/options.mk    Fri Oct 16 07:41:10 2020 +0000
+++ b/chat/mumble/options.mk    Fri Oct 16 07:42:48 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.5 2020/04/28 05:47:10 riastradh Exp $
+# $NetBSD: options.mk,v 1.6 2020/10/16 07:42:48 nia Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.mumble
-PKG_SUPPORTED_OPTIONS=         alsa dbus pulseaudio portaudio
+PKG_SUPPORTED_OPTIONS=         alsa dbus jack pulseaudio portaudio
 PKG_SUGGESTED_OPTIONS=         dbus portaudio
 PKG_SUGGESTED_OPTIONS.Linux=   alsa
 
@@ -16,18 +16,26 @@
 
 .if !empty(PKG_OPTIONS:Mdbus)
 CONFIG_OPTIONS+=       CONFIG+=dbus
-#.include "../../x11/qt5-qtdbus/buildlink3.mk"
 .else
 CONFIG_OPTIONS+=       CONFIG+=no-dbus
 .endif
 
+.if !empty(PKG_OPTIONS:Mjack)
+CONFIG_OPTIONS+=       CONFIG+=jackaudio
+.include "../../audio/jack/buildlink3.mk"
+.else
+CONFIG_OPTIONS+=       CONFIG+=no-jackaudio
+.endif
+
 .if !empty(PKG_OPTIONS:Mpulseaudio)
+CONFIG_OPTIONS+=       CONFIG+=pulseaudio
 .include "../../audio/pulseaudio/buildlink3.mk"
 .else
 CONFIG_OPTIONS+=       CONFIG+=no-pulseaudio
 .endif
 
 .if !empty(PKG_OPTIONS:Mportaudio)
+CONFIG_OPTIONS+=       CONFIG+=portaudio
 .include "../../audio/portaudio/buildlink3.mk"
 .else
 CONFIG_OPTIONS+=       CONFIG+=no-portaudio
diff -r f5b19a3188eb -r 32cfd5c209c0 chat/mumble/patches/patch-src_mumble_OSS.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/patches/patch-src_mumble_OSS.cpp      Fri Oct 16 07:42:48 2020 +0000
@@ -0,0 +1,56 @@
+$NetBSD: patch-src_mumble_OSS.cpp,v 1.3 2020/10/16 07:42:48 nia Exp $
+
+Make device iteration work with NetBSD's OSS compat layer.
+
+XXX: Fix this in libossaudio.
+
+--- src/mumble/OSS.cpp.orig    2020-10-04 20:25:02.000000000 +0000
++++ src/mumble/OSS.cpp
+@@ -128,9 +128,46 @@ void OSSOutputRegistrar::setDeviceChoice
+ OSSEnumerator::OSSEnumerator() {
+       qhInput.insert(QString(), QLatin1String("Default OSS Device"));
+       qhOutput.insert(QString(), QLatin1String("Default OSS Device"));
++#if defined(__NetBSD__) || defined(__OpenBSD__)
++      qhDevices.insert(QString(), QLatin1String("/dev/audio"));
++#else
+       qhDevices.insert(QString(), QLatin1String("/dev/dsp"));
++#endif
++
++#if defined(__NetBSD__)
++      for (int i=0;i< 32;i++) {
++              char audiodevname[32];
++              int fd;
++              oss_audioinfo ainfo;
++
++              ainfo.dev = i;
++              snprintf(audiodevname, sizeof(audiodevname), "/dev/audio%d", i);
++              if ((fd = open(audiodevname, O_RDWR)) == -1) {
++                      break;
++              }
++              if (ioctl(fd, SNDCTL_AUDIOINFO, &ainfo) == -1) {
++                      close(fd);
++                      qWarning("OSSEnumerator: SNDCTL_AUDIOINFO failed for device %d", i);
++                      continue;
++              }
++
++              close(fd);
+ 
+-#if (SOUND_VERSION >= 0x040002)
++              QString handle = QLatin1String(ainfo.handle);
++              QString name = QLatin1String(ainfo.name);
++              QString device = QLatin1String(ainfo.devnode);
++
++              if (ainfo.caps & PCM_CAP_HIDDEN)
++                      continue;
++
++              qhDevices.insert(device, device);
++
++              if (ainfo.caps & PCM_CAP_INPUT)
++                      qhInput.insert(device, name);
++              if (ainfo.caps & PCM_CAP_OUTPUT)
++                      qhOutput.insert(device, name);
++      }
++#elif (SOUND_VERSION >= 0x040002) && !defined(__NetBSD__)
+       int mixerfd = open("/dev/mixer", O_RDWR, 0);
+       if (mixerfd == -1) {
+               qWarning("OSSEnumerator: Failed to open /dev/mixer");



Home | Main Index | Thread Index | Old Index