diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-19 05:07:58 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-19 05:07:58 +0100 |
commit | ca517256fa4afe5b579e64e267ebbc7beb8a888f (patch) | |
tree | b2e8529e997fc6e3e936f205f8b6b5ad4873b594 /dev-qt/qtbase/files | |
parent | 4eeee822487f780361d7d47b4c1b999f93e15b27 (diff) |
gentoo auto-resync : 19:09:2023 - 05:07:58
Diffstat (limited to 'dev-qt/qtbase/files')
-rw-r--r-- | dev-qt/qtbase/files/qtbase-6.5.2-hppa-forkfd-grow-stack.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-qt/qtbase/files/qtbase-6.5.2-hppa-forkfd-grow-stack.patch b/dev-qt/qtbase/files/qtbase-6.5.2-hppa-forkfd-grow-stack.patch new file mode 100644 index 000000000000..ccada9f80e34 --- /dev/null +++ b/dev-qt/qtbase/files/qtbase-6.5.2-hppa-forkfd-grow-stack.patch @@ -0,0 +1,28 @@ +Patch taken from Debian[1], largely broken on HPPA without and several +tests give segmentation faults[2]. + +Needs upstreaming if someone familiar with HPPA wants to give this +attention. Note forkfd is essentially maintained in qtbase's repo[3] +rather than truly third party. + +[1] https://bugs.debian.org/1042018 +[2] https://bugs.gentoo.org/914371 +[3] https://code.qt.io/cgit/qt/qtbase.git/tree/src/3rdparty/forkfd + +Description: Change how stack grows on HPPA. + On HPPA stack grows upwards. This patch introduces this change for + this 3rd party code. +Author: John David Anglin <dave.anglin@bell.net> +--- a/src/3rdparty/forkfd/forkfd_linux.c ++++ b/src/3rdparty/forkfd/forkfd_linux.c +@@ -170,5 +170,10 @@ + *system = 1; + ++#if defined(__hppa__) ++ /* Stack grows up */ ++ pid = clone(childFn, childStack, cloneflags, token, &pidfd, NULL, NULL); ++#else + pid = clone(childFn, childStack + sizeof(childStack), cloneflags, token, &pidfd, NULL, NULL); ++#endif + if (pid < 0) + return pid; |