Bug 155235 - audio/pulseaudio: fails build on recent 9.0-CURRENT
Summary: audio/pulseaudio: fails build on recent 9.0-CURRENT
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: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 18:50 UTC by Scot Hetzel
Modified: 2011-03-12 15:20 UTC (History)
0 users

See Also:


Attachments
file.diff (923 bytes, patch)
2011-03-03 18:50 UTC, Scot Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2011-03-03 18:50:12 UTC
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.

Fix: Apply the attached patch which will disable capability support by default.

Patch attached with submission follows:
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-03 18:50:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Scot Hetzel 2011-03-04 06:42:59 UTC
Just noticed that the CONFIGURE_ARG should be "--without-caps".

Scot
Comment 3 Steve Wills freebsd_committer freebsd_triage 2011-03-12 15:06:54 UTC
Responsible Changed
From-To: gnome->swills

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2011-03-12 15:10:13 UTC
swills      2011-03-12 15:09:51 UTC

  FreeBSD ports repository

  Modified files:
    audio/pulseaudio     Makefile 
  Log:
  Disable Capabilities globally since it is broken
  
  PR:             ports/155235
  Submitted by:   Scot Hetzel <swhetzel at gmail.com>
  Approved by:    kwm (multimedia@)
  
  Revision  Changes    Path
  1.63      +2 -0      ports/audio/pulseaudio/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Steve Wills freebsd_committer freebsd_triage 2011-03-12 15:10:49 UTC
State Changed
From-To: open->closed

Committed with changes. There's no need for the option until it works.