add more patches for build issues

chromium-141-csss_style_sheet.patch
chromium-141-use_libcxx_modules.patch
modify chromium-141-no_cxx_modules.patch
This commit is contained in:
Ruediger Oertel
2025-10-02 18:01:52 +02:00
parent 55a878f27d
commit 5603f789fb
5 changed files with 50 additions and 13 deletions

View File

@@ -0,0 +1,16 @@
Fix ftbfs
v8/include/cppgc/visitor.h:440:19: error: invalid application of 'sizeof' to an incomplete type 'blink::CSSStyleSheet'
440 | static_assert(sizeof(T), "Pointee type must be fully defined.");
diff -up chromium-141.0.7390.37/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py.ftbfs-csss_style_sheet chromium-141.0.7390.37/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py
--- chromium-141.0.7390.37/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py.ftbfs-csss_style_sheet 2025-09-23 22:21:14.000000000 +0200
+++ chromium-141.0.7390.37/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py 2025-10-01 17:55:51.303926035 +0200
@@ -433,6 +433,7 @@ def generate_observable_array(observable
header_node.accumulator.add_include_headers([
component_export_header(api_component, for_testing),
"third_party/blink/renderer/bindings/core/v8/idl_types.h",
+ "third_party/blink/renderer/core/css/css_style_sheet.h",
"third_party/blink/renderer/platform/bindings/observable_array.h",
])
source_node.accumulator.add_include_headers([

View File

@@ -1,14 +1,3 @@
--- chromium-141.0.7390.37/build/config/compiler/BUILD.gn 2025/10/01 14:05:36 1.1
+++ chromium-141.0.7390.37/build/config/compiler/BUILD.gn 2025/10/01 14:24:09
@@ -1870,7 +1870,7 @@
cflags_cc = [
"-fmodules",
clang_arg_prefix + "-fno-implicit-module-maps",
- "-fno-implicit-modules",
+ # "-fno-implicit-modules",
"-Xclang",
"-fmodules-local-submodule-visibility", # required for builtins
--- chromium-141.0.7390.37/third_party/pthreadpool/chromium/jobs.cc 2025/10/02 13:48:22 1.1
+++ chromium-141.0.7390.37/third_party/pthreadpool/chromium/jobs.cc 2025/10/02 13:50:01
@@ -22,9 +22,10 @@

View File

@@ -0,0 +1,28 @@
Fix FTBFS
../../build/modules/linux-x64/module.modulemap:11:12: error: header '../../linux/debian_bullseye_amd64-sysroot/usr/include/alloca.h' not found
11 | header "../../linux/debian_bullseye_amd64-sysroot/usr/include/alloca.h"
| ^
1 error generated
diff -up chromium-141.0.7390.37/build/config/BUILDCONFIG.gn.me chromium-141.0.7390.37/build/config/BUILDCONFIG.gn
--- chromium-141.0.7390.37/build/config/BUILDCONFIG.gn.me 2025-10-01 17:39:47.242174153 +0200
+++ chromium-141.0.7390.37/build/config/BUILDCONFIG.gn 2025-10-01 17:49:54.736578295 +0200
@@ -557,6 +557,8 @@ foreach(_target_type,
]) {
template(_target_type) {
target(_target_type, target_name) {
+ use_libcxx_modules = false
+
forward_variables_from(invoker, "*", TESTONLY_AND_VISIBILITY)
forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
if (!defined(inputs)) {
@@ -660,6 +662,8 @@ foreach(_target_type,
# TODO(crbug.com/326584510): Reclient doesn't respect this variable, see
# rbe_bug_326584510_missing_inputs in //build/config/clang/clang.gni
_uses_cflags = false
+ use_libcxx_modules = false
+
if (defined(sources)) {
foreach(f, sources) {
if (string_replace(f + ".END", ".cc.END", "") != f + ".END" ||

View File

@@ -18,8 +18,10 @@ Wed Oct 1 18:16:47 CEST 2025 - ro@suse.de
* Various fixes from internal audits, fuzzing and other initiatives
- added patches:
chromium-141-csss_style_sheet.patch (from fedora)
chromium-141-use_libcxx_modules.patch (from fedora)
chromium-141-no_cxx_modules.patch
(no -fno-implicit-modules yet)
(one more fallout from clang modules)
- modified patches: (context)
ppc-fedora-0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch
ppc-fedora-Sandbox-linux-services-credentials.cc-PPC.patch

View File

@@ -168,7 +168,9 @@ Patch375: chromium-131-fix-qt-ui.pach
Patch377: chromium-139-deterministic.patch
Patch378: chromium-139-pdfium-openjpeg-CVE-2025-54874.patch
Patch379: chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch
Patch380: chromium-141-no_cxx_modules.patch
Patch380: chromium-141-use_libcxx_modules.patch
Patch381: chromium-141-csss_style_sheet.patch
Patch382: chromium-141-no_cxx_modules.patch
# conditionally applied patches ppc64le only
Patch401: ppc-fedora-add-ppc64-architecture-string.patch
Patch402: ppc-fedora-0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch