From 55272b02459dfbb09b5b638ba5110d4c14e66fb7 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 9 Mar 2021 04:18:20 +0100 Subject: [PATCH] qt5-webengine: fix more nonsense for ppc64le-musl --- .../patches/0091-chromium-ppc64le-musl.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/srcpkgs/qt5-webengine/patches/0091-chromium-ppc64le-musl.patch b/srcpkgs/qt5-webengine/patches/0091-chromium-ppc64le-musl.patch index eb8d5f1d86..4cd12a7fb4 100644 --- a/srcpkgs/qt5-webengine/patches/0091-chromium-ppc64le-musl.patch +++ b/srcpkgs/qt5-webengine/patches/0091-chromium-ppc64le-musl.patch @@ -133,6 +133,22 @@ index 901cd68fb..561958c44 100644 namespace google_breakpad { namespace { +diff --git a/src/3rdparty/chromium/third_party/crashpad/crashpad/snapshot/linux/signal_context.h b/src/3rdparty/chromium/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +index 8e335a09..b2a0f155 100644 +--- a/src/3rdparty/chromium/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ b/src/3rdparty/chromium/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +@@ -469,7 +469,11 @@ struct MContext64 { + SignalThreadContext64 gp_regs; + SignalFloatContext64 fp_regs; + SignalVectorContext64 *v_regs; ++#ifdef __GLIBC__ + int64_t vmx_reserve[69]; ++#else ++ int64_t vmx_reserve[101]; ++#endif + }; + + struct ContextTraits64 : public Traits64 { diff --git a/src/3rdparty/chromium/third_party/crashpad/crashpad/util/linux/thread_info.h b/src/3rdparty/chromium/third_party/crashpad/crashpad/util/linux/thread_info.h index dea0d1f39..b203e5b2f 100644 --- a/src/3rdparty/chromium/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -145,3 +161,25 @@ index dea0d1f39..b203e5b2f 100644 #endif namespace crashpad { +diff --git a/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h b/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h +index 9955ce44..4c1cc488 100644 +--- a/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h ++++ b/src/3rdparty/chromium/third_party/lss/linux_syscall_support.h +@@ -4216,9 +4216,17 @@ struct kernel_statfs { + } + #endif + #if defined(__NR_fstatat64) ++ // musl does #define fstatat64 fstatat ++ #ifndef __GLIBC__ ++ #undef fstatat64 ++ #endif + LSS_INLINE _syscall4(int, fstatat64, int, d, + const char *, p, + struct kernel_stat64 *, b, int, f) ++ // set it back like it was ++ #ifndef __GLIBC__ ++ #define fstatat64 fstatat ++ #endif + #endif + #if defined(__NR_waitpid) + // waitpid is polyfilled below when not available.