1 |
commit: 9e7b319e7893e19fc4bb30a3351927cf61210d6f |
2 |
Author: Niklāvs Koļesņikovs <89q1r14hd <AT> relay <DOT> firefox <DOT> com> |
3 |
AuthorDate: Thu Jan 6 18:59:36 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 6 20:53:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e7b319e |
7 |
|
8 |
media-video/wireplumber: bump to 0.4.6 and sync KEYWORDS for live |
9 |
|
10 |
This commit adds WirePlumber 0.4.6 and synchronizes KEYWORDS of the live |
11 |
ebuild with current keywording state by adding ~sparc (other BE arches |
12 |
are already present), so that it's not accidentally lost. |
13 |
|
14 |
Because one of the patches Gentoo applies to fix BE issues has been |
15 |
upstreamed since 0.4.5 was released, this commit unpacks the old BE |
16 |
fixes archive, removes the upstreamed parts and added the still missing |
17 |
fixes as a regular patch in FILESDIR. They should be upstreamed shortly. |
18 |
|
19 |
Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd <AT> relay.firefox.com> |
20 |
Closes: https://github.com/gentoo/gentoo/pull/23644 |
21 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
22 |
|
23 |
media-video/wireplumber/Manifest | 1 + |
24 |
.../files/wireplumber-0.4.6-endianness-fixes.patch | 229 +++++++++++++++++++++ |
25 |
...lumber-9999.ebuild => wireplumber-0.4.6.ebuild} | 6 +- |
26 |
media-video/wireplumber/wireplumber-9999.ebuild | 2 +- |
27 |
4 files changed, 236 insertions(+), 2 deletions(-) |
28 |
|
29 |
diff --git a/media-video/wireplumber/Manifest b/media-video/wireplumber/Manifest |
30 |
index 55ce53511807..5b354c8484df 100644 |
31 |
--- a/media-video/wireplumber/Manifest |
32 |
+++ b/media-video/wireplumber/Manifest |
33 |
@@ -1,2 +1,3 @@ |
34 |
DIST wireplumber-0.4.5-endianness-fixes.patch.bz2 2341 BLAKE2B 225b164a4624128b50fe8691e3577de9aea35e85ed0527c605a617227d96ad49646b658da120d118ab45fd1ed82ed188ad1073b0a8954632ec6501535d533009 SHA512 d5b64612aad6d462ffbc78a24cf50ebde83b29e183a6d169976f5d8fdb0ec3c72984135ee75d52f7d7e8261716482ca277c49cf5824028bfaf33e596857de97f |
35 |
DIST wireplumber-0.4.5.tar.gz 345035 BLAKE2B 177984901790228d8ddeb8ee2a548eb53db07c8077734590c3f964df36cfa47a4099e049ae9a19a136f4147c75b7122359a73b8387a641768f71484b9c4ab119 SHA512 b0d5962e7a83709cc3115fbf0a04b63660085aeea2ebda6d78d692065ccb193cea8b44bb506fa440cf0b88bfae71a4f69a192cd6cba885ebf3c9270bea50c67a |
36 |
+DIST wireplumber-0.4.6.tar.gz 357392 BLAKE2B 03942930b1eafb37071c0f38071567fb6117a9a64b91f064982eafa34a8662e1cba26b634db9c74a4e0bd0a8765d9b827ab2afd5e364c6377fa7ecbc7e32c5d1 SHA512 4b4b9aff6e0e6d7c567e20e4df533cfd16287f2e7498ae8533a9a4251066e6d0a9cd99e3da48f525bb2010053f7c9918fe09a5ade39c8830ec08c24292527684 |
37 |
|
38 |
diff --git a/media-video/wireplumber/files/wireplumber-0.4.6-endianness-fixes.patch b/media-video/wireplumber/files/wireplumber-0.4.6-endianness-fixes.patch |
39 |
new file mode 100644 |
40 |
index 000000000000..9b8bba93a8ab |
41 |
--- /dev/null |
42 |
+++ b/media-video/wireplumber/files/wireplumber-0.4.6-endianness-fixes.patch |
43 |
@@ -0,0 +1,229 @@ |
44 |
+Bunch of patches from https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/49 |
45 |
+Requires pipewire 0.3.42 for 03f0a7c9bac3e61126fc852e543b8ea254471eb7. |
46 |
+ |
47 |
+--- a/tests/wp/spa-pod.c |
48 |
++++ b/tests/wp/spa-pod.c |
49 |
+@@ -6,6 +6,8 @@ |
50 |
+ * SPDX-License-Identifier: MIT |
51 |
+ */ |
52 |
+ |
53 |
++#include <stdbool.h> |
54 |
++ |
55 |
+ #include <wp/wp.h> |
56 |
+ |
57 |
+ static void |
58 |
+@@ -428,12 +430,12 @@ test_spa_pod_object (void) |
59 |
+ wp_spa_type_name (wp_spa_pod_get_spa_type (pod))); |
60 |
+ |
61 |
+ const char *id_name; |
62 |
+- gboolean mute = TRUE; |
63 |
++ bool mute = true; |
64 |
+ float vol = 0.0; |
65 |
+ gint32 frequency; |
66 |
+ const char *device; |
67 |
+ gint64 device_fd; |
68 |
+- gboolean custom = FALSE; |
69 |
++ bool custom = false; |
70 |
+ g_assert_true (wp_spa_pod_get_object (pod, |
71 |
+ &id_name, |
72 |
+ "mute", "b", &mute, |
73 |
+@@ -475,12 +477,12 @@ test_spa_pod_object (void) |
74 |
+ wp_spa_type_name (wp_spa_pod_get_spa_type (pod))); |
75 |
+ |
76 |
+ const char *id_name; |
77 |
+- gboolean mute = TRUE; |
78 |
++ bool mute = true; |
79 |
+ float vol = 0.0; |
80 |
+ gint32 frequency; |
81 |
+ const char *device; |
82 |
+ gint64 device_fd; |
83 |
+- gboolean custom = FALSE; |
84 |
++ bool custom = false; |
85 |
+ g_autoptr (WpSpaPodParser) p = wp_spa_pod_parser_new_object (pod, &id_name); |
86 |
+ g_assert_nonnull (pod); |
87 |
+ g_assert_true (wp_spa_pod_parser_get (p, "mute", "b", &mute, NULL)); |
88 |
+@@ -603,7 +605,7 @@ test_spa_pod_struct (void) |
89 |
+ g_assert_true (wp_spa_pod_parser_get (p, "P", &value_object, NULL)); |
90 |
+ g_assert_nonnull (value_object); |
91 |
+ const char *id_name; |
92 |
+- gboolean mute = TRUE; |
93 |
++ bool mute = true; |
94 |
+ |
95 |
+ g_assert_true (wp_spa_pod_get_object (value_object, |
96 |
+ &id_name, |
97 |
+--- a/tests/wp/endpoint.c |
98 |
++++ b/tests/wp/endpoint.c |
99 |
+@@ -499,7 +499,7 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
100 |
+ g_auto (GValue) item = G_VALUE_INIT; |
101 |
+ g_autoptr (WpSpaPod) pod = NULL; |
102 |
+ gfloat float_value = 0.0f; |
103 |
+- gboolean boolean_value = TRUE; |
104 |
++ bool boolean_value = true; |
105 |
+ |
106 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
107 |
+ WP_PIPEWIRE_OBJECT (fixture->proxy_endpoint), "Props", NULL); |
108 |
+@@ -513,7 +513,7 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
109 |
+ "mute", "b", &boolean_value, |
110 |
+ NULL)); |
111 |
+ g_assert_cmpfloat_with_epsilon (float_value, 1.0f, 0.001); |
112 |
+- g_assert_cmpint (boolean_value, ==, FALSE); |
113 |
++ g_assert_cmpint (boolean_value, ==, false); |
114 |
+ } |
115 |
+ |
116 |
+ /* setup change signals */ |
117 |
+@@ -541,7 +541,7 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
118 |
+ g_auto (GValue) item = G_VALUE_INIT; |
119 |
+ g_autoptr (WpSpaPod) pod = NULL; |
120 |
+ gfloat float_value = 0.0f; |
121 |
+- gboolean boolean_value = TRUE; |
122 |
++ bool boolean_value = true; |
123 |
+ |
124 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
125 |
+ WP_PIPEWIRE_OBJECT (fixture->proxy_endpoint), "Props", NULL); |
126 |
+@@ -556,14 +556,14 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
127 |
+ "mute", "b", &boolean_value, |
128 |
+ NULL)); |
129 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.7f, 0.001); |
130 |
+- g_assert_cmpint (boolean_value, ==, FALSE); |
131 |
++ g_assert_cmpint (boolean_value, ==, false); |
132 |
+ } |
133 |
+ { |
134 |
+ g_autoptr (WpIterator) iterator = NULL; |
135 |
+ g_auto (GValue) item = G_VALUE_INIT; |
136 |
+ g_autoptr (WpSpaPod) pod = NULL; |
137 |
+ gfloat float_value = 0.0f; |
138 |
+- gboolean boolean_value = TRUE; |
139 |
++ bool boolean_value = true; |
140 |
+ |
141 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
142 |
+ WP_PIPEWIRE_OBJECT (fixture->impl_endpoint), "Props", NULL); |
143 |
+@@ -577,14 +577,14 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
144 |
+ "mute", "b", &boolean_value, |
145 |
+ NULL)); |
146 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.7f, 0.001); |
147 |
+- g_assert_cmpint (boolean_value, ==, FALSE); |
148 |
++ g_assert_cmpint (boolean_value, ==, false); |
149 |
+ } |
150 |
+ { |
151 |
+ g_autoptr (WpIterator) iterator = NULL; |
152 |
+ g_auto (GValue) item = G_VALUE_INIT; |
153 |
+ g_autoptr (WpSpaPod) pod = NULL; |
154 |
+ gfloat float_value = 0.0f; |
155 |
+- gboolean boolean_value = TRUE; |
156 |
++ bool boolean_value = true; |
157 |
+ |
158 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
159 |
+ WP_PIPEWIRE_OBJECT (endpoint->node), "Props", NULL); |
160 |
+@@ -598,7 +598,7 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
161 |
+ "mute", "b", &boolean_value, |
162 |
+ NULL)); |
163 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.7f, 0.001); |
164 |
+- g_assert_cmpint (boolean_value, ==, FALSE); |
165 |
++ g_assert_cmpint (boolean_value, ==, false); |
166 |
+ } |
167 |
+ |
168 |
+ /* change control on the impl */ |
169 |
+@@ -618,7 +618,7 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
170 |
+ g_auto (GValue) item = G_VALUE_INIT; |
171 |
+ g_autoptr (WpSpaPod) pod = NULL; |
172 |
+ gfloat float_value = 0.0f; |
173 |
+- gboolean boolean_value = TRUE; |
174 |
++ bool boolean_value = true; |
175 |
+ |
176 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
177 |
+ WP_PIPEWIRE_OBJECT (fixture->proxy_endpoint), "Props", NULL); |
178 |
+@@ -633,14 +633,14 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
179 |
+ "mute", "b", &boolean_value, |
180 |
+ NULL)); |
181 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.7f, 0.001); |
182 |
+- g_assert_cmpint (boolean_value, ==, TRUE); |
183 |
++ g_assert_cmpint (boolean_value, ==, true); |
184 |
+ } |
185 |
+ { |
186 |
+ g_autoptr (WpIterator) iterator = NULL; |
187 |
+ g_auto (GValue) item = G_VALUE_INIT; |
188 |
+ g_autoptr (WpSpaPod) pod = NULL; |
189 |
+ gfloat float_value = 0.0f; |
190 |
+- gboolean boolean_value = TRUE; |
191 |
++ bool boolean_value = true; |
192 |
+ |
193 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
194 |
+ WP_PIPEWIRE_OBJECT (fixture->impl_endpoint), "Props", NULL); |
195 |
+@@ -654,14 +654,14 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
196 |
+ "mute", "b", &boolean_value, |
197 |
+ NULL)); |
198 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.7f, 0.001); |
199 |
+- g_assert_cmpint (boolean_value, ==, TRUE); |
200 |
++ g_assert_cmpint (boolean_value, ==, true); |
201 |
+ } |
202 |
+ { |
203 |
+ g_autoptr (WpIterator) iterator = NULL; |
204 |
+ g_auto (GValue) item = G_VALUE_INIT; |
205 |
+ g_autoptr (WpSpaPod) pod = NULL; |
206 |
+ gfloat float_value = 0.0f; |
207 |
+- gboolean boolean_value = TRUE; |
208 |
++ bool boolean_value = true; |
209 |
+ |
210 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
211 |
+ WP_PIPEWIRE_OBJECT (endpoint->node), "Props", NULL); |
212 |
+@@ -675,7 +675,7 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
213 |
+ "mute", "b", &boolean_value, |
214 |
+ NULL)); |
215 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.7f, 0.001); |
216 |
+- g_assert_cmpint (boolean_value, ==, TRUE); |
217 |
++ g_assert_cmpint (boolean_value, ==, true); |
218 |
+ } |
219 |
+ |
220 |
+ /* change control on the node */ |
221 |
+@@ -695,7 +695,7 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
222 |
+ g_auto (GValue) item = G_VALUE_INIT; |
223 |
+ g_autoptr (WpSpaPod) pod = NULL; |
224 |
+ gfloat float_value = 0.0f; |
225 |
+- gboolean boolean_value = TRUE; |
226 |
++ bool boolean_value = true; |
227 |
+ |
228 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
229 |
+ WP_PIPEWIRE_OBJECT (fixture->proxy_endpoint), "Props", NULL); |
230 |
+@@ -709,14 +709,14 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
231 |
+ "mute", "b", &boolean_value, |
232 |
+ NULL)); |
233 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.2f, 0.001); |
234 |
+- g_assert_cmpint (boolean_value, ==, TRUE); |
235 |
++ g_assert_cmpint (boolean_value, ==, true); |
236 |
+ } |
237 |
+ { |
238 |
+ g_autoptr (WpIterator) iterator = NULL; |
239 |
+ g_auto (GValue) item = G_VALUE_INIT; |
240 |
+ g_autoptr (WpSpaPod) pod = NULL; |
241 |
+ gfloat float_value = 0.0f; |
242 |
+- gboolean boolean_value = TRUE; |
243 |
++ bool boolean_value = true; |
244 |
+ |
245 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
246 |
+ WP_PIPEWIRE_OBJECT (fixture->impl_endpoint), "Props", NULL); |
247 |
+@@ -730,14 +730,14 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
248 |
+ "mute", "b", &boolean_value, |
249 |
+ NULL)); |
250 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.2f, 0.001); |
251 |
+- g_assert_cmpint (boolean_value, ==, TRUE); |
252 |
++ g_assert_cmpint (boolean_value, ==, true); |
253 |
+ } |
254 |
+ { |
255 |
+ g_autoptr (WpIterator) iterator = NULL; |
256 |
+ g_auto (GValue) item = G_VALUE_INIT; |
257 |
+ g_autoptr (WpSpaPod) pod = NULL; |
258 |
+ gfloat float_value = 0.0f; |
259 |
+- gboolean boolean_value = TRUE; |
260 |
++ bool boolean_value = true; |
261 |
+ |
262 |
+ iterator = wp_pipewire_object_enum_params_sync ( |
263 |
+ WP_PIPEWIRE_OBJECT (endpoint->node), "Props", NULL); |
264 |
+@@ -751,7 +751,7 @@ test_endpoint_with_props (TestEndpointFixture *fixture, gconstpointer data) |
265 |
+ "mute", "b", &boolean_value, |
266 |
+ NULL)); |
267 |
+ g_assert_cmpfloat_with_epsilon (float_value, 0.2f, 0.001); |
268 |
+- g_assert_cmpint (boolean_value, ==, TRUE); |
269 |
++ g_assert_cmpint (boolean_value, ==, true); |
270 |
+ } |
271 |
+ |
272 |
+ /* destroy impl endpoint */ |
273 |
|
274 |
diff --git a/media-video/wireplumber/wireplumber-9999.ebuild b/media-video/wireplumber/wireplumber-0.4.6.ebuild |
275 |
similarity index 95% |
276 |
copy from media-video/wireplumber/wireplumber-9999.ebuild |
277 |
copy to media-video/wireplumber/wireplumber-0.4.6.ebuild |
278 |
index 2371a95d9c68..92ffe0cec0a2 100644 |
279 |
--- a/media-video/wireplumber/wireplumber-9999.ebuild |
280 |
+++ b/media-video/wireplumber/wireplumber-0.4.6.ebuild |
281 |
@@ -13,7 +13,7 @@ if [[ ${PV} == 9999 ]]; then |
282 |
inherit git-r3 |
283 |
else |
284 |
SRC_URI="https://gitlab.freedesktop.org/pipewire/${PN}/-/archive/${PV}/${P}.tar.gz" |
285 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
286 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
287 |
fi |
288 |
|
289 |
DESCRIPTION="Replacement for pipewire-media-session" |
290 |
@@ -54,6 +54,10 @@ RDEPEND="${DEPEND}" |
291 |
|
292 |
DOCS=( {NEWS,README}.rst ) |
293 |
|
294 |
+PATCHES=( |
295 |
+ "${FILESDIR}"/${P}-endianness-fixes.patch |
296 |
+) |
297 |
+ |
298 |
src_configure() { |
299 |
local emesonargs=( |
300 |
-Ddoc=disabled # Ebuild not wired up yet (Sphinx, Doxygen?) |
301 |
|
302 |
diff --git a/media-video/wireplumber/wireplumber-9999.ebuild b/media-video/wireplumber/wireplumber-9999.ebuild |
303 |
index 2371a95d9c68..2e6c068b1ee9 100644 |
304 |
--- a/media-video/wireplumber/wireplumber-9999.ebuild |
305 |
+++ b/media-video/wireplumber/wireplumber-9999.ebuild |
306 |
@@ -13,7 +13,7 @@ if [[ ${PV} == 9999 ]]; then |
307 |
inherit git-r3 |
308 |
else |
309 |
SRC_URI="https://gitlab.freedesktop.org/pipewire/${PN}/-/archive/${PV}/${P}.tar.gz" |
310 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
311 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
312 |
fi |
313 |
|
314 |
DESCRIPTION="Replacement for pipewire-media-session" |