Skip to content

Commit 2eefb09

Browse files
chore: fix build for 133 (#26)
1 parent d0d78ed commit 2eefb09

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

copr_script.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ readonly NAME="trivalent-subresource-filter"
3838

3939
# Clone the repo with the spec file and chromium source downloader
4040
cp $NAME/fedora_patches/chromium-127-rust-clanglib.patch ./
41+
cp $NAME/patches/use-clang19-cflag.patch ./
4142
cp $NAME/$NAME.spec ./
4243
cp $NAME/install_filter.sh ./
4344
cp /usr/src/chromium/chromium-*-clean.tar.xz ./

patches/use-clang19-cflag.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
2+
index 88109264ea962..ac9f6663f2cf5 100644
3+
--- a/build/config/compiler/BUILD.gn
4+
+++ b/build/config/compiler/BUILD.gn
5+
@@ -1991,7 +1991,7 @@ config("default_warnings") {
6+
cflags_cc += [ "-Wno-dangling-assignment-gsl" ]
7+
8+
# TODO(crbug.com/376641662): Fix and re-enable.
9+
- cflags += [ "-Wno-nontrivial-memcall" ]
10+
+ cflags += [ "-Wno-nontrivial-memaccess" ]
11+
}
12+
}
13+

trivalent-subresource-filter.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Source1: install_filter.sh
4747

4848
# set clang_lib path
4949
Patch358: chromium-127-rust-clanglib.patch
50+
Patch359: use-clang19-cflag.patch
5051

5152
# Dependencies required
5253
BuildRequires: gn
@@ -89,7 +90,7 @@ Filter used by %{chromium_name} to provide content blocking.
8990
%prep
9091
%setup -q -n chromium-%{version}
9192
%patch -P358 -p1 -b .rust-clang_lib
92-
93+
%patch -P359 -p1 -b .use-clang19-cflag
9394
%build
9495

9596
FLAGS=' -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-unused-command-line-argument'

0 commit comments

Comments
 (0)