sys-cluster/ceph: fix building with glibc-2.32

Bug: https://bugs.gentoo.org/739042
Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
This commit is contained in:
Vadim Misbakh-Soloviov
2020-10-02 18:37:33 +07:00
parent b0467141c8
commit 8430cafd2d
3 changed files with 17 additions and 0 deletions

View File

@@ -199,6 +199,7 @@ PATCHES=(
"${FILESDIR}/ceph-15.2.3-spdk-compile.patch"
"${FILESDIR}/ceph-14.2.10-python-warnings.patch"
"${FILESDIR}/ceph-15.2.4-system-uring.patch"
"${FILESDIR}/ceph-15.2.5-glibc-2.32.patch"
)
check-reqs_export_vars() {

View File

@@ -201,6 +201,7 @@ PATCHES=(
"${FILESDIR}/ceph-15.2.4-system-uring.patch"
"${FILESDIR}/ceph-15.2.5-missing-includes.patch"
"${FILESDIR}/ceph-15.2.5-systemd-unit-fix.patch"
"${FILESDIR}/ceph-15.2.5-glibc-2.32.patch"
)
check-reqs_export_vars() {

View File

@@ -0,0 +1,15 @@
diff -NaurBwdp a/src/global/signal_handler.h src/global/b/signal_handler.h
--- a/src/global/signal_handler.h 2020-10-01 03:15:48.208164979 +0700
+++ b/src/global/signal_handler.h 2020-10-01 03:15:40.655244081 +0700
@@ -20,11 +20,7 @@
typedef void (*signal_handler_t)(int);
-#ifndef HAVE_REENTRANT_STRSIGNAL
-# define sig_str(signum) sys_siglist[signum]
-#else
# define sig_str(signum) strsignal(signum)
-#endif
void install_sighandler(int signum, signal_handler_t handler, int flags);