1 |
commit: 870706df4a5750b79dcae976373d8fe5f6ac749d |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 28 14:54:28 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 28 15:34:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=870706df |
7 |
|
8 |
media-video/pipewire: Fix build with -fno-common |
9 |
|
10 |
Thanks-to: Peter Levine <plevine457 <AT> gmail.com> |
11 |
Closes: https://bugs.gentoo.org/710796 |
12 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../pipewire/files/pipewire-0.2.7-fno-common.patch | 47 ++++++++++++++++++++++ |
16 |
media-video/pipewire/pipewire-0.2.7.ebuild | 2 + |
17 |
2 files changed, 49 insertions(+) |
18 |
|
19 |
diff --git a/media-video/pipewire/files/pipewire-0.2.7-fno-common.patch b/media-video/pipewire/files/pipewire-0.2.7-fno-common.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..f4f82ba96c0 |
22 |
--- /dev/null |
23 |
+++ b/media-video/pipewire/files/pipewire-0.2.7-fno-common.patch |
24 |
@@ -0,0 +1,47 @@ |
25 |
+Bug: https://bugs.gentoo.org/710796 |
26 |
+ |
27 |
+--- a/spa/plugins/bluez5/a2dp-codecs.h |
28 |
++++ b/spa/plugins/bluez5/a2dp-codecs.h |
29 |
+@@ -284,15 +284,15 @@ |
30 |
+ } |
31 |
+ } |
32 |
+ |
33 |
+-const a2dp_sbc_t bluez_a2dp_sbc; |
34 |
++extern const a2dp_sbc_t bluez_a2dp_sbc; |
35 |
+ #if ENABLE_MP3 |
36 |
+-const a2dp_mpeg_t bluez_a2dp_mpeg; |
37 |
++extern const a2dp_mpeg_t bluez_a2dp_mpeg; |
38 |
+ #endif |
39 |
+ #if ENABLE_AAC |
40 |
+-const a2dp_aac_t bluez_a2dp_aac; |
41 |
++extern const a2dp_aac_t bluez_a2dp_aac; |
42 |
+ #endif |
43 |
+ #if ENABLE_APTX |
44 |
+-const a2dp_aptx_t bluez_a2dp_aptx; |
45 |
++extern const a2dp_aptx_t bluez_a2dp_aptx; |
46 |
+ #endif |
47 |
+ |
48 |
+ #endif |
49 |
+--- a/spa/plugins/bluez5/bluez5-monitor.c |
50 |
++++ b/spa/plugins/bluez5/bluez5-monitor.c |
51 |
+@@ -75,7 +75,7 @@ |
52 |
+ struct spa_list transport_list; |
53 |
+ }; |
54 |
+ |
55 |
+-struct spa_handle_factory spa_a2dp_sink_factory; |
56 |
++extern struct spa_handle_factory spa_a2dp_sink_factory; |
57 |
+ |
58 |
+ static void fill_item(struct spa_bt_monitor *this, struct spa_bt_transport *transport, |
59 |
+ struct spa_pod **result, struct spa_pod_builder *builder) |
60 |
+--- a/spa/plugins/bluez5/meson.build |
61 |
++++ b/spa/plugins/bluez5/meson.build |
62 |
+@@ -1,7 +1,8 @@ |
63 |
+ |
64 |
+ bluez5_sources = ['plugin.c', |
65 |
+ 'a2dp-sink.c', |
66 |
+- 'bluez5-monitor.c'] |
67 |
++ 'a2dp-codecs.c', |
68 |
++ 'bluez5-monitor.c'] |
69 |
+ |
70 |
+ bluez5lib = shared_library('spa-bluez5', |
71 |
+ bluez5_sources, |
72 |
|
73 |
diff --git a/media-video/pipewire/pipewire-0.2.7.ebuild b/media-video/pipewire/pipewire-0.2.7.ebuild |
74 |
index f8111e7a728..92f7f268808 100644 |
75 |
--- a/media-video/pipewire/pipewire-0.2.7.ebuild |
76 |
+++ b/media-video/pipewire/pipewire-0.2.7.ebuild |
77 |
@@ -44,6 +44,8 @@ DEPEND=" |
78 |
" |
79 |
RDEPEND="${DEPEND}" |
80 |
|
81 |
+PATCHES=( "${FILESDIR}/${P}-fno-common.patch" ) |
82 |
+ |
83 |
src_prepare() { |
84 |
spa_use() { |
85 |
if ! use ${1}; then |