summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-15 08:58:31 +0100
committerSam James <sam@gentoo.org>2022-04-15 08:58:52 +0100
commit8f1fed6f96c53251186f0f7fd8e2c2bc3a73ea9d (patch)
treee8b2744a212e3d68bff3b83dd8aca93867d40c01 /media-video
parentx11-libs/pango: Version bump to 1.50.7 (diff)
downloadgentoo-8f1fed6f96c53251186f0f7fd8e2c2bc3a73ea9d.tar.gz
gentoo-8f1fed6f96c53251186f0f7fd8e2c2bc3a73ea9d.tar.bz2
gentoo-8f1fed6f96c53251186f0f7fd8e2c2bc3a73ea9d.zip
media-video/pipewire: fix spa header
Closes: https://bugs.gentoo.org/838427 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/pipewire/files/pipewire-0.3.50-fix-spa-header.patch39
-rw-r--r--media-video/pipewire/pipewire-0.3.50-r1.ebuild (renamed from media-video/pipewire/pipewire-0.3.50.ebuild)1
2 files changed, 40 insertions, 0 deletions
diff --git a/media-video/pipewire/files/pipewire-0.3.50-fix-spa-header.patch b/media-video/pipewire/files/pipewire-0.3.50-fix-spa-header.patch
new file mode 100644
index 000000000000..5b9ad3cf2d7c
--- /dev/null
+++ b/media-video/pipewire/files/pipewire-0.3.50-fix-spa-header.patch
@@ -0,0 +1,39 @@
+https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/d3ea3142e1a4de206e616bc18f63a529e6b4986a.patch
+https://bugs.gentoo.org/838427
+
+From: psykose <alice@ayaya.dev>
+Date: Wed, 13 Apr 2022 21:57:49 +0000
+Subject: [PATCH] spa: fix c90 header include
+
+placing declarations after code is invalid under ISO c90
+
+Fixes !1211
+--- a/spa/include/spa/utils/string.h
++++ b/spa/include/spa/utils/string.h
+@@ -276,10 +276,11 @@ static inline int spa_scnprintf(char *buffer, size_t size, const char *format, .
+ static inline float spa_strtof(const char *str, char **endptr)
+ {
+ static locale_t locale = NULL;
++ locale_t prev;
+ float v;
+ if (SPA_UNLIKELY(locale == NULL))
+ locale = newlocale(LC_ALL_MASK, "C", NULL);
+- locale_t prev = uselocale(locale);
++ prev = uselocale(locale);
+ v = strtof(str, endptr);
+ uselocale(prev);
+ return v;
+@@ -319,10 +320,11 @@ static inline bool spa_atof(const char *str, float *val)
+ static inline double spa_strtod(const char *str, char **endptr)
+ {
+ static locale_t locale = NULL;
++ locale_t prev;
+ double v;
+ if (SPA_UNLIKELY(locale == NULL))
+ locale = newlocale(LC_ALL_MASK, "C", NULL);
+- locale_t prev = uselocale(locale);
++ prev = uselocale(locale);
+ v = strtod(str, endptr);
+ uselocale(prev);
+ return v;
+GitLab
diff --git a/media-video/pipewire/pipewire-0.3.50.ebuild b/media-video/pipewire/pipewire-0.3.50-r1.ebuild
index 6a066b48013e..486d6073c4d1 100644
--- a/media-video/pipewire/pipewire-0.3.50.ebuild
+++ b/media-video/pipewire/pipewire-0.3.50-r1.ebuild
@@ -124,6 +124,7 @@ DOCS=( {README,INSTALL}.md NEWS )
PATCHES=(
"${FILESDIR}"/${PN}-0.3.25-enable-failed-mlock-warning.patch
+ "${FILESDIR}"/${P}-fix-spa-header.patch
)
# limitsdfile related code taken from =sys-auth/realtime-base-0.1