public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/ivykis/files/, dev-libs/ivykis/
@ 2019-01-19  3:22 Thomas Deutschmann
  0 siblings, 0 replies; only message in thread
From: Thomas Deutschmann @ 2019-01-19  3:22 UTC (permalink / raw
  To: gentoo-commits

commit:     94497c9737e91347b528b31d5c4a60e649b8a45e
Author:     Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Tue Jan 15 06:33:52 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Jan 19 03:21:45 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94497c97

dev-libs/ivykis: fix building with glibc-2.28

Closes: https://bugs.gentoo.org/675338
Package-Manager: Portage-2.3.55, Repoman-2.3.12
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/10836
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 .../files/ivykis-fix-segfault-glibc-2.28.patch     | 29 ++++++++++++++++++++++
 dev-libs/ivykis/ivykis-0.42.3-r1.ebuild            | 12 +++++++++
 2 files changed, 41 insertions(+)

diff --git a/dev-libs/ivykis/files/ivykis-fix-segfault-glibc-2.28.patch b/dev-libs/ivykis/files/ivykis-fix-segfault-glibc-2.28.patch
new file mode 100644
index 00000000000..5d7352669f2
--- /dev/null
+++ b/dev-libs/ivykis/files/ivykis-fix-segfault-glibc-2.28.patch
@@ -0,0 +1,29 @@
+# https://github.com/buytenh/ivykis/issues/15
+# https://github.com/buytenh/ivykis/pull/16
+
+diff --git a/configure.ac b/configure.ac
+index e9b10c0..56440d1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -88,6 +88,8 @@ esac
+ # link in libpthread_nonshared.a if it is available.
+ #
+ AC_CHECK_LIB([pthread_nonshared], [pthread_atfork])
++# the lib is gone in glibc 2.28, things are now in c_nonshared
++AC_CHECK_LIB([c_nonshared], [pthread_atfork])
+ 
+ # Checks for header files.
+ AC_CHECK_HEADERS([process.h])
+diff --git a/src/pthr.h b/src/pthr.h
+index a41eaf3..32c1af2 100644
+--- a/src/pthr.h
++++ b/src/pthr.h
+@@ -42,7 +42,7 @@ static inline int pthreads_available(void)
+  * 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(HAVE_LIBC_NONSHARED)
+ #pragma weak pthread_atfork
+ #endif
+ 

diff --git a/dev-libs/ivykis/ivykis-0.42.3-r1.ebuild b/dev-libs/ivykis/ivykis-0.42.3-r1.ebuild
index bb7cc9b108c..7682426f6e8 100644
--- a/dev-libs/ivykis/ivykis-0.42.3-r1.ebuild
+++ b/dev-libs/ivykis/ivykis-0.42.3-r1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit autotools
+
 DESCRIPTION="Library for asynchronous I/O readiness notification"
 HOMEPAGE="https://github.com/buytenh/ivykis"
 SRC_URI="https://github.com/buytenh/ivykis/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -12,6 +14,16 @@ SLOT="0"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86"
 IUSE="static-libs"
 
+PATCHES=(
+	"${FILESDIR}/${PN}-fix-segfault-glibc-2.28.patch" # Bug 675338
+)
+
+src_prepare() {
+	default
+
+	eautoreconf
+}
+
 src_configure() {
 	econf $(use_enable static-libs static)
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-19  3:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-19  3:22 [gentoo-commits] repo/gentoo:master commit in: dev-libs/ivykis/files/, dev-libs/ivykis/ Thomas Deutschmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox