diff options
author | Sam James <sam@gentoo.org> | 2022-07-10 21:22:49 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-10 21:23:45 +0100 |
commit | 0de895e872b03a682e49c886807e247e1658f62f (patch) | |
tree | aa664b5c954773f565eb65080cb81815b20b5e76 /media-video/pipewire/files | |
parent | app-shells/gentoo-zsh-completions: drop 20200914 (diff) | |
download | gentoo-0de895e872b03a682e49c886807e247e1658f62f.tar.gz gentoo-0de895e872b03a682e49c886807e247e1658f62f.tar.bz2 gentoo-0de895e872b03a682e49c886807e247e1658f62f.zip |
media-video/pipewire: fix build w/ -Ofast & FORTIFY_SOURCE
Not strictly limited to -Ofast paired w/ >= FORTIFY_SOURCE=2, can
happen with other optimisation levels, just that -Ofast encourages
it to do the inlining which then blows up.
Revbump b/c of the obvious possible runtime nature of the bug
(given the patch may change behaviour).
Closes: https://bugs.gentoo.org/857201
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video/pipewire/files')
-rw-r--r-- | media-video/pipewire/files/pipewire-0.3.54-fortify-source.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/media-video/pipewire/files/pipewire-0.3.54-fortify-source.patch b/media-video/pipewire/files/pipewire-0.3.54-fortify-source.patch new file mode 100644 index 000000000000..0c93f105375a --- /dev/null +++ b/media-video/pipewire/files/pipewire-0.3.54-fortify-source.patch @@ -0,0 +1,33 @@ +https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/240d21282271dce7d2eeff03185a61ffca0c12c5 +https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2526 +https://bugs.gentoo.org/857201 + +From 240d21282271dce7d2eeff03185a61ffca0c12c5 Mon Sep 17 00:00:00 2001 +From: Pauli Virtanen <pav@iki.fi> +Date: Sun, 10 Jul 2022 16:05:27 +0300 +Subject: [PATCH] pipewire-v4l2: disable _FORTIFY_SOURCE when defining override + functions + +_FORTIFY_SOURCE defines always_inline versions of open etc. functions, +which conflict with our exported override versions. Disable it for the +file that defines the override functions. +--- a/pipewire-v4l2/src/v4l2-func.c ++++ b/pipewire-v4l2/src/v4l2-func.c +@@ -22,6 +22,16 @@ + * DEALINGS IN THE SOFTWARE. + */ + ++ ++/* ++ * We need to export open* etc., but _FORTIFY_SOURCE defines conflicting ++ * always_inline versions. Disable _FORTIFY_SOURCE for this file, so we ++ * can define our overrides. ++ */ ++#ifdef _FORTIFY_SOURCE ++#undef _FORTIFY_SOURCE ++#endif ++ + #include <stdio.h> + #include <errno.h> + #include <fcntl.h> +GitLab |