[Lunar-commits] <moonbase> libcap: patch to compile with kernel-headers-2.6 2.6.30.7

Paul Bredbury brebs at lunar-linux.org
Fri Sep 25 07:45:55 CEST 2009


commit 2b21fd339c89c8c5d111c60fea8175b564130762
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Fri Sep 25 12:45:55 2009 +0700

    libcap: patch to compile with kernel-headers-2.6 2.6.30.7
    
    Based on http://bugs.gentoo.org/265304
---
 libs/libcap/BUILD   |    9 ++++++---
 libs/libcap/DETAILS |    6 +++++-
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/libs/libcap/BUILD b/libs/libcap/BUILD
index c58a153..cb70c74 100644
--- a/libs/libcap/BUILD
+++ b/libs/libcap/BUILD
@@ -1,5 +1,8 @@
 (
-  export PYTHON=1 PYTHONMODDIR=/usr/lib/python2.3/site-packages
-  sed -i 's|WARNINGS=-ansi|WARNINGS=|' Make.Rules &&
-  default_make
+
+  # To compile with kernel-headers-2.6 2.6.30.7
+  patch_it $SOURCE_CACHE/$SOURCE2 1  &&
+
+  default_build
+
 ) > $C_FIFO 2>&1
diff --git a/libs/libcap/DETAILS b/libs/libcap/DETAILS
index b914d3f..c55de2f 100644
--- a/libs/libcap/DETAILS
+++ b/libs/libcap/DETAILS
@@ -1,12 +1,16 @@
           MODULE=libcap
          VERSION=1.97
           SOURCE=$MODULE-$VERSION.tar.bz2
+         SOURCE2=libcap-1.97-compile-with-kernel-headers-2.6-2.6.30.7.patch.bz2
       SOURCE_URL=http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
+     SOURCE2_URL=$PATCH_URL
       SOURCE_VFY=sha1:f200cc8978072637b18cb5beb1df48f63037d395
+     SOURCE2_VFY=sha1:76cf3acff1795694b42b9b8b62d0c92c62506c86
         WEB_SITE=http://www.kernel.org/pub/linux/libs/security/linux-privs
          ENTERED=20040906
-         UPDATED=20070911
+         UPDATED=20090924
            SHORT="POSIX 1003.1e capabilities"
+
 cat << EOF
 POSIX 1003.1e capabilities
 EOF


More information about the Lunar-commits mailing list