public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: Fix error with llwm < 21: invalid application of 'sizeof' to an incomplete type 'gfx::Transform'
@ 2026-08-07 16:08 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:08 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : ada551e1a5accee5d311b2293bb9046c5b977468
Author : Than Ngo <than@redhat.com>
Date   : 2026-02-13T21:08:45+01:00
Stats  : +29/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/ada551e1a5accee5d311b2293bb9046c5b977468?branch=epel9-next

Log:
Fix error with llwm < 21: invalid application of 'sizeof' to an incomplete type 'gfx::Transform'

---
diff --git a/chromium-145-static_assert.patch b/chromium-145-static_assert.patch
new file mode 100644
index 0000000..8ed0ebd
--- /dev/null
+++ b/chromium-145-static_assert.patch
@@ -0,0 +1,20 @@
+diff -up chromium-145.0.7632.45/third_party/blink/renderer/modules/xr/xr_rigid_transform.h.me chromium-145.0.7632.45/third_party/blink/renderer/modules/xr/xr_rigid_transform.h
+--- chromium-145.0.7632.45/third_party/blink/renderer/modules/xr/xr_rigid_transform.h.me	2026-02-13 13:32:04.162492668 +0100
++++ chromium-145.0.7632.45/third_party/blink/renderer/modules/xr/xr_rigid_transform.h	2026-02-13 13:33:03.467242224 +0100
+@@ -7,15 +7,12 @@
+ 
+ #include <memory>
+ 
++#include "ui/gfx/geometry/transform.h"
+ #include "third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h"
+ #include "third_party/blink/renderer/core/typed_arrays/dom_typed_array.h"
+ #include "third_party/blink/renderer/modules/modules_export.h"
+ #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
+ 
+-namespace gfx {
+-class Transform;
+-}
+-
+ namespace blink {
+ 
+ class DOMPointInit;

diff --git a/chromium.spec b/chromium.spec
index cc3d656..980a64f 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -1,5 +1,7 @@
 # macro for el10 minor version
+%if 0%{?rhel} == 10
 %define rhel_minor_version %(grep -oP '10\.[0-9.]*' /etc/redhat-release |  cut -d '.' -f2)
+%endif
 
 %define _lto_cflags %{nil}
 %global _default_patch_fuzz 2
@@ -348,6 +350,9 @@ Patch150: chromium-124-qt6.patch
 # Disable rust nightly features
 Patch301: chromium-144-rust-libadler2.patch
 
+# Fix error with llwm < 21: invalid application of 'sizeof' to an incomplete type 'gfx::Transform'
+Patch302: chromium-145-static_assert.patch
+
 # disable memory tagging (epel8 on aarch64) due to new feature IFUNC-Resolver
 # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found
 Patch305: chromium-124-el8-arm64-memory_tagging.patch
@@ -1091,6 +1096,10 @@ Qt6 UI for chromium.
 %patch -P150 -p1 -b .qt6
 
 %patch -P301 -p1 -b .rust-libadler2
+# alte llvm version < 21 on f42/el9/epel10.1
+%if (0%{?fedora} && 0%{?fedora} < 43) || (0%{?rhel} && 0%{?rhel} < 10) || (0%{?rhel} == 10 && 0%{?rhel_minor_version} < 2)
+%patch -P302 -p1 -b .static_assert
+%endif
 
 %if 0%{?rhel} == 8
 %ifarch aarch64

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

only message in thread, other threads:[~2026-08-07 16:08 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:08 [rpms/chromium] epel9-next: Fix error with llwm < 21: invalid application of 'sizeof' to an incomplete type 'gfx::Transform' Than Ngo

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