summaryrefslogtreecommitdiffstats
path: root/system/heirloom-sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/heirloom-sh')
-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