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@gentoo.org>
This commit is contained in:
Jimi Huotari
2025-12-16 16:29:37 +02:00
parent 464f2caa9c
commit 66962a5cd0

View File

@@ -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