summaryrefslogtreecommitdiff
path: root/user/qt5-qtwebkit/ppc-ucontext.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-12-13 15:35:12 -0600
committerZach van Rijn <me@zv.io>2022-12-13 15:35:15 -0600
commit9ffe136f6aca63d7f9a78c1b6b08cbafa12a2753 (patch)
tree300105bcb049d69b81da406a37248865b728a54b /user/qt5-qtwebkit/ppc-ucontext.patch
parent84bb21e34771f46fc32e042d53491c286feb2d0d (diff)
downloadpackages-9ffe136f6aca63d7f9a78c1b6b08cbafa12a2753.tar.gz
packages-9ffe136f6aca63d7f9a78c1b6b08cbafa12a2753.tar.bz2
packages-9ffe136f6aca63d7f9a78c1b6b08cbafa12a2753.tar.xz
packages-9ffe136f6aca63d7f9a78c1b6b08cbafa12a2753.zip
user/qt5-qtwebkit: ppc ucontext patch. 32-bit link flags. fixes #922.
This patch reverts upstream a7cdcdc77b8efef239d9b06e857a64e490d1a81b which caused a build failure on musl. Additionally, 32-bit architectures (ppc in particular) may fail to link due to address space limitations. Adjust link flags to mitigate.
Diffstat (limited to 'user/qt5-qtwebkit/ppc-ucontext.patch')
-rw-r--r--user/qt5-qtwebkit/ppc-ucontext.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/qt5-qtwebkit/ppc-ucontext.patch b/user/qt5-qtwebkit/ppc-ucontext.patch
new file mode 100644
index 000000000..e1b9bdfda
--- /dev/null
+++ b/user/qt5-qtwebkit/ppc-ucontext.patch
@@ -0,0 +1,15 @@
+diff -ur a/Source/JavaScriptCore/heap/MachineStackMarker.cpp b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
+--- a/Source/JavaScriptCore/heap/MachineStackMarker.cpp 2022-12-13 14:54:53.144583311 -0600
++++ b/Source/JavaScriptCore/heap/MachineStackMarker.cpp 2022-12-13 14:55:16.829078581 -0600
+@@ -86,11 +86,7 @@
+ }
+
+ ucontext_t* userContext = static_cast<ucontext_t*>(ucontext);
+-#if CPU(PPC)
+- thread->suspendedMachineContext = *userContext->uc_mcontext.uc_regs;
+-#else
+ thread->suspendedMachineContext = userContext->uc_mcontext;
+-#endif
+
+ // Allow suspend caller to see that this thread is suspended.
+ // sem_post is async-signal-safe function. It means that we can call this from a signal handler.