Bug 182215 - audio/mumble: no sound, failed to load CELT plugins
Summary: audio/mumble: no sound, failed to load CELT plugins
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-18 21:40 UTC by David Demelier
Modified: 2013-10-12 18:40 UTC (History)
0 users

See Also:


Attachments
mumble.diff (1.06 KB, patch)
2013-09-25 19:38 UTC, David Demelier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Demelier 2013-09-18 21:40:00 UTC
I don't know it the update to 1.2.4 broke the build process or so, but now
connecting to a mumble server will have no sound and you get the error:

[22:29] Welcome to Mumble.
[22:29] Connecting to server foo.org
[22:29] Connected.
[22:29] Unable to find matching CELT codecs with other clients. You will not be able to talk to all users.
[22:29] Server maximum network bandwidth is only 48 kbit/s. Audio quality auto-adjusted to 40 kbit/s (40 ms)

Fix: 

Check if the build process gone wrong?
How-To-Repeat: 
1. Install mumble, run it and connect to a server.
2. -> you can't hear, nobody hear you
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-18 21:40:13 UTC
Maintainer of audio/mumble,

Please note that PR ports/182215 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/182215

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-18 21:40:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 David Demelier 2013-09-25 19:38:29 UTC
On 18.09.2013 22:40, FreeBSD-gnats-submit@FreeBSD.org wrote:
> Thank you very much for your problem report.
> It has the internal identification `ports/182215'.
> The individual assigned to look at your
> report is: freebsd-ports-bugs. 
> 
> You can access the state of your problem report at any time
> via this link:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=182215
> 
>> Category:       ports
>> Responsible:    freebsd-ports-bugs
>> Synopsis:       audio/mumble: no sound, failed to load CELT plugins
>> Arrival-Date:   Wed Sep 18 20:40:00 UTC 2013

It seems that the installation of libcelt0 renamed to libcelt-mumble
caused the issue. For now no other port install libcelt.so.0.(7|11).0 so
I install just like the application should do.

Please commit it as soon as possible as the port is just unusable yet.

Regards
Comment 4 Mark Felder freebsd_committer freebsd_triage 2013-10-08 20:11:53 UTC
State Changed
From-To: feedback->closed

Duplicate of ports/181102
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-10-12 18:30:18 UTC
Author: feld
Date: Sat Oct 12 17:30:09 2013
New Revision: 330152
URL: http://svnweb.freebsd.org/changeset/ports/330152

Log:
  - Fix mumble not detecting celt libraries
  - New LIBDEPENDS format
  - Remove old message regarding FreeBSD 7.x
  - STAGE clean
  - Compiles with clang, supports FreeBSD 10
  
  PR:		ports/182215
  Approved by:	swills (mentor)

Added:
  head/audio/mumble/files/patch-src__mumble__OSS.cpp   (contents, props changed)
  head/audio/mumble/files/patch-src__mumble__VoiceRecorderDialog.cpp   (contents, props changed)
Deleted:
  head/audio/mumble/pkg-message
Modified:
  head/audio/mumble/Makefile
  head/audio/mumble/pkg-plist

Modified: head/audio/mumble/Makefile
==============================================================================
--- head/audio/mumble/Makefile	Sat Oct 12 17:17:31 2013	(r330151)
+++ head/audio/mumble/Makefile	Sat Oct 12 17:30:09 2013	(r330152)
@@ -3,22 +3,21 @@
 
 PORTNAME=	mumble
 PORTVERSION=	1.2.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	audio
 MASTER_SITES=	SF/${PORTNAME}/Mumble/${PORTVERSION}
 
 MAINTAINER=	marius@nuenneri.ch
 COMMENT=	A voice chat software primarily intended for use while gaming
 
-LIB_DEPENDS+=	speex:${PORTSDIR}/audio/speex \
-		sndfile:${PORTSDIR}/audio/libsndfile \
-		boost_iostreams:${PORTSDIR}/devel/boost-libs \
-		boost_python:${PORTSDIR}/devel/boost-python-libs \
-		protoc:${PORTSDIR}/devel/protobuf \
-		opus:${PORTSDIR}/audio/opus
+LIB_DEPENDS+=	libspeex.so:${PORTSDIR}/audio/speex \
+		libsndfile.so:${PORTSDIR}/audio/libsndfile \
+		libboost_iostreams.so:${PORTSDIR}/devel/boost-libs \
+		libboost_python.so:${PORTSDIR}/devel/boost-python-libs \
+		libprotoc.so:${PORTSDIR}/devel/protobuf \
+		libopus.so:${PORTSDIR}/audio/opus
 
 USES=		gmake pkgconfig
-NO_STAGE=	yes
 USE_QT4=	gui svg iconengines_run xml sql network l10n \
 		linguist_build qmake_build moc_build rcc_build uic_build \
 		opengl sql-sqlite3_run
@@ -26,6 +25,7 @@ USE_QT4=	gui svg iconengines_run xml sql
 USE_XORG=	ice
 HAS_CONFIGURE=	yes
 INSTALLS_ICONS=	yes
+MAKE_JOBS_UNSAFE=yes
 
 CONFIG=		no-server no-alsa no-speechd no-bundled-speex no-bundled-opus no-update \
 		bundled-celt no-g15 no-portaudio no-pulseaudio no-xevie no-embed-qt-translations
@@ -34,8 +34,6 @@ OPTIONS_DEFINE=	DBUS BONJOUR
 OPTIONS_DEFAULT=	DBUS
 BONJOUR_DESC=		Bonjour support
 
-MAN1=		mumble.1
-
 .include <bsd.port.options.mk>
 
 .if ! ${PORT_OPTIONS:MDBUS}
@@ -57,22 +55,22 @@ do-configure:
 	cd ${WRKSRC} && ${SETENV} QMAKESPEC=${QMAKESPEC} ${QMAKE} PREFIX=${PREFIX} main.pro "CONFIG+=${CONFIG}"
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/release/mumble ${PREFIX}/bin
-	${INSTALL_LIB} ${WRKSRC}/release/libcelt0.so.0.11.0 ${PREFIX}/lib/libcelt-mumble.so.0.11.0
-	${INSTALL_LIB} ${WRKSRC}/release/libcelt0.so.0.7.0 ${PREFIX}/lib/libcelt-mumble.so.0.7.0
-	${INSTALL_LIB} ${WRKSRC}/release/libmumble.so.1.2.4 ${PREFIX}/lib/libmumble.so.1.2.4
-	${LN} -s ${PREFIX}/lib/libmumble.so.1.2.4 ${PREFIX}/lib/libmumble.so
-	${LN} -s ${PREFIX}/lib/libmumble.so.1.2.4 ${PREFIX}/lib/libmumble.so.1
-	${LN} -s ${PREFIX}/lib/libmumble.so.1.2.4 ${PREFIX}/lib/libmumble.so.1.2
-	${MKDIR} ${PREFIX}/share/services
-	${INSTALL_DATA} ${WRKSRC}/scripts/mumble.protocol ${PREFIX}/share/services
-	${MKDIR} ${PREFIX}/share/applications
-	${INSTALL_DATA} ${WRKSRC}/scripts/mumble.desktop ${PREFIX}/share/applications
-	${INSTALL_DATA} ${WRKSRC}/icons/mumble.xpm ${PREFIX}/share/pixmaps
-	${MKDIR} ${PREFIX}/share/icons/hicolor/128x128/apps ${PREFIX}/share/icons/hicolor/scalable/apps
-	${INSTALL_DATA} ${WRKSRC}/icons/mumble.osx.png ${PREFIX}/share/icons/hicolor/128x128/apps
-	@${MV} ${PREFIX}/share/icons/hicolor/128x128/apps/mumble.osx.png ${PREFIX}/share/icons/hicolor/128x128/apps/mumble.png
-	${INSTALL_DATA} ${WRKSRC}/icons/mumble.svg ${PREFIX}/share/icons/hicolor/scalable/apps
-	${INSTALL_MAN} ${WRKSRC}/man/mumble.1 ${MANPREFIX}/man/man1
+	${INSTALL_PROGRAM} ${WRKSRC}/release/mumble ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_LIB} ${WRKSRC}/release/libcelt0.so.0.11.0 ${STAGEDIR}${PREFIX}/lib/libcelt-mumble.so.0.11.0
+	${INSTALL_LIB} ${WRKSRC}/release/libcelt0.so.0.7.0 ${STAGEDIR}${PREFIX}/lib/libcelt-mumble.so.0.7.0
+	${INSTALL_LIB} ${WRKSRC}/release/libmumble.so.1.2.4 ${STAGEDIR}${PREFIX}/lib/libmumble.so.1.2.4
+	${LN} -s ${PREFIX}/lib/libmumble.so.1.2.4 ${STAGEDIR}${PREFIX}/lib/libmumble.so
+	${LN} -s ${PREFIX}/lib/libmumble.so.1.2.4 ${STAGEDIR}${PREFIX}/lib/libmumble.so.1
+	${LN} -s ${PREFIX}/lib/libmumble.so.1.2.4 ${STAGEDIR}${PREFIX}/lib/libmumble.so.1.2
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/services
+	${INSTALL_DATA} ${WRKSRC}/scripts/mumble.protocol ${STAGEDIR}${PREFIX}/share/services
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/scripts/mumble.desktop ${STAGEDIR}${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/icons/mumble.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+	${INSTALL_DATA} ${WRKSRC}/icons/mumble.osx.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps
+	@${MV} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/mumble.osx.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/mumble.png
+	${INSTALL_DATA} ${WRKSRC}/icons/mumble.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+	${INSTALL_MAN} ${WRKSRC}/man/mumble.1 ${STAGEDIR}${MANPREFIX}/man/man1/mumble.1
 
 .include <bsd.port.mk>

Added: head/audio/mumble/files/patch-src__mumble__OSS.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/mumble/files/patch-src__mumble__OSS.cpp	Sat Oct 12 17:30:09 2013	(r330152)
@@ -0,0 +1,38 @@
+--- ./src/mumble/OSS.cpp.orig	2013-06-01 21:16:31.000000000 +0000
++++ ./src/mumble/OSS.cpp	2013-10-12 02:38:45.443221514 +0000
+@@ -221,20 +221,23 @@
+ 	ival = AFMT_S16_NE;
+ 	if ((ioctl(fd, SNDCTL_DSP_SETFMT, &ival) == -1) || (ival != AFMT_S16_NE)) {
+ 		qWarning("OSSInput: Failed to set sound format");
+-		goto out;
++		close(fd);
++		return;
+ 	}
+ 
+ 	ival = 1;
+ 	if ((ioctl(fd, SNDCTL_DSP_CHANNELS, &ival) == -1)) {
+ 		qWarning("OSSInput: Failed to set mono mode");
+-		goto out;
++		close(fd);
++		return;
+ 	}
+ 	iMicChannels = ival;
+ 
+ 	ival = SAMPLE_RATE;
+ 	if (ioctl(fd, SNDCTL_DSP_SPEED, &ival) == -1) {
+ 		qWarning("OSSInput: Failed to set speed");
+-		goto out;
++		close(fd);
++		return;
+ 	}
+ 	iMicFreq = ival;
+ 
+@@ -258,8 +261,6 @@
+ 	qWarning("OSSInput: Releasing.");
+ 	ioctl(fd, SNDCTL_DSP_RESET, NULL);
+ 
+-out:
+-	close(fd);
+ }
+ 
+ OSSOutput::OSSOutput() {

Added: head/audio/mumble/files/patch-src__mumble__VoiceRecorderDialog.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/mumble/files/patch-src__mumble__VoiceRecorderDialog.cpp	Sat Oct 12 17:30:09 2013	(r330152)
@@ -0,0 +1,11 @@
+--- ./src/mumble/VoiceRecorderDialog.cpp.orig	2013-06-01 21:16:32.000000000 +0000
++++ ./src/mumble/VoiceRecorderDialog.cpp	2013-10-12 02:38:45.441221500 +0000
+@@ -38,7 +38,7 @@
+ #include "ServerHandler.h"
+ #include "VoiceRecorder.h"
+ 
+-VoiceRecorderDialog::VoiceRecorderDialog(QWidget *p = NULL) : QDialog(p), qtTimer(new QTimer(this)) {
++VoiceRecorderDialog::VoiceRecorderDialog(QWidget *p) : QDialog(p), qtTimer(new QTimer(this)) {
+ 	qtTimer->setObjectName(QLatin1String("qtTimer"));
+ 	qtTimer->setInterval(200);
+ 	setupUi(this);

Modified: head/audio/mumble/pkg-plist
==============================================================================
--- head/audio/mumble/pkg-plist	Sat Oct 12 17:17:31 2013	(r330151)
+++ head/audio/mumble/pkg-plist	Sat Oct 12 17:30:09 2013	(r330152)
@@ -5,16 +5,17 @@ lib/libmumble.so
 lib/libmumble.so.1
 lib/libmumble.so.1.2
 lib/libmumble.so.1.2.4
+man/man1/mumble.1.gz
 share/applications/mumble.desktop
-share/services/mumble.protocol
 share/icons/hicolor/128x128/apps/mumble.png
 share/icons/hicolor/scalable/apps/mumble.svg
 share/pixmaps/mumble.xpm
-@dirrmtry share/applications
+share/services/mumble.protocol
 @dirrmtry share/services
-@dirrmtry share/icons/hicolor/128x128/apps
-@dirrmtry share/icons/hicolor/128x128
 @dirrmtry share/icons/hicolor/scalable/apps
 @dirrmtry share/icons/hicolor/scalable
+@dirrmtry share/icons/hicolor/128x128/apps
+@dirrmtry share/icons/hicolor/128x128
 @dirrmtry share/icons/hicolor
 @dirrmtry share/icons
+@dirrmtry share/applications
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"