wok-current rev 17663
Fix: libcap
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Feb 15 12:51:49 2015 +0000 (2015-02-15) |
parents | 7c891860d341 |
children | 3efd144781f8 |
files | libcap/receipt |
line diff
1.1 --- a/libcap/receipt Sun Feb 15 12:47:13 2015 +0000 1.2 +++ b/libcap/receipt Sun Feb 15 12:51:49 2015 +0000 1.3 @@ -23,35 +23,6 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - # Linux headers are now sanitized properly for userspace, so patch 1.8 - # libcap. Based on http://bugs.gentoo.org/265304 and 1.9 - # http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg183775.html 1.10 - [ $(grep -c "#define __user" < libcap/include/sys/capability.h) -eq 0 ] \ 1.11 - || patch -p1 << EOP 1.12 ---- libcap-2.16/libcap/include/sys/capability.h.orig 2009-03-05 11:19:00.000000000 -0300 1.13 -+++ libcap-2.16/libcap/include/sys/capability.h 2009-03-05 11:19:38.000000000 -0300 1.14 -@@ -22,18 +22,6 @@ extern "C" { 1.15 - #include <sys/types.h> 1.16 - #include <stdint.h> 1.17 - 1.18 --/* 1.19 -- * Make sure we can be included from userland by preventing 1.20 -- * capability.h from including other kernel headers 1.21 -- */ 1.22 --#define _LINUX_TYPES_H 1.23 --#define _LINUX_FS_H 1.24 --#define __LINUX_COMPILER_H 1.25 --#define __user 1.26 -- 1.27 --typedef unsigned int __u32; 1.28 --typedef __u32 __le32; 1.29 -- 1.30 - #include <linux/capability.h> 1.31 - 1.32 - /* 1.33 -EOP 1.34 - sed -i -e 's/\} __user \*cap_user_/\} \*cap_user_/g' \ 1.35 - libcap/include/linux/capability.h 1.36 make DYNAMIC=yes ${ARCH_ARGS} && 1.37 make RAISE_SETCAP=no DESTDIR=$DESTDIR install 1.38 }