public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9: Fix FTBFS with old pipewire on fedora < 44 and epel
@ 2026-09-16 14:52 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-09-16 14:52 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9
Commit : cfaddc492b6cd9784707f181af16d960e1cfa29d
Author : Than Ngo <than@redhat.com>
Date   : 2026-09-16T16:09:44+02:00
Stats  : +48/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/cfaddc492b6cd9784707f181af16d960e1cfa29d?branch=epel9

Log:
Fix FTBFS with old pipewire on fedora < 44 and epel

---
diff --git a/chromium-153-ftbfs-pipewire-api.patch b/chromium-153-ftbfs-pipewire-api.patch
new file mode 100644
index 0000000..385e053
--- /dev/null
+++ b/chromium-153-ftbfs-pipewire-api.patch
@@ -0,0 +1,44 @@
+Fix FTBFS with old pipewire
+
+ error: use of undeclared identifier 'spa_pod_type_size'
+
+diff -up chromium-153.0.8010.36/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.me chromium-153.0.8010.36/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc
+--- chromium-153.0.8010.36/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.me	2026-09-16 08:52:36.959680086 +0200
++++ chromium-153.0.8010.36/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc	2026-09-16 14:57:45.237435143 +0200
+@@ -46,9 +46,36 @@
+ namespace webrtc {
+ namespace videocapturemodule {
+ 
++#if defined(PIPEWIRE_VERSION_MAJOR) && \
++    (PIPEWIRE_VERSION_MAJOR < 1 || \
++     (PIPEWIRE_VERSION_MAJOR == 1 && PIPEWIRE_VERSION_MINOR < 5))
++// spa_pod_type_size() is not available in the SPA headers shipped with
++// older PipeWire versions. These are the only POD types for which this
++// file performs size validation.
++static uint32_t SpaPodTypeSize(uint32_t type) {
++  switch (type) {
++    case SPA_TYPE_Fraction:
++      return sizeof(struct spa_fraction);
++    case SPA_TYPE_Rectangle:
++      return sizeof(struct spa_rectangle);
++    case SPA_TYPE_Id:
++      return sizeof(uint32_t);
++    default:
++      RTC_DCHECK_NOTREACHED();
++      return 0;
++  }
++}
++#endif
++
+ // Checks that the pod matches the expected type and is large enough to hold it.
+ static bool SpaValueIsType(const spa_pod* val, uint32_t type) {
++#if defined(PIPEWIRE_VERSION_MAJOR) && \
++    (PIPEWIRE_VERSION_MAJOR < 1 || \
++     (PIPEWIRE_VERSION_MAJOR == 1 && PIPEWIRE_VERSION_MINOR < 5))
++  return val->type == type && val->size >= SpaPodTypeSize(type);
++#else
+   return val->type == type && val->size >= spa_pod_type_size(type);
++#endif
+ }
+ 
+ VideoType PipeWireRawFormatToVideoType(uint32_t id) {

diff --git a/chromium.spec b/chromium.spec
index 6fef9b3..2f993c2 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -300,6 +300,9 @@ Patch23: chromium-152-build-error-libpng_for_testonly.patch
 # patch from Melvin - melvin@pixilab.se
 Patch24: glibc-2.42-baud-rate-fix.patch
 
+# fix FTBFS with old pipewire on fedora < 44 and epel
+Patch25: chromium-153-ftbfs-pipewire-api.patch
+
 # disable enterprise_companion_integration_tests due to Unresolved dependencies
 Patch31: chromium-145-disable-enterprise_companion_integration_tests.patch
 
@@ -1077,6 +1080,7 @@ Qt6 UI for chromium.
 %if 0%{?fedora} || 0%{?rhel} && 0%{?rhel} > 10
 %patch -P24 -p1 -b .glibc-2.42-baud-rate-fix
 %endif
+%patch -P25 -p1 -b .ftbfs-pipewire-api
 %patch -P31 -p1 -b .disable-enterprise_companion_integration_tests
 
 %if ! %{bundlebrotli}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-16 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 14:52 [rpms/chromium] epel9: Fix FTBFS with old pipewire on fedora < 44 and epel Than Ngo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox