From 66962a5cd0dfa72bb147b189ae9e687ebdca1f15 Mon Sep 17 00:00:00 2001 From: Jimi Huotari Date: Tue, 16 Dec 2025 16:29:37 +0200 Subject: [PATCH] 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 --- 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 a97ee483c27aa..130b77f9aa166 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