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

Bug 691870

Summary: net-dns/bind-tools-9.14.4 missing sys-libs/libcap dependency
Product: Gentoo Linux Reporter: Vedran Vrbanc <vvrbanc>
Component: Current packagesAssignee: Christian Ruppert (idl0r) <idl0r>
Status: RESOLVED DUPLICATE    
Severity: normal CC: zlogene
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vedran Vrbanc 2019-08-09 22:35:26 UTC
This happens when building admincd-stage1 from scratch with catalyst:

configure: error: sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps.


Workaround is to comment it out from the spec file, and some other package eventually pulls it in, after which the build succeeds.


Desired solution would be to either add sys-libs/libcap as a hard dependency, or add a "caps" USE flag similar to the net-misc/iputils package, which would add --disable-linux-caps configure option for net-dns/bind-tools.
Comment 1 Vedran Vrbanc 2019-08-10 06:33:03 UTC
Sorry if the original report is unclear,

sys/capability.h, provided by sys-libs/libcap, is required for building net-dns/bind-tools in its current configuration.

Normally libcap gets pulled in by system packages such as glibc if USE=caps is enabled. But when building stage1 with catalyst, libcap is emerged after bind-tools and so the initial build fails.

Therefore the ebuild for bind-tools should have libcap as dependency if "caps" is enabled, or add --disable-linux-caps to bind-tools ./configure arguments if "caps" is not enabled.
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-08-16 22:01:19 UTC

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