ports/155235: audio/pulseaudio: fails build on recent 9.0-CURRENT
Scot Hetzel
swhetzel at gmail.com
Thu Mar 3 18:50:16 UTC 2011
>Number: 155235
>Category: ports
>Synopsis: audio/pulseaudio: fails build on recent 9.0-CURRENT
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 03 18:50:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Scot Hetzel
>Release: 9.0-CURRENT
>Organization:
>Environment:
>Description:
When building audio/pulseaudio on recent 9.0-CURRENT, it fails building due to it is now trying to build the port with capabilities support. This was caused by the recent capsicum import (specificly SVN r219140) of the sys/capability.h header file.
>How-To-Repeat:
upgrade/install system to a recent 9.0-CURRENT
# cd /usr/ports/audio/pulseaudio
# make configure
:
checking for X11... yes^M
checking for library containing cap_init... no^M
checking sys/capability.h usability... yes^M
checking sys/capability.h presence... yes^M
checking for sys/capability.h... yes^M
:
# make build
:
CC pulseaudio-caps.o^M
daemon/caps.c: In function 'pa_drop_root':^M
daemon/caps.c:91: error: 'cap_t' undeclared (first use in this function)^M
daemon/caps.c:91: error: (Each undeclared identifier is reported only once^M
daemon/caps.c:91: error: for each function it appears in.)^M
daemon/caps.c:91: error: expected ';' before 'caps'^M
daemon/caps.c:92: error: 'caps' undeclared (first use in this function)^M
daemon/caps.c:92: warning: implicit declaration of function 'cap_init'^M
daemon/caps.c:93: warning: implicit declaration of function 'cap_clear'^M
daemon/caps.c:94: warning: implicit declaration of function 'cap_set_proc'^M
daemon/caps.c:95: warning: implicit declaration of function 'cap_free'^M
gmake[3]: *** [pulseaudio-caps.o] Error 1^M
gmake[3]: Leaving directory `/usr/ports/audio/pulseaudio/work/pulseaudio-0.9.22/
src'^M
gmake[2]: *** [all] Error 2^M
>Fix:
Apply the attached patch which will disable capability support by default.
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/pulseaudio/Makefile,v
retrieving revision 1.62
diff -u -r1.62 Makefile
--- Makefile 4 Dec 2010 07:30:29 -0000 1.62
+++ Makefile 3 Mar 2011 12:38:29 -0000
@@ -51,7 +51,8 @@
OPTIONS= JACK "JACK audio support" Off \
AVAHI "Enable Avahi mDNS support" On \
HAL "Enable HAL support" On \
- GCONF "Enable GConf support" On
+ GCONF "Enable GConf support" On \
+ CAPS "Enable Capabilities support (Broken)" Off
PULSE_VERSION= ${PORTVERSION}
PLIST_SUB= PULSE_VERSION=${PULSE_VERSION}
@@ -73,6 +74,14 @@
${FILESDIR}/extra-patch-src_pulse_context.c
.endif
+.if !defined(WITH_CAPS)
+CONFIGURE_ARGS+= --without_caps
+.else
+.if ${OSVERSION} > 900032
+BROKEN= Capabilities support not complete
+.endif
+.endif
+
.if defined(WITH_JACK)
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
PLIST_SUB+= JACK=""
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list