dev-qt/qtmultimedia: fix build w/ USE="gstreamer pulseaudio -vulkan"

QVersionNumber is only used with USE="gstreamer pulseaudio", but the
required header is not included for it. Seems works with USE="vulkan"
given Qt vulkan headers just happen to include it.

Furthermore only fails with clang, albeit haven't looked for what is
being treated differently with it (perhaps a version check somewhere
includes the header with gcc).

Closes: https://bugs.gentoo.org/947606
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-01-06 06:36:29 -05:00
parent d290e52416
commit 7750ac667d
5 changed files with 16 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
https://bugs.gentoo.org/947606
TODO: needs upstreaming
--- a/src/plugins/multimedia/gstreamer/common/qgstreameraudiooutput.cpp
+++ b/src/plugins/multimedia/gstreamer/common/qgstreameraudiooutput.cpp
@@ -13,2 +13,3 @@
#if QT_CONFIG(pulseaudio)
+# include <QVersionNumber>
# include <pulse/version.h>

View File

@@ -1,4 +1,4 @@
# Copyright 2021-2024 Gentoo Authors
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -94,6 +94,7 @@ CMAKE_SKIP_TESTS=(
PATCHES=(
"${FILESDIR}"/${PN}-6.7.3-eigen-ppc-no-vsx.patch
"${FILESDIR}"/${PN}-6.8.1-qversionnumber.patch
)
src_configure() {

View File

@@ -1,4 +1,4 @@
# Copyright 2021-2024 Gentoo Authors
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -94,6 +94,7 @@ CMAKE_SKIP_TESTS=(
PATCHES=(
"${FILESDIR}"/${PN}-6.7.3-eigen-ppc-no-vsx.patch
"${FILESDIR}"/${PN}-6.8.1-qversionnumber.patch
)
src_configure() {

View File

@@ -1,4 +1,4 @@
# Copyright 2021-2024 Gentoo Authors
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -94,6 +94,7 @@ CMAKE_SKIP_TESTS=(
PATCHES=(
"${FILESDIR}"/${PN}-6.7.3-eigen-ppc-no-vsx.patch
"${FILESDIR}"/${PN}-6.8.1-qversionnumber.patch
)
src_configure() {

View File

@@ -1,4 +1,4 @@
# Copyright 2021-2024 Gentoo Authors
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -94,6 +94,7 @@ CMAKE_SKIP_TESTS=(
PATCHES=(
"${FILESDIR}"/${PN}-6.7.3-eigen-ppc-no-vsx.patch
"${FILESDIR}"/${PN}-6.8.1-qversionnumber.patch
)
src_configure() {