commit 517c62403ebafcc0727527ae55a9fc55a5069250
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed May 25 07:42:09 2022 +0100
Use archlinux patch
chromium-freeworld.spec | 2 +-
clang_fix.patch | 10 ----------
remove-no-opaque-pointers-flag.patch | 18 ++++++++++++++++++
3 files changed, 19 insertions(+), 11 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 823e009..107b749 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -177,6 +177,7 @@ Patch201: chromium-98-EnumTable-crash.patch
Patch202: chromium-InkDropHost-crash.patch
# Arch Linux patches:
+Patch227: remove-no-opaque-pointers-flag.patch
Patch1228: add-a-TODO-about-a-missing-pnacl-flag.patch
Patch1229: use-ffile-compilation-dir.patch
@@ -199,7 +200,6 @@ Patch405: chromium-names.patch
Patch406: gcc12.patch
Patch407: allow-to-override-clang-through-env-variables.patch
Patch408: chromium-rpm-fusion-brand.patch
-Patch409: clang_fix.patch
%description
%{name} is an open-source web browser, powered by WebKit (Blink)
diff --git a/remove-no-opaque-pointers-flag.patch b/remove-no-opaque-pointers-flag.patch
new file mode 100644
index 0000000..456154a
--- /dev/null
+++ b/remove-no-opaque-pointers-flag.patch
@@ -0,0 +1,18 @@
+--- a/build/config/compiler/BUILD.gn
++++ b/build/config/compiler/BUILD.gn
+@@ -1538,15 +1538,6 @@ config("default_warnings") {
+ cflags += [ "-Wno-deprecated-non-prototype" ]
+ }
+
+- if (!is_nacl && !(is_chromeos ||
+- default_toolchain == "//build/toolchain/cros:target"))
{
+- #
TODO(https://crbug.com/1316298): Re-enable once test failure is figured out
+- cflags += [
+- "-Xclang",
+- "-no-opaque-pointers",
+- ]
+- }
+-
+ if (is_fuchsia) {
+ #
TODO(https://bugs.chromium.org/p/fuchsia/issues/detail?id=77383)
+ cflags += [ "-Wno-deprecated-copy" ]