public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: - Fix FTBFS on aarch64 - error: use of undeclared identifier 'kV4L2FlatStatefulVideoDecoder'
@ 2026-08-07 16:05 Than Ngo
0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/chromium
Branch : epel9-next
Commit : 7e71540a5e72cf582a8a09f6ae393340b10213e1
Author : Than Ngo <than@redhat.com>
Date : 2023-07-20T22:20:36+02:00
Stats : +54/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/chromium/c/7e71540a5e72cf582a8a09f6ae393340b10213e1?branch=epel9-next
Log:
- Fix FTBFS on aarch64 - error: use of undeclared identifier 'kV4L2FlatStatefulVideoDecoder'
- Fix FTBFS on aarch64 - error: no member named 'Contains' in namespace 'base'
---
diff --git a/chromium-115-do_not_restrict_new_V4L2_decoders.v4l2.pach b/chromium-115-do_not_restrict_new_V4L2_decoders.v4l2.pach
new file mode 100644
index 0000000..416e973
--- /dev/null
+++ b/chromium-115-do_not_restrict_new_V4L2_decoders.v4l2.pach
@@ -0,0 +1,30 @@
+diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
+index bb0122ffd72d4..9262cc744582f 100644
+--- a/media/base/media_switches.cc
++++ b/media/base/media_switches.cc
+@@ -807,7 +807,7 @@ BASE_FEATURE(kVaapiVp9kSVCHWEncoding,
+ "VaapiVp9kSVCHWEncoding",
+ base::FEATURE_ENABLED_BY_DEFAULT);
+ #endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS)
+-#if defined(ARCH_CPU_ARM_FAMILY) && BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+ // Enables the new V4L2StatefulVideoDecoder instead of V4L2VideoDecoder.
+ BASE_FEATURE(kV4L2FlatStatelessVideoDecoder,
+ "V4L2FlatStatelessVideoDecoder",
+diff --git a/media/base/media_switches.h b/media/base/media_switches.h
+index 97d9602eee49e..aacfac69fae20 100644
+--- a/media/base/media_switches.h
++++ b/media/base/media_switches.h
+@@ -318,10 +318,10 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiH264TemporalLayerHWEncoding);
+ MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVp8TemporalLayerHWEncoding);
+ MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVp9kSVCHWEncoding);
+ #endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS)
+-#if defined(ARCH_CPU_ARM_FAMILY) && BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+ MEDIA_EXPORT BASE_DECLARE_FEATURE(kV4L2FlatStatelessVideoDecoder);
+ MEDIA_EXPORT BASE_DECLARE_FEATURE(kV4L2FlatStatefulVideoDecoder);
+-#endif // defined(ARCH_CPU_ARM_FAMILY) && BUILDFLAG(IS_CHROMEOS)
++#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+ MEDIA_EXPORT BASE_DECLARE_FEATURE(kVideoBlitColorAccuracy);
+ #if BUILDFLAG(IS_APPLE)
+ MEDIA_EXPORT BASE_DECLARE_FEATURE(kVideoToolboxVideoDecoder);
diff --git a/chromium-115-include_contains_h_header_for_V4L2StatefulVideoDecoder.patch b/chromium-115-include_contains_h_header_for_V4L2StatefulVideoDecoder.patch
new file mode 100644
index 0000000..93fbdb9
--- /dev/null
+++ b/chromium-115-include_contains_h_header_for_V4L2StatefulVideoDecoder.patch
@@ -0,0 +1,12 @@
+diff --git a/media/gpu/v4l2/v4l2_stateful_video_decoder.cc b/media/gpu/v4l2/v4l2_stateful_video_decoder.cc
+index c84dedb7d1c1f..ca8cd566d2018 100644
+--- a/media/gpu/v4l2/v4l2_stateful_video_decoder.cc
++++ b/media/gpu/v4l2/v4l2_stateful_video_decoder.cc
+@@ -9,6 +9,7 @@
+ #include <sys/eventfd.h>
+ #include <sys/ioctl.h>
+
++#include "base/containers/contains.h"
+ #include "base/files/file_util.h"
+ #include "base/functional/callback_helpers.h"
+ #include "base/memory/ptr_util.h"
diff --git a/chromium.spec b/chromium.spec
index d1e3bd8..5796f36 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -370,8 +370,18 @@ Patch306: chromium-115-emplace_back_on_vector-c++20.patch
# revert for epel8 on aarch64 due to new feature IFUNC-Resolver not supported
# in old glibc < 2.30
+# error: fatal error: 'sys/ifunc.h' file not found
Patch307: chromium-115-revert-ifunc.patch
+# upstream, do not restrict new V4L2 decoders to ARM or ChromeOS
+# error: use of undeclared identifier 'kV4L2FlatStatefulVideoDecoder'
+# error: use of undeclared identifier 'kV4L2FlatStatelessVideoDecoder'
+Patch308: chromium-115-do_not_restrict_new_V4L2_decoders.v4l2.pach
+
+# upstream, include contains.h header for V4L2StatefulVideoDecoder
+# error: no member named 'Contains' in namespace 'base'
+Patch309: chromium-115-include_contains_h_header_for_V4L2StatefulVideoDecoder.patch
+
# Load default cursor theme if theme name is empty
Patch310: chromium-115-wayland-load_default_cursor_theme.patch
@@ -986,6 +996,8 @@ udev.
%patch -P307 -p1 -R -b .ifunc
%endif
%endif
+%patch -P308 -p1 -b .do_not_restrict_new_V4L2_decoders.v4l2
+%patch -P309 -p1 -b .include_contains_h_header_for_V4L2StatefulVideoDecoder
%patch -P310 -p1 -b .wayland_load_default_cursor_theme
%patch -P321 -p1 -b .handle_scale_factor_changes
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-07 16:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:05 [rpms/chromium] epel9-next: - Fix FTBFS on aarch64 - error: use of undeclared identifier 'kV4L2FlatStatefulVideoDecoder' Than Ngo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox