Add patch for ppc
This commit is contained in:
parent
a0c3e94056
commit
03b226c18f
11
libcap-ng-0.4.2-bswap.patch
Normal file
11
libcap-ng-0.4.2-bswap.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -urp libcap-ng-0.4.2.orig/src/cap-ng.c libcap-ng-0.4.2/src/cap-ng.c
|
||||||
|
--- libcap-ng-0.4.2.orig/src/cap-ng.c 2009-06-12 10:56:45.000000000 -0400
|
||||||
|
+++ libcap-ng-0.4.2/src/cap-ng.c 2009-06-12 11:56:57.000000000 -0400
|
||||||
|
@@ -32,6 +32,7 @@
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <errno.h>
|
||||||
|
+#include <byteswap.h>
|
||||||
|
|
||||||
|
/* External syscall prototypes */
|
||||||
|
extern int capset(cap_user_header_t header, cap_user_data_t data);
|
@ -6,6 +6,7 @@ License: LGPLv2+
|
|||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://people.redhat.com/sgrubb/libcap-ng
|
URL: http://people.redhat.com/sgrubb/libcap-ng
|
||||||
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
||||||
|
Patch1: libcap-ng-0.4.2-bswap.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: kernel-headers >= 2.6.11
|
BuildRequires: kernel-headers >= 2.6.11
|
||||||
BuildRequires: libattr-devel
|
BuildRequires: libattr-devel
|
||||||
@ -36,6 +37,7 @@ lets you set the file system based capabilities.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --libdir=/%{_lib}
|
%configure --libdir=/%{_lib}
|
||||||
|
Loading…
Reference in New Issue
Block a user