1 |
commit: 5636983cd1c5a681e22e28b3a115c168f80f693d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 28 01:40:42 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 28 01:40:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5636983c |
7 |
|
8 |
media-libs/alsa-lib: fix musl build |
9 |
|
10 |
Closes: https://bugs.gentoo.org/792570 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-libs/alsa-lib/alsa-lib-1.2.4.ebuild | 3 +- |
14 |
.../alsa-lib/files/alsa-lib-1.2.4-musl.patch | 32 ++++++++++++++++++++++ |
15 |
2 files changed, 34 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/media-libs/alsa-lib/alsa-lib-1.2.4.ebuild b/media-libs/alsa-lib/alsa-lib-1.2.4.ebuild |
18 |
index 51bdbff6f13..e7a0a5539cb 100644 |
19 |
--- a/media-libs/alsa-lib/alsa-lib-1.2.4.ebuild |
20 |
+++ b/media-libs/alsa-lib/alsa-lib-1.2.4.ebuild |
21 |
@@ -25,7 +25,8 @@ RDEPEND="python? ( ${PYTHON_DEPS} ) |
22 |
DEPEND="${RDEPEND}" |
23 |
|
24 |
PATCHES=( |
25 |
- "${FILESDIR}/${PN}-1.1.6-missing_files.patch" #652422 |
26 |
+ "${FILESDIR}/${PN}-1.1.6-missing_files.patch" # bug #652422 |
27 |
+ "${FILESDIR}/${PN}-1.2.4-musl.patch" # bug #792570 |
28 |
) |
29 |
|
30 |
pkg_setup() { |
31 |
|
32 |
diff --git a/media-libs/alsa-lib/files/alsa-lib-1.2.4-musl.patch b/media-libs/alsa-lib/files/alsa-lib-1.2.4-musl.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..54e6c0e0d23 |
35 |
--- /dev/null |
36 |
+++ b/media-libs/alsa-lib/files/alsa-lib-1.2.4-musl.patch |
37 |
@@ -0,0 +1,32 @@ |
38 |
+https://github.com/alsa-project/alsa-lib/commit/ad8c8e5503980295dd8e5e54a6285d2d7e32eb1e |
39 |
+https://bugs.gentoo.org/792570 |
40 |
+ |
41 |
+From ad8c8e5503980295dd8e5e54a6285d2d7e32eb1e Mon Sep 17 00:00:00 2001 |
42 |
+From: Jaroslav Kysela <perex@×××××.cz> |
43 |
+Date: Thu, 22 Oct 2020 20:57:32 +0200 |
44 |
+Subject: [PATCH] dlmisc: the snd_plugin_dir_set / snd_plugin_dir must be |
45 |
+ declared even for \!DL_ORIGIN_AVAILABLE |
46 |
+ |
47 |
+Fixes: 8580c081c2 ("dlsym: add support for ALSA_PLUGIN_DIR environment variable") |
48 |
+BugLink: https://github.com/alsa-project/alsa-lib/issues/91 |
49 |
+Signed-off-by: Jaroslav Kysela <perex@×××××.cz> |
50 |
+--- |
51 |
+ src/dlmisc.c | 2 -- |
52 |
+ 1 file changed, 2 deletions(-) |
53 |
+ |
54 |
+diff --git a/src/dlmisc.c b/src/dlmisc.c |
55 |
+index c9517c55..f20eb593 100644 |
56 |
+--- a/src/dlmisc.c |
57 |
++++ b/src/dlmisc.c |
58 |
+@@ -42,11 +42,9 @@ |
59 |
+ #ifndef PIC |
60 |
+ struct snd_dlsym_link *snd_dlsym_start = NULL; |
61 |
+ #endif |
62 |
+-#ifdef DL_ORIGIN_AVAILABLE |
63 |
+ static int snd_plugin_dir_set = 0; |
64 |
+ static char *snd_plugin_dir = NULL; |
65 |
+ #endif |
66 |
+-#endif |
67 |
+ |
68 |
+ #if defined(DL_ORIGIN_AVAILABLE) && defined(HAVE_LIBPTHREAD) |
69 |
+ static pthread_mutex_t snd_dlpath_mutex = PTHREAD_MUTEX_INITIALIZER; |