dev-qt/qtwebengine: backport webrtc build fix with pipewire-1.4

Same issue that chromium ran into wrt bug #951816

Bug: https://bugs.gentoo.org/951816
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-03-31 10:58:45 -04:00
parent 9bf804feae
commit deeb17dfe8
4 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
https://bugs.gentoo.org/951816
https://issues.webrtc.org/issues/401732633
https://webrtc-review.googlesource.com/c/src/+/380500
--- a/src/3rdparty/chromium/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc
+++ b/src/3rdparty/chromium/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc
@@ -61,5 +61,5 @@
};
- pw_node_add_listener(proxy_, &node_listener_, &node_events, this);
+ pw_node_add_listener(reinterpret_cast<pw_node*>(proxy_), &node_listener_, &node_events, this);
}
@@ -95,5 +95,5 @@
if (id == SPA_PARAM_EnumFormat &&
info->params[i].flags & SPA_PARAM_INFO_READ) {
- pw_node_enum_params(that->proxy_, 0, id, 0, UINT32_MAX, nullptr);
+ pw_node_enum_params(reinterpret_cast<pw_node*>(that->proxy_), 0, id, 0, UINT32_MAX, nullptr);
break;
}

View File

@@ -113,6 +113,7 @@ PATCHES+=(
"${FILESDIR}"/${PN}-6.8.2-cstdint.patch
"${FILESDIR}"/${PN}-6.8.2-glibc2.41.patch
"${FILESDIR}"/${PN}-6.8.3-clang20.patch
"${FILESDIR}"/${PN}-6.8.3-pipewire1.4.patch
)
python_check_deps() {

View File

@@ -107,6 +107,7 @@ PATCHES=( "${WORKDIR}"/patches/${PN} )
PATCHES+=(
# add extras as needed here, may merge in set if carries across versions
"${FILESDIR}"/${PN}-6.8.2-glibc2.41.patch
"${FILESDIR}"/${PN}-6.8.3-pipewire1.4.patch
)
python_check_deps() {

View File

@@ -107,6 +107,7 @@ PATCHES=( "${WORKDIR}"/patches/${PN} )
PATCHES+=(
# add extras as needed here, may merge in set if carries across versions
"${FILESDIR}"/${PN}-6.8.2-glibc2.41.patch
"${FILESDIR}"/${PN}-6.8.3-pipewire1.4.patch
)
python_check_deps() {