FS#38333 - [libcap] 2.23-1 fails to include linux/capability.h

Attached to Project: Arch Linux
Opened by Rodrigo Rivas Costa (rodrigorc) - Tuesday, 31 December 2013, 15:28 GMT
Last edited by Allan McRae (Allan) - Thursday, 02 January 2014, 06:32 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The file "/usr/include/sys/capability.h" contains the following line:

#include <uapi/linux/capability.h>

But that file does not exist!

The directory "/usr/include/uapi" is provided by package "linux-api-headers", which also provides "/usr/includelinux/capability.h", that seems to be the one needed. So I'm unsure if it is a bug in libcap, in linux-api-headers or just an inconsistency/incompatibility between versions.

For now patching the include line solves the problem and everything seems to compile just fine.

Additional info:
* libcap-2.23-1
* linux-api-headers-3.12.4-1

Steps to reproduce:

Try to compile anything depending on libcap and it will fail:

$ ./configure
checking for capability.h: no

This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 02 January 2014, 06:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  libcap 2.23-2

Loading...