Add patch to solve stack growth on HPPA.

ci/unstable
Lisandro Damián Nicanor Pérez Meyer 1 year ago
parent a798ac3226
commit 62ac628b94

2
debian/changelog vendored

@ -3,6 +3,8 @@ qt6-base (6.4.2+dfsg-17) UNRELEASED; urgency=medium
[ Lisandro Damián Nicanor Pérez Meyer ] [ Lisandro Damián Nicanor Pérez Meyer ]
* Add remove_rpath_from_examples.patch in order to avoid setting * Add remove_rpath_from_examples.patch in order to avoid setting
RPATH/RUNPATH on examples' binaries. RPATH/RUNPATH on examples' binaries.
* Add forkfd_grow_stack_upwards_on_hppa.patch to solve how stack grows in
HPPA. Thanks John David Anglin for the patch.
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Sun, 23 Jul 2023 17:49:16 -0300 -- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Sun, 23 Jul 2023 17:49:16 -0300

@ -0,0 +1,23 @@
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>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1042018
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Last-Update: 2023-07-28
--- ./src/3rdparty/forkfd/forkfd_linux.c.save 2023-07-27 12:04:02.940466337 +0000
+++ ./src/3rdparty/forkfd/forkfd_linux.c 2023-07-27 12:06:53.522077424 +0000
@@ -168,7 +168,12 @@
}
*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;
if (ppid)

@ -20,6 +20,7 @@ cross.patch
force_shared_libzstd.patch force_shared_libzstd.patch
no_htmlinfo_example.patch no_htmlinfo_example.patch
remove_rpath_from_examples.patch remove_rpath_from_examples.patch
forkfd_grow_stack_upwards_on_hppa.patch
# Don't use yield on CPUs that might not support it # Don't use yield on CPUs that might not support it
armel-noyield.patch armel-noyield.patch

Loading…
Cancel
Save