From a9002f8e77386baea2c0737f3053cdc178524c5e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 22 Jul 2024 12:41:24 +0200 Subject: [PATCH] backport patch to fix unlogged assert on startup (ppc64le) --- add-ppc64-architecture-string.patch | 11 +++++++++++ chromium.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 add-ppc64-architecture-string.patch diff --git a/add-ppc64-architecture-string.patch b/add-ppc64-architecture-string.patch new file mode 100644 index 00000000..72ea1641 --- /dev/null +++ b/add-ppc64-architecture-string.patch @@ -0,0 +1,11 @@ +--- a/base/system/sys_info.cc ++++ b/base/system/sys_info.cc +@@ -255,6 +255,8 @@ + return "ARM"; + #elif defined(ARCH_CPU_ARM64) + return "ARM_64"; ++#elif defined(ARCH_CPU_PPC64) ++ return "PPC_64"; + #elif defined(ARCH_CPU_RISCV64) + return "RISCV_64"; + #else diff --git a/chromium.spec b/chromium.spec index 81af9dad..7750c4db 100644 --- a/chromium.spec +++ b/chromium.spec @@ -401,6 +401,7 @@ Patch358: chromium-124-rust-clang_lib.patch # PowerPC64 LE support # Timothy Pearson's patchset # https://gitlab.solidsilicon.io/public-development/open-source/chromium/openpower-patches/-/tree/chromium-126/patches/ppc64le +Patch359: add-ppc64-architecture-string.patch Patch360: 0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch Patch361: 0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch Patch362: 0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch @@ -1112,6 +1113,7 @@ Qt6 UI for chromium. %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le +%patch -P359 -p1 -b .add-ppc64-architecture-string %patch -P360 -p1 -b .0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h %patch -P361 -p1 -b .0001-sandbox-Enable-seccomp_bpf-for-ppc64 %patch -P362 -p1 -b .0001-services-service_manager-sandbox-linux-Fix-TCGETS-de