public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Than Ngo <than@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/cef] rawhide: Fix FTBFS with old system ffmpeg-5.x on el9
Date: Fri, 04 Sep 2026 17:42:54 GMT [thread overview]
Message-ID: <178854377459.1.17984079378735718092.rpms-cef-5fceee2c4fc7@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cef
Branch : rawhide
Commit : 5fceee2c4fc713e41163b585e090e775e81cfd16
Author : Than Ngo <than@redhat.com>
Date : 2026-09-04T17:42:13+00:00
Stats : +31/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/cef/c/5fceee2c4fc713e41163b585e090e775e81cfd16?branch=rawhide
Log:
Fix FTBFS with old system ffmpeg-5.x on el9
error: use of undeclared identifier 'AV_SPHERICAL_HALF_EQUIRECTANGULAR'
---
diff --git a/cef.spec b/cef.spec
index f2eee7c..d2feb87 100644
--- a/cef.spec
+++ b/cef.spec
@@ -329,6 +329,7 @@ Patch131: chromium-107-proprietary-codecs.patch
Patch132: chromium-118-sigtrap_system_ffmpeg.patch
# need for old ffmpeg 6.0/5.x on epel9 and fedora < 40
Patch133: chromium-151-el9-ffmpeg-5.1.x.patch
+Patch134: chromium-151-el9-build-error-system-ffmpeg5.patch
# revert, it causes build error: use of undeclared identifier 'AVFMT_FLAG_NOH264PARSE'
Patch135: chromium-133-disable-H.264-video-parser-during-demuxing.patch
# Workaround for youtube stop working
@@ -1081,6 +1082,7 @@ mv %{_builddir}/cef-%{cef_commit} ./cef
%patch -P130 -p1 -b .el9-ffmpeg-build-error
%patch -P133 -p1 -b .el9-ffmpeg-5.1.x
%endif
+%patch -P134 -p1 -b .el9-ffmpeg-5.1.x
%patch -P131 -p1 -b .prop-codecs
%patch -P132 -p1 -b .sigtrap_system_ffmpeg
%patch -P135 -p1 -b .disable-H.264-video-parser-during-demuxing
diff --git a/chromium-151-el9-build-error-system-ffmpeg5.patch b/chromium-151-el9-build-error-system-ffmpeg5.patch
new file mode 100644
index 0000000..4d07064
--- /dev/null
+++ b/chromium-151-el9-build-error-system-ffmpeg5.patch
@@ -0,0 +1,29 @@
+Fix FTBFS with ffmpeg-5.x
+../../media/ffmpeg/ffmpeg_common.cc:911:16: error: use of undeclared identifier 'AV_SPHERICAL_HALF_EQUIRECTANGULAR'; did you mean 'AV_SPHERICAL_EQUIRECTANGULAR'?
+ 911 | case AV_SPHERICAL_HALF_EQUIRECTANGULAR:
+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ | AV_SPHERICAL_EQUIRECTANGULAR
+/usr/include/ffmpeg/libavutil/spherical.h:56:5: note: 'AV_SPHERICAL_EQUIRECTANGULAR' declared here
+ 56 | AV_SPHERICAL_EQUIRECTANGULAR,
+ | ^
+../../media/ffmpeg/ffmpeg_common.cc:911:16: error: duplicate case value 'AV_SPHERICAL_EQUIRECTANGULAR'
+ 911 | case AV_SPHERICAL_HALF_EQUIRECTANGULAR:
+ | ^
+../../media/ffmpeg/ffmpeg_common.cc:908:16: note: previous case defined here
+ 908 | case AV_SPHERICAL_EQUIRECTANGULAR:
+
+diff -up chromium-151.0.7922.71/media/ffmpeg/ffmpeg_common.cc.me chromium-151.0.7922.71/media/ffmpeg/ffmpeg_common.cc
+--- chromium-151.0.7922.71/media/ffmpeg/ffmpeg_common.cc.me 2026-08-01 07:16:39.987060192 -0400
++++ chromium-151.0.7922.71/media/ffmpeg/ffmpeg_common.cc 2026-08-01 07:25:18.201727436 -0400
+@@ -908,9 +908,11 @@ bool AVStreamToVideoDecoderConfig(const
+ case AV_SPHERICAL_EQUIRECTANGULAR:
+ spatial_format.projection_type = VideoProjectionType::kEquirect360;
+ break;
++ #ifdef AV_SPHERICAL_HALF_EQUIRECTANGULAR
+ case AV_SPHERICAL_HALF_EQUIRECTANGULAR:
+ spatial_format.projection_type = VideoProjectionType::kEquirect180;
+ break;
++ #endif
+ case AV_SPHERICAL_EQUIRECTANGULAR_TILE: {
+ const uint32_t kEquirect180Threshold = 0x30000000;
+ if (spherical->bound_left >= kEquirect180Threshold &&
reply other threads:[~2026-09-04 17:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178854377459.1.17984079378735718092.rpms-cef-5fceee2c4fc7@fedoraproject.org \
--to=than@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox