From ab659015f3d4df7da17e72897c26778a622c8404 Mon Sep 17 00:00:00 2001 From: Antti Nykanen Date: Wed, 30 Jul 2008 22:10:19 +0300 Subject: [PATCH] libcap: include internal sys/capabilities.h while compiling --- libcap/.md5sum | 1 + libcap/Pkgfile | 5 +++-- libcap/libcap-2.11-makefile.patch | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 libcap/libcap-2.11-makefile.patch diff --git a/libcap/.md5sum b/libcap/.md5sum index fea695251..7e5365792 100644 --- a/libcap/.md5sum +++ b/libcap/.md5sum @@ -1 +1,2 @@ +c67b2d105f48d9413f0f5a16b2162f70 libcap-2.11-makefile.patch 56578c1719424857967676c7584143a3 libcap-2.11.tar.gz diff --git a/libcap/Pkgfile b/libcap/Pkgfile index f3af16ff2..883f8992e 100644 --- a/libcap/Pkgfile +++ b/libcap/Pkgfile @@ -6,12 +6,13 @@ name=libcap version=2.11 release=1 -source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz) +source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz + $name-$version-makefile.patch) build () { cd libcap-$version - sed -i 's:gperf:false:' libcap/Makefile + patch -p1 -i $SRC/$name-$version-makefile.patch make make \ diff --git a/libcap/libcap-2.11-makefile.patch b/libcap/libcap-2.11-makefile.patch new file mode 100644 index 000000000..f094dd04a --- /dev/null +++ b/libcap/libcap-2.11-makefile.patch @@ -0,0 +1,18 @@ +diff -ruN libcap-2.11.orig/libcap/Makefile libcap-2.11/libcap/Makefile +--- libcap-2.11.orig/libcap/Makefile 2008-07-30 22:06:54.000000000 +0300 ++++ libcap-2.11/libcap/Makefile 2008-07-30 22:07:52.000000000 +0300 +@@ -21,13 +21,8 @@ + + all: $(MINLIBNAME) $(STALIBNAME) + +-ifeq ($(shell gperf --version > /dev/null 2>&1 && echo yes),yes) +-USE_GPERF_OUTPUT = $(GPERF_OUTPUT) +-INCLUDE_GPERF_OUTPUT = -include $(GPERF_OUTPUT) +-endif +- + _makenames: _makenames.c cap_names.sed +- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@ ++ $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@ -I./include + + cap_names.h: _makenames + ./_makenames > cap_names.h