[Lunar-commits] <moonbase> libcap: fix compilation

Paul Bredbury brebs at lunar-linux.org
Wed Jan 26 07:03:53 CET 2011


commit ebf4e5648bc10ec1d818a5dbf86e5a7ed833f5d3
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Wed Jan 26 13:03:53 2011 +0700

    libcap: fix compilation
---
 libs/libcap/BUILD   |    4 ++++
 libs/libcap/DETAILS |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libs/libcap/BUILD b/libs/libcap/BUILD
index 85d1499..62a1181 100644
--- a/libs/libcap/BUILD
+++ b/libs/libcap/BUILD
@@ -1,5 +1,9 @@
 (
 
+  # Fixes compilation error:
+  # Failed to set capabilities on file `/sbin/setcap' (Operation not supported)
+  patch_it $SOURCE2 1 &&
+
   if !( module_installed attr ); then
      sedit "s/LIBATTR := yes/LIBATTR := no/" Make.Rules
   fi &&
diff --git a/libs/libcap/DETAILS b/libs/libcap/DETAILS
index 53fa59f..0181474 100644
--- a/libs/libcap/DETAILS
+++ b/libs/libcap/DETAILS
@@ -1,8 +1,11 @@
           MODULE=libcap
          VERSION=2.20
           SOURCE=$MODULE-$VERSION.tar.gz
+         SOURCE2=libcap-2.20-raise_setfcap.patch.bz2
       SOURCE_URL=http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2
+     SOURCE2_URL=$PATCH_URL
       SOURCE_VFY=sha1:3da856da7920de687f58f399a8ed833536e8267b
+     SOURCE2_VFY=sha1:ac0a02ba7df946954080a966cdd008320cc25ca1
         WEB_SITE=http://www.kernel.org/pub/linux/libs/security/linux-privs
          ENTERED=20040906
          UPDATED=20110123


More information about the Lunar-commits mailing list