summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author K. Eugene Carlson2023-03-10 09:20:03 +0100
committer Matteo Bernardini2024-04-20 17:26:28 +0200
commit2ab3fd4c9df6b5022f774f8a9020f3adaffcce23 (patch)
tree55dffb02ed7d66e3ee813ee686276ae26e97ab84
parent7348664936073e3ad54706addd43560c23807ed8 (diff)
downloadslackbuilds-heirloom-sh.tar.gz
system/heirloom-sh: Patch for glibc >= 2.34.heirloom-sh
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--system/heirloom-sh/heirloom-sh-glibc-2.34.patch18
-rw-r--r--system/heirloom-sh/heirloom-sh.SlackBuild2
2 files changed, 20 insertions, 0 deletions
diff --git a/system/heirloom-sh/heirloom-sh-glibc-2.34.patch b/system/heirloom-sh/heirloom-sh-glibc-2.34.patch
new file mode 100644
index 0000000000..35cb565526
--- /dev/null
+++ b/system/heirloom-sh/heirloom-sh-glibc-2.34.patch
@@ -0,0 +1,18 @@
+--- a/fault.c
++++ b/fault.c
+@@ -43,6 +43,15 @@
+ #include <errno.h>
+ #include <string.h>
+
++#if __GLIBC__ >= 2
++# undef SIGSTKSZ
++# if defined __ia64__
++# define SIGSTKSZ 262144
++# else
++# define SIGSTKSZ 65536
++# endif
++#endif
++
+ static void (*psig0_func)() = SIG_ERR; /* previous signal handler for signal 0 */
+ static char sigsegv_stack[SIGSTKSZ];
+
diff --git a/system/heirloom-sh/heirloom-sh.SlackBuild b/system/heirloom-sh/heirloom-sh.SlackBuild
index b805981e57..ce9edf218e 100644
--- a/system/heirloom-sh/heirloom-sh.SlackBuild
+++ b/system/heirloom-sh/heirloom-sh.SlackBuild
@@ -61,6 +61,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/heirloom-sh-glibc-2.34.patch
+
# configure is the worst way to build a package except for all the others
# 1. make static changes to the makefile with a patch
patch -p1 < $CWD/makefile.patch