diff --git a/srcpkgs/chromium/patches/chromium-146-sanitize-ignore-for-ubsan-feature.patch b/srcpkgs/chromium/patches/chromium-146-sanitize-ignore-for-ubsan-feature.patch deleted file mode 100644 index 6235a82fc6fdd6..00000000000000 --- a/srcpkgs/chromium/patches/chromium-146-sanitize-ignore-for-ubsan-feature.patch +++ /dev/null @@ -1,76 +0,0 @@ -From cf683912b378a906d398fead361315b5a34e5c9c Mon Sep 17 00:00:00 2001 -From: LN Liberda -Date: Tue, 17 Feb 2026 14:20:44 +0100 -Subject: [PATCH] Revert "Update fsanitizer=array-bounds config" - -Unknown argument as of clang 21.1.8. - -This reverts commit acb47d9a6b56c4889a2ed4216e9968cfc740086c. ---- - build/config/compiler/BUILD.gn | 12 ------------ - .../blink/renderer/platform/wtf/text/string_impl.h | 8 ++++---- - 2 files changed, 4 insertions(+), 16 deletions(-) - -diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn -index be740d17b8346..5b38bae851dcf 100644 ---- a/build/config/compiler/BUILD.gn -+++ b/build/config/compiler/BUILD.gn -@@ -1873,18 +1873,6 @@ config("sanitize_c_array_bounds") { - cflags = [ - "-fsanitize=array-bounds", - "-fsanitize-trap=array-bounds", -- -- # Some code users feature detection to determine if UBSAN (or any -- # sanitizer) is enabled, they then do expensive debug like operations. We -- # want to suppress this behaviour since we want to keep performance costs -- # as low as possible while having these checks. -- "-fsanitize-ignore-for-ubsan-feature=array-bounds", -- -- # Because we've enabled array-bounds sanitizing we also want to suppress -- # the related warning about "unsafe-buffer-usage-in-static-sized-array", -- # since we know that the array bounds sanitizing will catch any out-of- -- # bounds accesses. -- "-Wno-unsafe-buffer-usage-in-static-sized-array", - ] - } - } -diff --git a/third_party/blink/renderer/platform/wtf/text/string_impl.h b/third_party/blink/renderer/platform/wtf/text/string_impl.h -index 84997f1da2252..64112f2f48060 100644 ---- a/third_party/blink/renderer/platform/wtf/text/string_impl.h -+++ b/third_party/blink/renderer/platform/wtf/text/string_impl.h -@@ -365,7 +365,7 @@ class WTF_EXPORT StringImpl { - - constexpr hw::FixedTag d16; - constexpr hw::FixedTag d8; -- HWY_LANES_CONSTEXPR size_t kLanes = hw::Lanes(d8); -+ constexpr size_t kLanes = hw::Lanes(d8); - - const size_t length = source.size(); - const LChar* src = source.data(); -@@ -768,7 +768,7 @@ ALWAYS_INLINE bool SimdEqualIgnoringASCIICase(base::span a, - base::span b) { - namespace hw = hwy::HWY_NAMESPACE; - constexpr hw::FixedTag d; -- HWY_LANES_CONSTEXPR size_t kLanes = hw::Lanes(d); -+ constexpr size_t kLanes = hw::Lanes(d); - - // SAFETY: The SIMD code requires raw buffer access. - UNSAFE_BUFFERS({ -@@ -803,7 +803,7 @@ ALWAYS_INLINE bool SimdEqualIgnoringASCIICase(base::span a, - namespace hw = hwy::HWY_NAMESPACE; - constexpr hw::FixedTag d16; - constexpr hw::FixedTag d8; -- HWY_LANES_CONSTEXPR size_t kLanes = hw::Lanes(d16); -+ constexpr size_t kLanes = hw::Lanes(d16); - - // SAFETY: The SIMD code requires raw buffer access. - UNSAFE_BUFFERS({ -@@ -840,7 +840,7 @@ ALWAYS_INLINE bool SimdEqualIgnoringASCIICase(base::span a, - base::span b) { - namespace hw = hwy::HWY_NAMESPACE; - constexpr hw::FixedTag d; -- HWY_LANES_CONSTEXPR size_t kLanes = hw::Lanes(d); -+ constexpr size_t kLanes = hw::Lanes(d); - - // SAFETY: The SIMD code requires raw buffer access. - UNSAFE_BUFFERS({ diff --git a/srcpkgs/chromium/patches/chromium-148-rust-toolchain-var.patch b/srcpkgs/chromium/patches/chromium-148-rust-toolchain-var.patch deleted file mode 100644 index 916b8a849a6c3a..00000000000000 --- a/srcpkgs/chromium/patches/chromium-148-rust-toolchain-var.patch +++ /dev/null @@ -1,75 +0,0 @@ -From ab0e02d9fd67527217acec9f1cd9a6bd48b3e4a3 Mon Sep 17 00:00:00 2001 -From: LN Liberda -Date: Sat, 4 Apr 2026 20:49:57 +0200 -Subject: [PATCH] Use rust_sysroot instead of hardcoding - //third_party/rust-toolchain - -Bug: 491242305 ---- - build/rust/cargo_crate.gni | 4 ++-- - build/rust/std/BUILD.gn | 4 ++-- - build/toolchain/gcc_toolchain.gni | 2 +- - build/toolchain/win/toolchain.gni | 4 ++-- - 4 files changed, 7 insertions(+), 7 deletions(-) - -diff --git a/build/rust/cargo_crate.gni b/build/rust/cargo_crate.gni -index 8981cac7e190f..a245f336f21f6 100644 ---- a/build/rust/cargo_crate.gni -+++ b/build/rust/cargo_crate.gni -@@ -457,9 +457,9 @@ template("cargo_crate") { - ] - - if (host_os == "win") { -- inputs += [ "//third_party/rust-toolchain/bin/rustc.exe" ] -+ inputs += [ "$rust_sysroot/bin/rustc.exe" ] - } else { -- inputs += [ "//third_party/rust-toolchain/bin/rustc" ] -+ inputs += [ "$rust_sysroot/bin/rustc" ] - } - - build_script_target = ":${_build_script_name}($rust_macro_toolchain)" -diff --git a/build/rust/std/BUILD.gn b/build/rust/std/BUILD.gn -index 6c8022bcb0cb8..2ad609153e8ad 100644 ---- a/build/rust/std/BUILD.gn -+++ b/build/rust/std/BUILD.gn -@@ -268,9 +268,9 @@ if (toolchain_has_rust) { - out_depfile = rebase_path(depfile, root_build_dir) - - if (host_os == "win") { -- inputs = [ "//third_party/rust-toolchain/bin/rustc.exe" ] -+ inputs = [ "$rust_sysroot/bin/rustc.exe" ] - } else { -- inputs = [ "//third_party/rust-toolchain/bin/rustc" ] -+ inputs = [ "$rust_sysroot/bin/rustc" ] - } - - # For the rustc sysroot we must include even the rlibs we don't pass to -diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni -index 6c3298cbebd92..699bec606d852 100644 ---- a/build/toolchain/gcc_toolchain.gni -+++ b/build/toolchain/gcc_toolchain.gni -@@ -681,7 +681,7 @@ template("single_gcc_toolchain") { - "//build/action_helpers.py", - "//build/gn_helpers.py", - "//build/rust/gni_impl/rustc_wrapper.py", -- "//third_party/rust-toolchain/bin/rustc", -+ "$rust_sysroot/bin/rustc", - ] - - # RSP manipulation due to https://bugs.chromium.org/p/gn/issues/detail?id=249 -diff --git a/build/toolchain/win/toolchain.gni b/build/toolchain/win/toolchain.gni -index a8e65d09341ed..15556748c6473 100644 ---- a/build/toolchain/win/toolchain.gni -+++ b/build/toolchain/win/toolchain.gni -@@ -363,9 +363,9 @@ template("msvc_toolchain") { - ] - - if (host_os == "win") { -- rustc_wrapper_inputs += [ "//third_party/rust-toolchain/bin/rustc.exe" ] -+ rustc_wrapper_inputs += [ "$rust_sysroot/bin/rustc.exe" ] - } else { -- rustc_wrapper_inputs += [ "//third_party/rust-toolchain/bin/rustc" ] -+ rustc_wrapper_inputs += [ "$rust_sysroot/bin/rustc" ] - } - - tool("rust_staticlib") { diff --git a/srcpkgs/chromium/patches/chromium-148-sanitize-ignore-for-ubsan-feature.patch b/srcpkgs/chromium/patches/chromium-148-sanitize-ignore-for-ubsan-feature.patch deleted file mode 100644 index 3f3f7477f385da..00000000000000 --- a/srcpkgs/chromium/patches/chromium-148-sanitize-ignore-for-ubsan-feature.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/build/config/compiler/BUILD.gn -+++ b/build/config/compiler/BUILD.gn -@@ -1944,7 +1944,7 @@ - # sanitizer) is enabled, they then do expensive debug like operations. We - # want to suppress this behaviour since we want to keep performance costs - # as low as possible while having these checks. -- "-fsanitize-ignore-for-ubsan-feature=return", -+ # "-fsanitize-ignore-for-ubsan-feature=return", - ] - } - } diff --git a/srcpkgs/chromium/patches/chromium-149-llvm22.patch b/srcpkgs/chromium/patches/chromium-149-llvm22.patch new file mode 100644 index 00000000000000..1649c92ad4262d --- /dev/null +++ b/srcpkgs/chromium/patches/chromium-149-llvm22.patch @@ -0,0 +1,23 @@ +Disable clang flags not supported by llvm 22. +--- a/build/config/sanitizers/sanitizers.gni ++++ b/build/config/sanitizers/sanitizers.gni +@@ -540,7 +540,7 @@ + # be usable even in release builds, i.e. as widely as possible. + # It's important not to have full-on UBSan workarounds activate + # just because we built support for a specific sanitizer. +- "-fsanitize-ignore-for-ubsan-feature=${invoker.sanitizer}", ++ # "-fsanitize-ignore-for-ubsan-feature=${invoker.sanitizer}", + ] + if (defined(invoker.cflags)) { + cflags += invoker.cflags +--- a/build/config/compiler/BUILD.gn ++++ b/build/config/compiler/BUILD.gn +@@ -590,7 +590,7 @@ + # Flags for diagnostics. + cflags += [ "-fcolor-diagnostics" ] + if (!is_win) { +- cflags += [ "-fdiagnostics-show-inlining-chain" ] ++ # cflags += [ "-fdiagnostics-show-inlining-chain" ] + } else { + # Combine after https://github.com/llvm/llvm-project/pull/192241 + cflags += [ "/clang:-fdiagnostics-show-inlining-chain" ] diff --git a/srcpkgs/chromium/patches/chromium-149-rust-toolchain-var.patch b/srcpkgs/chromium/patches/chromium-149-rust-toolchain-var.patch new file mode 100644 index 00000000000000..0a3fb042508a2a --- /dev/null +++ b/srcpkgs/chromium/patches/chromium-149-rust-toolchain-var.patch @@ -0,0 +1,59 @@ +From 5f1fdab4f819433c081603358190b7f64449ff92 Mon Sep 17 00:00:00 2001 +From: LN Liberda +Date: Sat, 4 Apr 2026 20:49:57 +0200 +Subject: [PATCH] Use rust_sysroot instead of hardcoding + //third_party/rust-toolchain + +Bug: 491242305 +--- + build/config/rust.gni | 4 ++-- + build/rust/cargo_crate.gni | 4 ++-- + build/rust/std/BUILD.gn | 4 ++-- + 3 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/build/config/rust.gni b/build/config/rust.gni +index af3dfac4574f9..82fa215ea75d9 100644 +--- a/build/config/rust.gni ++++ b/build/config/rust.gni +@@ -433,7 +433,7 @@ rustc_wrapper_inputs = [ + ] + + if (host_os == "win") { +- rustc_wrapper_inputs += [ "//third_party/rust-toolchain/bin/rustc.exe" ] ++ rustc_wrapper_inputs += [ "$rust_sysroot/bin/rustc.exe" ] + } else { +- rustc_wrapper_inputs += [ "//third_party/rust-toolchain/bin/rustc" ] ++ rustc_wrapper_inputs += [ "$rust_sysroot/bin/rustc" ] + } +diff --git a/build/rust/cargo_crate.gni b/build/rust/cargo_crate.gni +index 4b07ea1312ebc..2b78953c17825 100644 +--- a/build/rust/cargo_crate.gni ++++ b/build/rust/cargo_crate.gni +@@ -464,9 +464,9 @@ template("cargo_crate") { + ] + + if (host_os == "win") { +- inputs += [ "//third_party/rust-toolchain/bin/rustc.exe" ] ++ inputs += [ "$rust_sysroot/bin/rustc.exe" ] + } else { +- inputs += [ "//third_party/rust-toolchain/bin/rustc" ] ++ inputs += [ "$rust_sysroot/bin/rustc" ] + } + + build_script_target = ":${_build_script_name}($rust_macro_toolchain)" +diff --git a/build/rust/std/BUILD.gn b/build/rust/std/BUILD.gn +index 105a1d52a1682..88ed50182a604 100644 +--- a/build/rust/std/BUILD.gn ++++ b/build/rust/std/BUILD.gn +@@ -269,9 +269,9 @@ if (toolchain_has_rust) { + out_depfile = rebase_path(depfile, root_build_dir) + + if (host_os == "win") { +- inputs = [ "//third_party/rust-toolchain/bin/rustc.exe" ] ++ inputs = [ "$rust_sysroot/bin/rustc.exe" ] + } else { +- inputs = [ "//third_party/rust-toolchain/bin/rustc" ] ++ inputs = [ "$rust_sysroot/bin/rustc" ] + } + + # For the rustc sysroot we must include even the rlibs we don't pass to diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template index 8f444dc5e0334a..593299d3a5b85c 100644 --- a/srcpkgs/chromium/template +++ b/srcpkgs/chromium/template @@ -1,7 +1,7 @@ # Template file for 'chromium' pkgname=chromium # See https://chromiumdash.appspot.com/releases?platform=Linux for the latest version -version=148.0.7778.178 +version=149.0.7827.53 revision=1 _rollup=4.22.4 archs="i686* x86_64* aarch64* armv7l*" @@ -36,7 +36,7 @@ homepage="https://www.chromium.org/" # distfiles="https://chromium.googlesource.com/chromium/src.git/+archive/refs/tags/${version}.tar.gz" distfiles="https://github.com/chromium-linux-tarballs/chromium-tarballs/releases/download/${version}/chromium-${version}-linux.tar.xz https://registry.npmjs.org/@rollup/wasm-node/-/wasm-node-${_rollup}.tgz" -checksum="e98de6a40890ae63b070d498e36bde272b99cfa85fe174c72b1994fa8fe0dc4d +checksum="f5ba5fc886c20a6524419a7a7f26a59a3019a94331b369693e09be807654569b ee49bf67bd9bee869405af78162d028e2af0fcfca80497404f56b1b99f272717" skip_extraction="wasm-node-${_rollup}.tgz" diff --git a/srcpkgs/gn/template b/srcpkgs/gn/template index c0abc664a53b86..526cccb4be7d1a 100644 --- a/srcpkgs/gn/template +++ b/srcpkgs/gn/template @@ -1,8 +1,8 @@ # Template file for 'gn' pkgname=gn -version=0.0.20260411 +version=0.0.20260603 revision=1 -_ref=ec56d4d935a0e2ab9d52b88dd00c93ec51233055 +_ref=6f8c0328ee29c76e3566a216f2f0cf2992daa6ed create_wrksrc=yes hostmakedepends="python3 ninja" short_desc="Meta-build system that generates build files for Ninja" @@ -10,7 +10,7 @@ maintainer="Duncaen " license="BSD-3-Clause" homepage="https://gn.googlesource.com/gn" distfiles="https://gn.googlesource.com/gn/+archive/${_ref}.tar.gz" -checksum=@7b8a4f44c5a65b7cb430a3e49a4cd202b3ed4e60bee70bc1dc817521a011235e +checksum=@08ab176aec39784af379b34aa42620522c7f478d0db38ae1286427e67ad892ec do_configure() { cat <<-EOF >src/gn/last_commit_position.h