diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-10-08 00:29:12 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-10-08 00:37:21 -0400 |
commit | 84ee86e1399efb7a39b33f1ad7e00e5978111d5a (patch) | |
tree | 6d6891b7057b109767fcaac1167f445f8ec152ff /dev-games/clanlib/files | |
parent | media-video/obs-studio: remove version 27.1.1 (diff) | |
download | gentoo-84ee86e1399efb7a39b33f1ad7e00e5978111d5a.tar.gz gentoo-84ee86e1399efb7a39b33f1ad7e00e5978111d5a.tar.bz2 gentoo-84ee86e1399efb7a39b33f1ad7e00e5978111d5a.zip |
dev-games/clanlib: fix consumers when built against glibc-2.34
Code to avoid issues was pre-existing but not enabled on Linux.
Affected 0.8 and 2.3 slots, >=4.0 is no longer using this function.
Closes: https://bugs.gentoo.org/808707
Closes: https://bugs.gentoo.org/811591
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-games/clanlib/files')
-rw-r--r-- | dev-games/clanlib/files/clanlib-0.8.1-glibc2.34.patch | 17 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-2.3.7-glibc2.34.patch | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-games/clanlib/files/clanlib-0.8.1-glibc2.34.patch b/dev-games/clanlib/files/clanlib-0.8.1-glibc2.34.patch new file mode 100644 index 000000000000..85c20ccdbcfd --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-glibc2.34.patch @@ -0,0 +1,17 @@ +pthread_mutexattr_setkind_np() is long deprecated and should be using +pthread_mutexattr_settype() instead even on Linux. Fixes consumers +when built against glibc-2.34. + +https://bugs.gentoo.org/808707 +--- a/Sources/Core/System/Unix/mutex_pthread.cpp ++++ b/Sources/Core/System/Unix/mutex_pthread.cpp +@@ -42,3 +42,3 @@ + { +-#ifdef __FreeBSD__ ++#if 1 + int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind); +@@ -65,3 +65,3 @@ + #else +-#ifdef __FreeBSD__ ++#if 1 + pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); diff --git a/dev-games/clanlib/files/clanlib-2.3.7-glibc2.34.patch b/dev-games/clanlib/files/clanlib-2.3.7-glibc2.34.patch new file mode 100644 index 000000000000..05e7320428ca --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-glibc2.34.patch @@ -0,0 +1,17 @@ +pthread_mutexattr_setkind_np() is long deprecated and should be using +pthread_mutexattr_settype() instead even on Linux. Fixes consumers +when built against glibc-2.34. + +https://bugs.gentoo.org/811591 +--- a/Sources/Core/System/mutex.cpp ++++ b/Sources/Core/System/mutex.cpp +@@ -37,3 +37,3 @@ + { +-#if defined(__APPLE__) || defined (__FreeBSD__) || defined(__OpenBSD__) ++#if 1 + int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind); +@@ -55,3 +55,3 @@ + pthread_mutexattr_init(&attr); +- #if defined(__FreeBSD__) || defined(__APPLE__) ++ #if 1 + pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); |