Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 174078

Summary: circular loop between sys-libs/libcap and dev-lang/swig
Product: Gentoo Linux Reporter: Manuel Gomez <targen>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of "emerge info".
Log of emerge attempt.

Description Manuel Gomez 2007-04-10 19:59:23 UTC
The libcap-1.10-r9 compile requires swig being installed.  If it isn't, the compile fails.  Attached is a log of the attempt to emerge it.  Furthermore, attempting to manually emerge swig without --no-deps has libcap listed as one of the dependencies (although quite deep in the list; this error was observed right after installing Gentoo, while emerging basically everything (X, updating portage, etc) with lots of USE stuff turned on).  The problem is fixed by doing emerge --no-deps swig, and then emerge libcap.

Reproducible: Always

Steps to Reproduce:
1.Don't have swig installed.
2.Try to emerge libcap.
3.Fail!
Actual Results:  
libcap fails to emerge:
swig -python -o libcap_wrap.c include/sys/capability.h
make[1]: swig: Command not found
make[1]: *** [libcap_wrap.c] Error 127

Expected Results:  
The libcap ebuild should depend on swig, thus eliminating this issue.

Failed emerge log and output of emerge info attached.
Comment 1 Manuel Gomez 2007-04-10 20:02:44 UTC
Created attachment 115933 [details]
Output of "emerge info".

Excuse my huge USE flag; I just want it all! :-)
Comment 2 Manuel Gomez 2007-04-10 20:06:18 UTC
Created attachment 115935 [details]
Log of emerge attempt.

I believe this has color control characters; sorry about that.  They're only on the first few lines, though.
The error happens near the end, naturally.  It tries using swig, but that program isn't installed.  While a trivial solution is simply doing emerge --no-deps swig, swig should be listed in libcap's dependencies.
Comment 3 Manuel Gomez 2007-04-10 20:17:45 UTC
emerge info output attached as I believe it's rather large and ugly.
Comment 4 SpanKY gentoo-dev 2007-04-10 21:31:21 UTC
libcap emerges just fine w/out swig ... you have USE=python which means you requested libcap build with swig
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-05 23:11:08 UTC

*** This bug has been marked as a duplicate of bug 175808 ***