commit:     66962a5cd0dfa72bb147b189ae9e687ebdca1f15
Author:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 16 14:29:37 2025 +0000
Commit:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
CommitDate: Tue Dec 16 14:47:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66962a5c

media-video/obs-studio: re-remove '-Werror' and fix 9999 for qt-6.10

While obs-studio itself is built with 'disable-werror' these days,
'-Werror' in the the 'libobs.pc.in' causes other projects potentially
unwanted build issues [1].

Also add the qt-6.10 patch to the git build, since the fix
is still not merged upstream after half a year [2][3], and qt-6.10
has been out in the wilds for a while now.

1. https://bugs.gentoo.org/966311
2. https://github.com/obsproject/obs-studio/pull/12321
3. https://github.com/obsproject/obs-studio/pull/12328

Bug: https://bugs.gentoo.org/966311
Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>

 media-video/obs-studio/obs-studio-9999.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/media-video/obs-studio/obs-studio-9999.ebuild 
b/media-video/obs-studio/obs-studio-9999.ebuild
index a97ee483c27a..130b77f9aa16 100644
--- a/media-video/obs-studio/obs-studio-9999.ebuild
+++ b/media-video/obs-studio/obs-studio-9999.ebuild
@@ -160,6 +160,11 @@ QA_PREBUILT="
        usr/lib*/obs-plugins/swiftshader/libGLESv2.so
 "
 
+PATCHES=(
+       # https://bugs.gentoo.org/966051
+       "${FILESDIR}/${PN}-32.0.2-fix-build-with-qt-6.10.patch"
+)
+
 pkg_setup() {
        use lua && lua-single_pkg_setup
        use python && python-single-r1_pkg_setup
@@ -180,7 +185,10 @@ src_unpack() {
 }
 
 src_prepare() {
-       default
+       # Un-comment after all patches are gone.
+       #default
+
+       sed -i 's/-Werror //' libobs/cmake/linux/libobs.pc.in || die
 
        # -Werror=lto-type-mismatch
        # https://bugs.gentoo.org/867250

Reply via email to