wok-6.x diff libcap/receipt @ rev 18995

Add: PeaZip 6.0.0 Env:GTK2 - (peazip.org).
author Leonardo Laporte <hackdorte@sapo.pt>
date Sat Mar 19 01:26:01 2016 -0300 (2016-03-19)
parents 132cb5109518
children 3e7ded8526ee
line diff
     1.1 --- a/libcap/receipt	Sat Feb 14 22:17:55 2015 +0000
     1.2 +++ b/libcap/receipt	Sat Mar 19 01:26:01 2016 -0300
     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  }