Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions srcpkgs/electron42-devel
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Patch-Source: https://github.com/archlinux/svntogit-packages/blob/a353833a5a731abfaa465b658f61894a516aa49b/trunk/angle-wayland-include-protocol.patch
diff -upr third_party/angle.orig/BUILD.gn third_party/angle/BUILD.gn
--- a/third_party/angle.orig/BUILD.gn 2022-08-17 19:38:11.000000000 +0000
+++ b/third_party/angle/BUILD.gn 2022-08-18 11:04:09.061751111 +0000
@@ -489,6 +489,12 @@ config("angle_vulkan_wayland_config") {
if (angle_enable_vulkan && angle_use_wayland &&
defined(vulkan_wayland_include_dirs)) {
include_dirs = vulkan_wayland_include_dirs
+ } else if (angle_enable_vulkan && angle_use_wayland) {
+ include_dirs = [
+ "$wayland_gn_dir/src/src",
+ "$wayland_gn_dir/include/src",
+ "$wayland_gn_dir/include/protocol",
+ ]
}
}

@@ -1073,6 +1079,7 @@ if (angle_use_wayland) {
include_dirs = [
"$wayland_dir/egl",
"$wayland_dir/src",
+ "$wayland_gn_dir/include/protocol",
]
}

diff -upr third_party/angle.orig/src/third_party/volk/BUILD.gn third_party/angle/src/third_party/volk/BUILD.gn
--- a/third_party/angle.orig/src/third_party/volk/BUILD.gn 2022-08-17 19:38:12.000000000 +0000
+++ b/third_party/angle/src/third_party/volk/BUILD.gn 2022-08-18 11:04:36.499828006 +0000
@@ -21,6 +21,9 @@ source_set("volk") {
configs += [ "$angle_root:angle_no_cfi_icall" ]
public_deps = [ "$angle_vulkan_headers_dir:vulkan_headers" ]
if (angle_use_wayland) {
- include_dirs = [ "$wayland_dir/src" ]
+ include_dirs = [
+ "$wayland_dir/src",
+ "$wayland_gn_dir/include/protocol",
+ ]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/build/config/clang/BUILD.gn
+++ b/build/config/clang/BUILD.gn
@@ -187,14 +187,15 @@
} else if (is_apple) {
_dir = "darwin"
} else if (is_linux || is_chromeos) {
+ _dir = "linux"
if (current_cpu == "x64") {
- _dir = "x86_64-unknown-linux-gnu"
+ _suffix = "-x86_64"
} else if (current_cpu == "x86") {
- _dir = "i386-unknown-linux-gnu"
+ _suffix = "-i386"
} else if (current_cpu == "arm") {
- _dir = "armv7-unknown-linux-gnueabihf"
+ _suffix = "-armhf"
} else if (current_cpu == "arm64") {
- _dir = "aarch64-unknown-linux-gnu"
+ _suffix = "-aarch64"
} else if (current_cpu == "loong64") {
_dir = "loongarch64-unknown-linux-gnu"
} else if (current_cpu == "riscv64") {
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
From f71f01773e427aaaf76563f1f2d24ee6ece2dce9 Mon Sep 17 00:00:00 2001
From: Matt Jolly <kangie@gentoo.org>
Date: Tue, 9 Sep 2025 12:44:09 +1000
Subject: [PATCH 1/2] IWYU css_style_sheet.h

issues.chromium.org/issues/429365675 replaces a bunch of includes with
forward declarations. These builds clearly work with "normal" builds, which
likely use C++ modules or precompiled headers, but break if your workflow
does not use those features.

Add appropriate includes to fix the build on Linux platforms.

Signed-off-by: Matt Jolly <kangie@gentoo.org>
--- a/third_party/blink/renderer/core/css/css_style_declaration.h
+++ b/third_party/blink/renderer/core/css/css_style_declaration.h
@@ -23,6 +23,7 @@

#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
+#include "third_party/blink/renderer/core/css/css_style_sheet.h"
#include "third_party/blink/renderer/core/execution_context/execution_context_lifecycle_observer.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
--
2.50.1


From 0a1de20a85504ed8cb40961f76631c1430ed634c Mon Sep 17 00:00:00 2001
From: Matt Jolly <kangie@gentoo.org>
Date: Tue, 9 Sep 2025 12:56:38 +1000
Subject: [PATCH 2/2] IWYU css_style_sheet.h in generator

Signed-off-by: Matt Jolly <kangie@gentoo.org>
--- a/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py
+++ b/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py
@@ -434,6 +434,7 @@ def generate_observable_array(observable_array_identifier):
component_export_header(api_component, for_testing),
"third_party/blink/renderer/bindings/core/v8/idl_types.h",
"third_party/blink/renderer/platform/bindings/observable_array.h",
+ "third_party/blink/renderer/core/css/css_style_sheet.h",
])
source_node.accumulator.add_include_headers([
"third_party/blink/renderer/bindings/core/v8/generated_code_helper.h",
--
2.50.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
commit 4f7637304eca894adf2e70078a55654a88224a30
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date: Tue Sep 30 07:08:03 2025 -0700

[rust png] Reland: Reinforce `testonly`-ness of some users of `libpng`.

This reverts commit 7fa4c2d7ab42a48247ce8e0290cbb7e854990f1e and
effectively relands https://crrev.com/c/6976870. The reland is
attempted after using wildcards to cover extra gni-generated targets.
`Cq-Include-Trybots` directives in the CL description should verify
correctness of the reland. Original CL description follows:

This CL extracts a separate `third_party/libpng:libpng_for_testonly`
target which:

1) Is a `group` that proxies/forwards to the `libpng` target by listing
it as its `public_deps`
2) Has limited visibility (based on the new `libpng_testonly_visibility`
introduced in the refactored `third_party/libpng/visibility.gni`).
The new visibility is almost unchanged, except for explicitly
spelling out some targets instead of using wildcards
3) Is marked as `testonly`

Bug: 443128323
Change-Id: If7ba0d184324a5c662aaf2d52122994ea778d452
Cq-Include-Trybots: luci.chromium.try:ios-catalyst
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6991491
Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1522830}

diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
index a4703c3692d..2d70f7a5fe9 100644
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -11152,7 +11152,7 @@ if (!is_android) {
"//testing/gtest",
"//third_party/hunspell",
"//third_party/icu",
- "//third_party/libpng",
+ "//third_party/libpng:libpng_for_testonly",
"//ui/base:test_support",
"//ui/events:test_support",
"//ui/ozone",
@@ -11512,7 +11512,7 @@ if (!is_android && !is_chromeos_device) {
"//testing/gtest",
"//third_party/hunspell",
"//third_party/icu",
- "//third_party/libpng",
+ "//third_party/libpng:libpng_for_testonly",
"//ui/base:base_interactive_ui_tests",
"//ui/base:ozone_buildflags",
"//ui/base:test_support",
@@ -12470,7 +12470,7 @@ if (!is_android) {
"//testing/gtest",
"//third_party/hunspell",
"//third_party/icu",
- "//third_party/libpng",
+ "//third_party/libpng:libpng_for_testonly",
"//ui/base:test_support",
"//ui/resources:ui_test_pak",
"//ui/views",
diff --git a/testing/libfuzzer/fuzzers/BUILD.gn b/testing/libfuzzer/fuzzers/BUILD.gn
index 7d242e177f0..1c67eee1598 100644
--- a/testing/libfuzzer/fuzzers/BUILD.gn
+++ b/testing/libfuzzer/fuzzers/BUILD.gn
@@ -104,7 +104,7 @@ fuzzer_test("libpng_progressive_read_fuzzer") {
sources = [ "libpng_read_fuzzer.cc" ]
deps = [
"//base",
- "//third_party/libpng",
+ "//third_party/libpng:libpng_for_testonly",
]
dict = "dicts/png.dict"
seed_corpuses = libpng_seed_corpuses
diff --git a/third_party/libpng/BUILD.gn b/third_party/libpng/BUILD.gn
index d4bdea1e33c..3e31348b94f 100644
--- a/third_party/libpng/BUILD.gn
+++ b/third_party/libpng/BUILD.gn
@@ -130,6 +130,14 @@ if (is_win) {
}
}

+group("libpng_for_testonly") {
+ testonly = true
+ public_deps = [ ":libpng" ]
+
+ visibility = []
+ visibility = libpng_testonly_visibility
+}
+
if (build_with_chromium) {
libpng_ossfuzz_seed_corpuses = [
"//components/test/data/viz",
diff --git a/tools/imagediff/BUILD.gn b/tools/imagediff/BUILD.gn
index d56651bedc7..2b5f3d38488 100644
--- a/tools/imagediff/BUILD.gn
+++ b/tools/imagediff/BUILD.gn
@@ -34,6 +34,7 @@ if (target_os == "win" && host_os != "win") {
# If the current toolchain is the test host toolchain, build the tool.
if (current_toolchain == imagediff_toolchain) {
executable("imagediff") {
+ testonly = true
output_name = "image_diff" # Different than dir name for historical
# reasons.
sources = [
@@ -47,7 +48,7 @@ if (current_toolchain == imagediff_toolchain) {
deps = [
"//base",
"//build/win:default_exe_manifest",
- "//third_party/libpng",
+ "//third_party/libpng:libpng_for_testonly",
"//third_party/zlib",
]
}
@@ -60,6 +61,7 @@ if (current_toolchain == imagediff_toolchain) {
} else if (current_toolchain == default_toolchain &&
default_toolchain != imagediff_toolchain) {
binary_symlink("imagediff") {
+ testonly = true
binary_label = ":$target_name($imagediff_toolchain)"
binary_output_name = "image_diff"

diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
index f6a40abfe99..83d8f55027a 100644
--- a/ui/gfx/BUILD.gn
+++ b/ui/gfx/BUILD.gn
@@ -906,7 +906,7 @@ test("gfx_unittests") {
"//skia:skcms",
"//testing/gtest",
"//third_party/icu:icuuc",
- "//third_party/libpng",
+ "//third_party/libpng:libpng_for_testonly",
"//third_party/zlib",
"//ui/base",
"//ui/gfx/animation",
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-R -Np1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 075e6f5c4f754b5babc038a2ae55638fdb6cd4c7 Mon Sep 17 00:00:00 2001
From: LN Liberda <lauren@selfisekai.rocks>
Date: Mon, 19 Jan 2026 23:27:31 +0100
Subject: [PATCH] IWYU: add missing header for dev_t

---
modules/desktop_capture/linux/wayland/egl_dmabuf.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/third_party/webrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.h b/third_party/webrtcmodules/desktop_capture/linux/wayland/egl_dmabuf.h
index ee32f96b52..b442b673a6 100644
--- a/third_party/webrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.h
+++ b/third_party/webrtcmodules/desktop_capture/linux/wayland/egl_dmabuf.h
@@ -15,6 +15,7 @@
#include <EGL/eglplatform.h>
#include <GL/gl.h>
#include <gbm.h>
+#include <sys/types.h>

#include <cstdint>
#include <map>
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
From cf683912b378a906d398fead361315b5a34e5c9c Mon Sep 17 00:00:00 2001
From: LN Liberda <lauren@selfisekai.rocks>
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<uint16_t, 8> d16;
constexpr hw::FixedTag<uint8_t, 16> 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<const LChar> a,
base::span<const LChar> b) {
namespace hw = hwy::HWY_NAMESPACE;
constexpr hw::FixedTag<uint8_t, 16> 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<const UChar> a,
namespace hw = hwy::HWY_NAMESPACE;
constexpr hw::FixedTag<uint16_t, 8> d16;
constexpr hw::FixedTag<uint8_t, 8> 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<const UChar> a,
base::span<const UChar> b) {
namespace hw = hwy::HWY_NAMESPACE;
constexpr hw::FixedTag<uint16_t, 8> 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({
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -617,7 +617,7 @@
# https://crbug.com/484082200 for background and https://crrev.com/c/7593035
# for discussion.
if (!is_wasm) {
- cflags += [ "-fno-lifetime-dse" ]
+ # cflags += [ "-fno-lifetime-dse" ]
}

# TODO(hans): Remove this once Clang generates better optimized debug info
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The original patch got reverted upstream, but LaneCount and SupportedLaneCount no longer work in Rust 1.95.0
--- a/third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/pod.rs
+++ b/third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/pod.rs
@@ -152,7 +152,6 @@ impl_unsafe_marker_for_simd!(
unsafe impl<T, const N: usize> Pod for core::simd::Simd<T, N>
where
T: core::simd::SimdElement + Pod,
- core::simd::LaneCount<N>: core::simd::SupportedLaneCount,
{
}

--- a/third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/zeroable.rs
+++ b/third_party/rust/chromium_crates_io/vendor/bytemuck-v1/src/zeroable.rs
@@ -231,7 +231,6 @@ impl_unsafe_marker_for_simd!(
unsafe impl<T, const N: usize> Zeroable for core::simd::Simd<T, N>
where
T: core::simd::SimdElement + Zeroable,
- core::simd::LaneCount<N>: core::simd::SupportedLaneCount,
{
}

Loading