update to 2.24
dropped patch for rhbz#911878, it is upstream now
This commit is contained in:
parent
c5bd5acad3
commit
0dec76c504
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
libcap-2.17.tar.gz
|
libcap-2.17.tar.gz
|
||||||
/libcap-2.22.tar.bz2
|
/libcap-2.22.tar.bz2
|
||||||
|
/libcap-2.24.tar.gz
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
diff -up libcap-2.22/libcap/cap_file.c.911878 libcap-2.22/libcap/cap_file.c
|
|
||||||
--- libcap-2.22/libcap/cap_file.c.911878 2013-05-14 11:45:25.569448468 +0200
|
|
||||||
+++ libcap-2.22/libcap/cap_file.c 2013-05-14 11:47:04.712036407 +0200
|
|
||||||
@@ -187,7 +187,7 @@ cap_t cap_get_fd(int fildes)
|
|
||||||
/* fill the capability sets via a system call */
|
|
||||||
sizeofcaps = fgetxattr(fildes, XATTR_NAME_CAPS,
|
|
||||||
&rawvfscap, sizeof(rawvfscap));
|
|
||||||
- if (sizeofcaps < sizeof(rawvfscap.magic_etc)) {
|
|
||||||
+ if (sizeofcaps < (int) sizeof(rawvfscap.magic_etc)) {
|
|
||||||
cap_free(result);
|
|
||||||
result = NULL;
|
|
||||||
} else {
|
|
||||||
@@ -217,7 +217,7 @@ cap_t cap_get_file(const char *filename)
|
|
||||||
/* fill the capability sets via a system call */
|
|
||||||
sizeofcaps = getxattr(filename, XATTR_NAME_CAPS,
|
|
||||||
&rawvfscap, sizeof(rawvfscap));
|
|
||||||
- if (sizeofcaps < sizeof(rawvfscap.magic_etc)) {
|
|
||||||
+ if (sizeofcaps < (int) sizeof(rawvfscap.magic_etc)) {
|
|
||||||
cap_free(result);
|
|
||||||
result = NULL;
|
|
||||||
} else {
|
|
@ -1,16 +1,17 @@
|
|||||||
diff -up libcap-2.22/Make.Rules~ libcap-2.22/Make.Rules
|
diff -up libcap-2.24/Make.Rules.rh libcap-2.24/Make.Rules
|
||||||
--- libcap-2.22/Make.Rules~ 2011-07-25 05:18:23.000000000 +0300
|
--- libcap-2.24/Make.Rules.rh 2014-04-16 11:01:44.027253230 +0200
|
||||||
+++ libcap-2.22/Make.Rules 2013-02-24 20:58:45.681474100 +0200
|
+++ libcap-2.24/Make.Rules 2014-04-16 11:02:40.340233607 +0200
|
||||||
@@ -48,7 +48,7 @@ KERNEL_HEADERS := $(topdir)/libcap/inclu
|
@@ -49,7 +49,8 @@ KERNEL_HEADERS := $(topdir)/libcap/inclu
|
||||||
IPATH += -fPIC -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
|
IPATH += -fPIC -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include
|
||||||
|
|
||||||
CC := gcc
|
CC := gcc
|
||||||
-CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
-CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||||
+CFLAGS := $(RPM_OPT_FLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
+CFLAGS := $(RPM_OPT_FLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||||
|
+
|
||||||
BUILD_CC := $(CC)
|
BUILD_CC := $(CC)
|
||||||
BUILD_CFLAGS := $(CFLAGS) $(IPATH)
|
BUILD_CFLAGS := $(CFLAGS) $(IPATH)
|
||||||
AR := ar
|
AR := ar
|
||||||
@@ -59,7 +59,7 @@ WARNINGS=-Wall -Wwrite-strings \
|
@@ -60,7 +61,7 @@ WARNINGS=-Wall -Wwrite-strings \
|
||||||
-Wstrict-prototypes -Wmissing-prototypes \
|
-Wstrict-prototypes -Wmissing-prototypes \
|
||||||
-Wnested-externs -Winline -Wshadow
|
-Wnested-externs -Winline -Wshadow
|
||||||
LD=$(CC) -Wl,-x -shared
|
LD=$(CC) -Wl,-x -shared
|
18
libcap.spec
18
libcap.spec
@ -1,14 +1,12 @@
|
|||||||
Name: libcap
|
Name: libcap
|
||||||
Version: 2.22
|
Version: 2.24
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Library for getting and setting POSIX.1e capabilities
|
Summary: Library for getting and setting POSIX.1e capabilities
|
||||||
# Original tarball should be here, but got deleted:
|
#Source: http://mirror.linux.org.au/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.bz2
|
||||||
#Source: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-2.22.tar.bz2
|
Source: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.gz
|
||||||
Source: http://mirror.linux.org.au/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.bz2
|
|
||||||
# http://manned.org/getpcaps/299a4949/src:
|
# http://manned.org/getpcaps/299a4949/src:
|
||||||
Source1: getpcaps.8
|
Source1: getpcaps.8
|
||||||
Patch0: %{name}-2.22-buildflags.patch
|
Patch0: %{name}-2.24-buildflags.patch
|
||||||
Patch1: libcap-2.22-signed-sizeof-compare.patch
|
|
||||||
|
|
||||||
URL: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
|
URL: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -36,7 +34,6 @@ libcap.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# libcap can not be build with _smp_mflags:
|
# libcap can not be build with _smp_mflags:
|
||||||
@ -76,11 +73,16 @@ chmod +x %{buildroot}/%{_libdir}/*.so.*
|
|||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
/%{_libdir}/*.so
|
/%{_libdir}/*.so
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
%{_libdir}/pkgconfig/libcap.pc
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 16 2014 Karsten Hopp <karsten@redhat.com> 2.24-1
|
||||||
|
- update to 2.24
|
||||||
|
- dropped patch for rhbz#911878, it is upstream now
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-7
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user