[packages/libivykis] - making pthread_atfork weak symbol in x32 causes segfaults in syslog-ng - rel 5

baggins baggins at pld-linux.org
Sat Feb 9 20:09:11 CET 2019


commit 2db399316971424cb0e73b569e8161f00063a325
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Feb 9 20:08:38 2019 +0100

    - making pthread_atfork weak symbol in x32 causes segfaults in syslog-ng
    - rel 5

 libivykis.spec |  4 +++-
 x32.patch      | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/libivykis.spec b/libivykis.spec
index e045418..e963a30 100644
--- a/libivykis.spec
+++ b/libivykis.spec
@@ -2,11 +2,12 @@ Summary:	Wrapper over various OS'es implementation of I/O readiness notification
 Summary(pl.UTF-8):	Obudowanie implementacji różnych OS-ów powiadamiania o dostępności we/wy
 Name:		libivykis
 Version:	0.42.3
-Release:	4
+Release:	5
 License:	LGPL v2.1
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/libivykis/ivykis-%{version}.tar.gz
 # Source0-md5:	a9c0cc81f1e5e6c61aeb8acd100fd175
+Patch0:		x32.patch
 URL:		http://libivykis.sourceforge.net/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake
@@ -50,6 +51,7 @@ Biblioteki statyczne libivykis.
 
 %prep
 %setup -q -n ivykis-%{version}
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..db309e6
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- ivykis-0.42.3/src/pthr.h~	2018-05-04 08:05:07.000000000 +0200
++++ ivykis-0.42.3/src/pthr.h	2019-02-09 20:05:14.835849535 +0100
+@@ -42,7 +42,7 @@
+  * symbol because that causes it to be undefined even if you link
+  * libpthread_nonshared.a in explicitly.
+  */
+-#ifndef HAVE_LIBPTHREAD_NONSHARED
++#if !defined(HAVE_LIBPTHREAD_NONSHARED) && !defined(__ILP32__)
+ #pragma weak pthread_atfork
+ #endif
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libivykis.git/commitdiff/2db399316971424cb0e73b569e8161f00063a325



More information about the pld-cvs-commit mailing list