Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94887 - media-sound/jack-audio-connection-kit needs dep. sys-libs/libcap
Summary: media-sound/jack-audio-connection-kit needs dep. sys-libs/libcap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: Inclusion
: 95419 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-02 23:34 UTC by Charlie Gehlin
Modified: 2005-07-14 11:46 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Gehlin 2005-06-02 23:34:20 UTC
When doing a 'emerge -e system' in the middle of a stage1-install
jack-audio-connection-kit fails with an error that basicly tells
me "jackstart.c:38:28: sys/capability.h: No such file or directory"
Therefore I think the jack-audio-connection-kit ebuild needs a
sys-libs/libcap dependancy?

Reproducible: Always
Steps to Reproduce:
1. emerge -e system
2. emerge -pv libcap
3. emerge --nodeps libcap
4. emerge --nodeps swig libcap
5. emerge -e system
Actual Results:  
make[3]: Entering directory `/var/tmp/portage/jack-audio-connection-kit-0.99.0-
r2/work/jack-audio-connection-kit-0.99.0/jackd'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -I../config -I.. -I.. -
D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -march=pentium3 -O2 -mfpmath=sse -
mmmx -msse -mno-sse2 -mno-sse3 -mno-3dnow -funroll-loops -fomit-frame-pointer -
pipe -DJACK_LOCATION=\"/usr/bin\" -I../config -I.. -I.. -D_REENTRANT -
D_POSIX_PTHREAD_SEMANTICS -Wall -march=pentium3 -O2 -mfpmath=sse -mmmx -msse -
mno-sse2 -mno-sse3 -mno-3dnow -funroll-loops -fomit-frame-pointer -pipe -
march=pentium3 -MT jackstart.o -MD -MP -MF ".deps/jackstart.Tpo" -c -o 
jackstart.o jackstart.c; \
then mv -f ".deps/jackstart.Tpo" ".deps/jackstart.Po"; else rm -
f ".deps/jackstart.Tpo"; exit 1; fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -I../config -I.. -I.. -
D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -march=pentium3 -O2 -mfpmath=sse -
mmmx -msse -mno-sse2 -mno-sse3 -mno-3dnow -funroll-loops -fomit-frame-pointer -
pipe -DJACK_LOCATION=\"/usr/bin\" -I../config -I.. -I.. -D_REENTRANT -
D_POSIX_PTHREAD_SEMANTICS -Wall -march=pentium3 -O2 -mfpmath=sse -mmmx -msse -
mno-sse2 -mno-sse3 -mno-3dnow -funroll-loops -fomit-frame-pointer -pipe -
march=pentium3 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.c; \
then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; 
fi
jackstart.c:38:28: sys/capability.h: No such file or directory
jackstart.c: In function `check_capabilities':
jackstart.c:54: error: `cap_t' undeclared (first use in this function)
jackstart.c:54: error: (Each undeclared identifier is reported only once
jackstart.c:54: error: for each function it appears in.)
jackstart.c:54: error: parse error before "caps"
jackstart.c:55: error: `cap_flag_value_t' undeclared (first use in this 
function)
jackstart.c:59: error: `caps' undeclared (first use in this function)
jackstart.c:64: warning: implicit declaration of function `cap_clear'
jackstart.c:65: warning: implicit declaration of function `capgetp'
jackstart.c:70: warning: implicit declaration of function `cap_get_flag'
jackstart.c:70: error: `CAP_SETPCAP' undeclared (first use in this function)
jackstart.c:70: error: `CAP_EFFECTIVE' undeclared (first use in this function)
jackstart.c:70: error: `cap' undeclared (first use in this function)
jackstart.c:71: error: `CAP_CLEAR' undeclared (first use in this function)
jackstart.c:76: error: `CAP_SYS_NICE' undeclared (first use in this function)
jackstart.c:81: error: `CAP_SYS_RESOURCE' undeclared (first use in this 
function)
jackstart.c:86: error: `CAP_IPC_LOCK' undeclared (first use in this function)
jackstart.c:92: warning: implicit declaration of function `cap_free'
jackstart.c: In function `give_capabilities':
jackstart.c:99: error: `cap_t' undeclared (first use in this function)
jackstart.c:99: error: parse error before "caps"
jackstart.c:101: error: `cap_value_t' undeclared (first use in this function)
jackstart.c:101: error: parse error before "cap_list"
jackstart.c:104: error: `caps' undeclared (first use in this function)
jackstart.c:113: warning: implicit declaration of function `cap_set_flag'
jackstart.c:113: error: `CAP_EFFECTIVE' undeclared (first use in this function)
jackstart.c:113: error: `cap_list' undeclared (first use in this function)
jackstart.c:113: error: `CAP_SET' undeclared (first use in this function)
jackstart.c:114: error: `CAP_INHERITABLE' undeclared (first use in this 
function)
jackstart.c:115: error: `CAP_PERMITTED' undeclared (first use in this function)
jackstart.c:116: warning: implicit declaration of function `capsetp'
jackstart.c: In function `main':
jackstart.c:226: error: `cap_t' undeclared (first use in this function)
jackstart.c:226: error: parse error before "cap"
jackstart.c:227: error: `cap' undeclared (first use in this function)
jackstart.c:229: warning: implicit declaration of function `cap_to_text'
jackstart.c:229: warning: format argument is not a pointer (arg 3)
make[3]: *** [jackstart.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/jack-audio-connection-kit-0.99.0-
r2/work/jack-audio-connection-kit-0.99.0/jackd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/jack-audio-connection-kit-0.99.0-
r2/work/jack-audio-connection-kit-0.99.0/jackd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/jack-audio-connection-kit-0.99.0-
r2/work/jack-audio-connection-kit-0.99.0'
make: *** [all] Error 2

!!! ERROR: media-sound/jack-audio-connection-kit-0.99.0-r2 failed.
!!! Function src_compile, Line 67, Exitcode 2
!!! compilation failed
!!! If you need support, post the topmost build error, NOT this status message.

Now the problem is that jack-audio-connection-kit seems to be a dep. to
libcap itself (2:nd package):

emerge -pv sys-libs/libcap

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-libs/libmad-0.15.1b  -debug 490 kB
[ebuild  N    ] media-sound/jack-audio-connection-kit-0.99.0-r2  +alsa (-
altivec) -caps -debug -doc -jack-tmpfs +oss -portaudio 0 kB
[ebuild  N    ] media-libs/libogg-1.1.2  410 kB
[ebuild  N    ] kde-base/kde-env-3-r3  0 kB
[ebuild  N    ] media-libs/libvorbis-1.1.0  -aotuv -debug 1,281 kB
[ebuild  N    ] media-libs/tiff-3.7.2  1,231 kB
[ebuild  N    ] media-libs/lcms-1.14  +jpeg +python +tiff +zlib 653 kB
[ebuild  N    ] media-libs/libmng-1.0.8-r1  497 kB
[ebuild  N    ] media-libs/t1lib-5.0.2  +X -debug -doc 1,657 kB
[ebuild  N    ] x11-libs/motif-config-0.9  0 kB
[ebuild  N    ] x11-libs/openmotif-2.2.3-r7  -debug 5,029 kB
[ebuild  N    ] x11-libs/pango-1.8.1  -debug -doc -static 973 kB
[ebuild  N    ] dev-libs/atk-1.9.1  -debug -doc -static 472 kB
[ebuild  N    ] dev-perl/XML-Parser-2.34  224 kB
[ebuild  N    ] dev-util/intltool-0.32.1  121 kB
[ebuild  N    ] dev-libs/libxml2-2.6.19  -debug +ipv6 +python +readline 3,100 kB
[ebuild  N    ] x11-misc/shared-mime-info-0.16  735 kB
[ebuild  N    ] x11-libs/gtk+-2.6.7  -debug -doc +jpeg -static +tiff 11,174 kB
[ebuild  N    ] media-fonts/gnu-gs-fonts-std-8.11  3,664 kB
[ebuild  N    ] app-text/ghostscript-7.07.1-r9  +X -cjk +cups -debug -emacs 
+gtk 5,273 kB
[ebuild  N    ] app-text/xpdf-3.00-r8  +motif -nodrm 522 kB
[ebuild  N    ] net-print/cups-1.1.23-r3  -cjk -debug +nls +pam +samba -slp 
+ssl 8,506 kB
[ebuild  N    ] x11-libs/qt-3.3.4-r4  +cups -debug -doc -examples -firebird 
+gif -immqt -immqt-bc +ipv6 +mysql +nas -odbc +opengl -postgres -sqlite 
+xinerama +zlib 14,101 kB
[ebuild  N    ] kde-base/arts-3.4.1  +alsa +arts -artswrappersuid -debug +esd -
hardened +jack -kdeenablefinal +mp3 +vorbis +xinerama 952 kB
[ebuild  N    ] app-crypt/mit-krb5-1.3.6-r2  +krb4 -static 6,380 kB
[ebuild  N    ] net-nds/openldap-2.2.26-r2  +berkdb +crypt -debug +gdbm +ipv6 
+kerberos -odbc +perl +readline +samba -sasl -slp +ssl +tcpd 4,561 kB
[ebuild  N    ] dev-db/mysql-4.0.24-r1  +berkdb -debug -doc -minimal +perl 
+readline (-selinux) +ssl -static +tcpd 16,489 kB
[ebuild  N    ] net-fs/samba-3.0.14a-r1  +acl +cups -doc +kerberos +ldap -
libclamav +mysql -oav +pam -postgres +python -quotas +readline (-selinux) -
winbind -xml +xml2 15,244 kB
[ebuild  N    ] perl-core/Storable-2.13  131 kB
[ebuild  N    ] dev-perl/Net-Daemon-0.38  30 kB
[ebuild  N    ] dev-perl/PlRPC-0.2018  17 kB
[ebuild  N    ] dev-perl/DBI-1.48  369 kB
[ebuild  N    ] dev-perl/DBD-mysql-2.9007  114 kB
[ebuild  N    ] dev-lang/nasm-0.98.39-r1  -build -doc 531 kB
[ebuild  N    ] media-libs/aalib-1.4_rc5  +X +gpm -slang 381 kB
[ebuild  N    ] media-libs/giflib-4.1.3-r1  +X 556 kB
[ebuild  N    ] media-libs/imlib2-1.2.0.007  +X -doc +gif +jpeg +mmx +nls +png 
+tiff 866 kB
[ebuild  N    ] media-libs/libcaca-0.9-r1  +X -doc +imlib +ncurses -slang 210 kB
[ebuild  N    ] media-libs/libgii-0.9.0  +X -debug 715 kB
[ebuild  N    ] media-libs/libggi-2.1.0  -3dfx +X +aalib -debug -dga -directfb 
+fbcon +mmx -svga (-vis) 858 kB
[ebuild  N    ] media-libs/libsdl-1.2.8-r1  +X +aalib +alsa +arts -debug -dga -
directfb +esd +fbcon +ggi +libcaca +nas -noaudio -nojoystick -novideo +opengl 
+oss -pic -svga +xinerama +xv 2,541 kB
[ebuild  N    ] sys-libs/lib-compat-1.4  +sdl 3,090 kB
[ebuild  N    ] dev-java/java-config-1.2.11  15 kB
[ebuild  N    ] dev-java/blackdown-jdk-1.4.2.01-r2  -doc +mozilla 36,756 kB
[ebuild  N    ] dev-lang/swig-1.3.21  +X -debug -guile +java +perl -php 
+python -ruby +tcltk 1,975 kB
[ebuild  N    ] sys-libs/libcap-1.10-r5  -debug -nocxx +python -static 0 kB

'emerge --nodeps libcap' fails with:
swig -python -o libcap_wrap.c include/sys/capability.h
make[1]: swig: Command not found
make[1]: *** [libcap_wrap.c] Error 127
make[1]: Leaving directory `/var/tmp/portage/libcap-1.10-r5/work/libcap-
1.10/libcap'
make: *** [all] Error 2

!!! ERROR: sys-libs/libcap-1.10-r5 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

So I do 'emerge --nodeps swig && emerge --nodeps libcap' (which compiles fine)
but then when doing 'emerge --resume' it (of course...) says: "emerge: It seems 
we have nothing to resume..." so I'm back to 'emerge -e system' again. 161 
builds to go :( , so I can't really tell if the deps are right yet, but maybe 
you devs can...

Expected Results:  
swig and libcap to be a dep. of jack-audio-connection-kit

emerge info:
emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 
2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -mfpmath=sse -mmmx -msse -mno-sse2 -mno-sse3 -mno-
3dnow -funroll-loops -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -mfpmath=sse -mmmx -msse -mno-sse2 -mno-sse3 -mno-
3dnow -funroll-loops -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo 
ftp://ftp.sunet.se/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.inside.gehlin.com/gentoo-portage"
USE="x86 X X509 aalib acl alsa apm arts avi bash-completion berkdb bitmap-fonts 
bzip2 chroot crypt cups emboss encode esd fbcon font-server foomaticdb fortran 
gcj gdbm ggi gif gnome gpm gtk gtk2 imlib insecure-drivers ipv6 jack java jpeg 
kde kerberos krb4 ldap libcaca libg++ libwww mad md5sum mikmod mmx motif 
mozilla mp3 mpeg mysql nas ncurses nls objc oggvorbis opengl oss pam pcre 
pdflib perl png python qt quicktime readline samba sdl sftplogging spell sse 
ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xinerama 
xml2 xmms xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Thanks for a perfect dist!

/Charlie
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-03 05:39:14 UTC
Put caps into your use flags and don
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-03 05:39:14 UTC
Put caps into your use flags and don´t do such things like --nodeps. 
Comment 3 Charlie Gehlin 2005-06-03 06:29:08 UTC
@Jakub: If you read the whole bug-report you might understand the --nodeps
"things". Also, if jack-audio-connection-kit is so dependent on a use flag - 
shouldn't that ebuild complain about caps-flag is missing?

/Charlie
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-06-03 07:22:16 UTC
I really fail to see the missing dependency... 

RDEPEND=">=media-libs/libsndfile-1.0.0
        dev-libs/glib
        dev-util/pkgconfig
        sys-libs/ncurses
        !ppc64? ( !alpha? ( !ia64? ( portaudio? ( media-libs/portaudio ) ) ) )
        !sparc? ( alsa? ( >=media-libs/alsa-lib-0.9.1 ) )
        caps? ( sys-libs/libcap )
        !media-sound/jack-cvs"

Comment 5 bonyhips 2005-06-07 01:49:28 UTC
there is another issue here. i have just spent a while trying to build
jack-audio-connection-kit-0.99.0-r2, and found out what the problem is. jack is
only supposed to depend on libcap if caps is enabled. if it is, the jackstart
program is built, which is what has the dependency on libcap. however, i do not
have the caps flag set in my use settings, but for some reason jackstart.c is
still getting compiled. it can't find libcap, hence why the build fails.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-06-07 23:28:47 UTC
*** Bug 95419 has been marked as a duplicate of this bug. ***
Comment 7 Jonathan Drolet 2005-06-20 14:58:33 UTC
I have the same problem compiling jack-audio-connection-kit-0.99.0-r2 since I
don't have libcap installed.  However, jack-audio-connection-kit-0.99.0-r1
compiles fine without libcap.
Comment 8 Daniel Thaler 2005-07-02 17:44:52 UTC
the problem here is jack-audio-connection-kit-0.99.0-jackstart.patch, which
makes jackstart be compiled unconditionally.

IMO the correct thing to do here is this:
--- jack-audio-connection-kit-0.99.0-r2.ebuild  2005-07-03 02:37:07.000000000 +0200
+++ jack-audio-connection-kit-0.99.0-r2.ebuild.new      2005-07-03
02:48:26.000000000 +0200
@@ -36,7 +36,9 @@
        fi

        # compile and install jackstart, see #92895
-       epatch ${FILESDIR}/${P}-jackstart.patch
+       if use caps ; then
+               epatch ${FILESDIR}/${P}-jackstart.patch
+       fi
 }

 src_compile() {

Comment 9 Christian Schoenebeck 2005-07-10 12:39:33 UTC
Yep, Daniel is right. 
 
So... gogogo :D 
Comment 10 Simon Stelling (RETIRED) gentoo-dev 2005-07-13 13:36:44 UTC
can confirm this bug, the patch in comment 7 obviously fixes it
Comment 11 Frank van de Pol (RETIRED) gentoo-dev 2005-07-14 11:46:31 UTC
Fixed in portage cvs (thanks Daniel!).