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.
Created attachment 115933 [details] Output of "emerge info". Excuse my huge USE flag; I just want it all! :-)
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.
emerge info output attached as I believe it's rather large and ugly.
libcap emerges just fine w/out swig ... you have USE=python which means you requested libcap build with swig
*** This bug has been marked as a duplicate of bug 175808 ***