public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: - refreshed ppc64le patches
@ 2026-08-07 16:07 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:07 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/chromium
            Branch : epel9-next
            Commit : dee384f4469182b9c647ade47b5c8128f5331f00
            Author : Than Ngo <than@redhat.com>
            Date   : 2025-06-04T12:07:15+02:00
            Stats  : +22/-41 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/chromium/c/dee384f4469182b9c647ade47b5c8128f5331f00?branch=epel9-next

            Log:
            - refreshed ppc64le patches
- cleanup fedora/epel conditions

---
diff --git a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch
index 1e0db40..2cc51a1 100644
--- a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch
+++ b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch
@@ -7,19 +7,19 @@ Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Update syscall ranges for ppc64
  sandbox/linux/bpf_dsl/linux_syscall_ranges.h | 7 +++++++
  1 file changed, 7 insertions(+)
 
-Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
+Index: chromium-137.0.7151.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
 ===================================================================
---- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
-+++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
+--- chromium-137.0.7151.40.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
++++ chromium-137.0.7151.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
 @@ -56,6 +56,13 @@
  #define MAX_PUBLIC_SYSCALL __NR_syscalls
  #define MAX_SYSCALL MAX_PUBLIC_SYSCALL
  
 +#elif defined(__powerpc64__)
 +
-+#include <asm/unistd.h>
++#include <asm-generic/unistd.h>
 +#define MIN_SYSCALL 0u
-+#define MAX_PUBLIC_SYSCALL 386u
++#define MAX_PUBLIC_SYSCALL __NR_syscalls
 +#define MAX_SYSCALL MAX_PUBLIC_SYSCALL
 +
  #else

diff --git a/0008-sandbox-fix-ppc64le-glibc234.patch b/0008-sandbox-fix-ppc64le-glibc234.patch
index 4c9943d..dbb32ab 100644
--- a/0008-sandbox-fix-ppc64le-glibc234.patch
+++ b/0008-sandbox-fix-ppc64le-glibc234.patch
@@ -1,7 +1,7 @@
-Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_utility_policy_linux.cc
+Index: chromium-137.0.7151.40/sandbox/policy/linux/bpf_utility_policy_linux.cc
 ===================================================================
---- chromium-134.0.6998.35.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc
-+++ chromium-134.0.6998.35/sandbox/policy/linux/bpf_utility_policy_linux.cc
+--- chromium-137.0.7151.40.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc
++++ chromium-137.0.7151.40/sandbox/policy/linux/bpf_utility_policy_linux.cc
 @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat
      case __NR_fdatasync:
      case __NR_fsync:
@@ -11,10 +11,10 @@ Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_utility_policy_linux.cc
      case __NR_getrlimit:
  #endif
  #if defined(__i386__) || defined(__arm__)
-Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_renderer_policy_linux.cc
+Index: chromium-137.0.7151.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc
 ===================================================================
---- chromium-134.0.6998.35.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc
-+++ chromium-134.0.6998.35/sandbox/policy/linux/bpf_renderer_policy_linux.cc
+--- chromium-137.0.7151.40.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc
++++ chromium-137.0.7151.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc
 @@ -90,7 +90,7 @@ ResultExpr RendererProcessPolicy::Evalua
      case __NR_ftruncate64:
  #endif
@@ -24,27 +24,11 @@ Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_renderer_policy_linux.cc
      case __NR_getrlimit:
      case __NR_setrlimit:
  // We allow setrlimit to dynamically adjust the address space limit as
-Index: chromium-134.0.6998.35/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
+Index: chromium-137.0.7151.40/sandbox/linux/services/credentials.cc
 ===================================================================
---- chromium-134.0.6998.35.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
-+++ chromium-134.0.6998.35/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
-@@ -58,9 +58,9 @@
- 
- #elif defined(__powerpc64__)
- 
--#include <asm/unistd.h>
-+#include <asm-generic/unistd.h>
- #define MIN_SYSCALL 0u
--#define MAX_PUBLIC_SYSCALL 386u
-+#define MAX_PUBLIC_SYSCALL __NR_syscalls
- #define MAX_SYSCALL MAX_PUBLIC_SYSCALL
- 
- #else
-Index: chromium-134.0.6998.35/sandbox/linux/services/credentials.cc
-===================================================================
---- chromium-134.0.6998.35.orig/sandbox/linux/services/credentials.cc
-+++ chromium-134.0.6998.35/sandbox/linux/services/credentials.cc
-@@ -96,7 +96,8 @@ bool ChrootToSafeEmptyDir() {
+--- chromium-137.0.7151.40.orig/sandbox/linux/services/credentials.cc
++++ chromium-137.0.7151.40/sandbox/linux/services/credentials.cc
+@@ -99,7 +99,8 @@ bool ChrootToSafeEmptyDir() {
  
    int clone_flags = CLONE_FS | LINUX_SIGCHLD;
    void* tls = nullptr;
@@ -54,7 +38,7 @@ Index: chromium-134.0.6998.35/sandbox/linux/services/credentials.cc
      !defined(MEMORY_SANITIZER)
    // Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables.
    // Since clone writes to the new child's TLS before returning, we must set a
-@@ -104,6 +105,11 @@ bool ChrootToSafeEmptyDir() {
+@@ -107,6 +108,11 @@ bool ChrootToSafeEmptyDir() {
    // glibc performs syscalls by calling a function pointer in TLS, so we do not
    // attempt this optimization.
    // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f.
@@ -66,10 +50,10 @@ Index: chromium-134.0.6998.35/sandbox/linux/services/credentials.cc
    clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS;
  
    char tls_buf[PTHREAD_STACK_MIN_CONST] = {};
-Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
+Index: chromium-137.0.7151.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
 ===================================================================
---- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
-+++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
+--- chromium-137.0.7151.40.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
++++ chromium-137.0.7151.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
 @@ -362,7 +362,16 @@ intptr_t SIGSYSFstatatHandler(const stru
    if (args.nr == __NR_fstatat_default) {
      if (*reinterpret_cast<const char*>(args.args[1]) == '\0' &&

diff --git a/chromium.spec b/chromium.spec
index 60008a0..17363ef 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -1039,12 +1039,13 @@ Qt6 UI for chromium.
 
 %patch -P312 -p1 -b .fstack-protector-strong
 
-%if 0%{?rhel} == 9
+%if 0%{?rhel} && 0%{?rhel} < 10
 %patch -P315 -p1 -b .rust-libadler2
+%patch -P354 -p1 -b .split-threshold-for-reg-with-hint
 %endif
 %patch -P316 -p1 -b .clang-build-flags
 
-%if 0%{?fedora} < 42 || 0%{?rhel} < 10
+%if 0%{?fedora} && 0%{?fedora} < 42 || 0%{?rhel} && 0%{?rhel} < 10
 %patch -P317 -p1 -b .clang++-unsupported-argument
 %endif
 
@@ -1056,10 +1057,6 @@ Qt6 UI for chromium.
 %patch -P353 -p1 -b .duplicate-case-value
 %endif
 
-%if 0%{?rhel} && 0%{?rhel} < 10 || 0%{?fedora} && 0%{?fedora} < 40
-%patch -P354 -p1 -b .split-threshold-for-reg-with-hint
-%endif
-
 %patch -P355 -p1 -b .hardware_destructive_interference_size
 
 %patch -P357 -p1 -b .type-mismatch-error

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-07 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:07 [rpms/chromium] epel9-next: - refreshed ppc64le patches Than Ngo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox