commit 92eafb6842b07499dcfa2545b19979c5da691dc8
Author: Jan RÄ™korajski <[email protected]>
Date:   Fri Nov 1 01:53:08 2019 +0100

    - up to 0.7.10
    - added upsteam fix for https://github.com/stevegrubb/libcap-ng/issues/5

 libcap-ng.spec   |  7 ++++---
 unloadable.patch | 28 ++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/libcap-ng.spec b/libcap-ng.spec
index e4b6cd2..ab56b13 100644
--- a/libcap-ng.spec
+++ b/libcap-ng.spec
@@ -11,14 +11,14 @@
 Summary:       Next Generation of POSIX capabilities library
 Summary(pl.UTF-8):     Biblioteka POSIX capabilities nowej generacji
 Name:          libcap-ng
-Version:       0.7.9
-# 0.7.9 is broken, see https://github.com/stevegrubb/libcap-ng/issues/5
+Version:       0.7.10
 Release:       0.2
 License:       LGPL v2.1+ (library), GPL v2+ (utilities)
 Group:         Libraries
 Source0:       
http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
-# Source0-md5: 2398d695508fab9ce33668c53a89b0e9
+# Source0-md5: 57dc267e2949cdecb651a929f9206572
 Patch0:                vserver.patch
+Patch1:                unloadable.patch
 URL:           http://people.redhat.com/sgrubb/libcap-ng/
 BuildRequires: attr-devel
 BuildRequires: automake
@@ -111,6 +111,7 @@ Interfejs Pythona 3 do biblioteki libcap-ng.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 # force regeneration after captab.h change in vserver patch
 %{__rm} bindings/{python,python3}/capng.py
diff --git a/unloadable.patch b/unloadable.patch
new file mode 100644
index 0000000..29e60e8
--- /dev/null
+++ b/unloadable.patch
@@ -0,0 +1,28 @@
+From 3c42afac11c323fee5da7db771cd20d414fa265d Mon Sep 17 00:00:00 2001
+From: Rene Luria <[email protected]>
+Date: Sun, 9 Dec 2018 21:51:54 +0100
+Subject: [PATCH] Fix mark the DSOs as unloadable
+
+as suggested by Simon McVittie in
+https://github.com/stevegrubb/libcap-ng/issues/5 and Carlos O'Donell at
+https://sourceware.org/bugzilla/show_bug.cgi?id=13502 mark the DSOs as
+unloadable with -z nodelete to prevent crashes at fork
+
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904808
+
+Fix: https://github.com/stevegrubb/libcap-ng/issues/5
+---
+ src/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 5a66d4e..d46d02b 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -34,5 +34,5 @@ noinst_HEADERS = captab.h
+ libcap_ng_la_SOURCES = cap-ng.c lookup_table.c
+ libcap_ng_la_LIBADD =
+ libcap_ng_la_DEPENDENCIES = $(libcap_ng_la_SOURCES) ../config.h
+-libcap_ng_la_LDFLAGS = -Wl,-z,relro
++libcap_ng_la_LDFLAGS = -Wl,-z,relro -Wl,-z,nodelete
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcap-ng.git/commitdiff/92eafb6842b07499dcfa2545b19979c5da691dc8

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to