diff options
author | Matteo Bernardini | 2024-04-27 10:55:17 +0200 |
---|---|---|
committer | Matteo Bernardini | 2024-04-27 10:55:17 +0200 |
commit | a9b45c006f9ff5d68b3da9fe9893afa288a1254c (patch) | |
tree | ad10755569ed5cdb63f094945ce637939141a32c /system/heirloom-sh | |
parent | 68ac93024440c1dcb61e579018ce241a1ab44180 (diff) | |
download | slackbuilds-current.tar.gz |
20240427.1 global branch merge.current-20240427.1current
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/heirloom-sh')
-rw-r--r-- | system/heirloom-sh/heirloom-sh-glibc-2.34.patch | 18 | ||||
-rw-r--r-- | system/heirloom-sh/heirloom-sh.SlackBuild | 2 |
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 |