Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/deadbeef/, media-sound/deadbeef/files/
Date: Thu, 22 Sep 2022 01:09:44
Message-Id: 1663808941.6f4cb8cabb375778e5d27abe788500f6c3011f20.sam@gentoo
1 commit: 6f4cb8cabb375778e5d27abe788500f6c3011f20
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Wed Sep 21 15:45:07 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 01:09:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f4cb8ca
7
8 media-sound/deadbeef: Fix the build with musl
9
10 There are two more musl build issues, but they are musl bugs that affect
11 code that is force disabled in the ebuild.
12
13 See:
14 https://github.com/DeaDBeeF-Player/deadbeef/issues/2856
15 https://github.com/DeaDBeeF-Player/deadbeef/issues/2857
16 https://www.openwall.com/lists/musl/2022/04/12/1
17
18 Bug: https://bugs.gentoo.org/870187
19 Closes: https://bugs.gentoo.org/870187
20 Upstream-Commit: https://github.com/DeaDBeeF-Player/deadbeef/commit/6864a5779fd6beb21507357736e0c988748cec5a
21 Upstream-Issue: https://github.com/DeaDBeeF-Player/deadbeef/issues/2858
22 Upstream-PR: https://github.com/DeaDBeeF-Player/deadbeef/pull/2859
23 Signed-off-by: orbea <orbea <AT> riseup.net>
24 Closes: https://github.com/gentoo/gentoo/pull/27377
25 Signed-off-by: Sam James <sam <AT> gentoo.org>
26
27 media-sound/deadbeef/deadbeef-1.9.1-r2.ebuild | 1 +
28 media-sound/deadbeef/files/deadbeef-musl.patch | 27 ++++++++++++++++++++++++++
29 2 files changed, 28 insertions(+)
30
31 diff --git a/media-sound/deadbeef/deadbeef-1.9.1-r2.ebuild b/media-sound/deadbeef/deadbeef-1.9.1-r2.ebuild
32 index 97c9f5b329de..e555833d4e50 100644
33 --- a/media-sound/deadbeef/deadbeef-1.9.1-r2.ebuild
34 +++ b/media-sound/deadbeef/deadbeef-1.9.1-r2.ebuild
35 @@ -66,6 +66,7 @@ BDEPEND="
36
37 PATCHES=(
38 "${FILESDIR}/deadbeef-use-ffmpeg-plugin-for-ape-by-default.patch"
39 + "${FILESDIR}/deadbeef-musl.patch" # 870187
40 )
41
42 src_prepare() {
43
44 diff --git a/media-sound/deadbeef/files/deadbeef-musl.patch b/media-sound/deadbeef/files/deadbeef-musl.patch
45 new file mode 100644
46 index 000000000000..a62827243e9f
47 --- /dev/null
48 +++ b/media-sound/deadbeef/files/deadbeef-musl.patch
49 @@ -0,0 +1,27 @@
50 +https://github.com/DeaDBeeF-Player/deadbeef/commit/6864a5779fd6beb21507357736e0c988748cec5a
51 +
52 +Bug: https://bugs.gentoo.org/870187
53 +
54 +From 6864a5779fd6beb21507357736e0c988748cec5a Mon Sep 17 00:00:00 2001
55 +From: orbea <orbea@××××××.net>
56 +Date: Wed, 21 Sep 2022 08:36:46 -0700
57 +Subject: [PATCH] Fix the build with musl
58 +
59 +Fixes: https://github.com/DeaDBeeF-Player/deadbeef/issues/2858
60 +---
61 + threading_pthread.c | 2 +-
62 + 1 file changed, 1 insertion(+), 1 deletion(-)
63 +
64 +diff --git a/threading_pthread.c b/threading_pthread.c
65 +index 004eb6bdc..8d5f4c31c 100644
66 +--- a/threading_pthread.c
67 ++++ b/threading_pthread.c
68 +@@ -97,7 +97,7 @@ thread_start_low_priority (void (*fn)(void *ctx), void *ctx) {
69 + pthread_cancel (tid);
70 + return 0;
71 + }
72 +- return tid;
73 ++ return (intptr_t)tid;
74 + #else
75 + return thread_start (fn, ctx);
76 + #endif