summaryrefslogtreecommitdiff
path: root/system/pdksh/patches/043_Debian-siglist.patch
diff options
context:
space:
mode:
authorDaniel LEVAI <leva@ecentrum.hu>2010-05-13 01:01:03 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 01:01:03 +0200
commit6ec76a9860188c0e2de54daf61f5a4ff590ad8ef (patch)
treeedd70b526118253bc6ab17c0dcd069325fa5016f /system/pdksh/patches/043_Debian-siglist.patch
parent387f1e8f9c14fc5648eee03d43787806c806fe20 (diff)
downloadslackbuilds-6ec76a9860188c0e2de54daf61f5a4ff590ad8ef.tar.gz
system/pdksh: Added to 13.0 repository
Diffstat (limited to 'system/pdksh/patches/043_Debian-siglist.patch')
-rw-r--r--system/pdksh/patches/043_Debian-siglist.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/pdksh/patches/043_Debian-siglist.patch b/system/pdksh/patches/043_Debian-siglist.patch
new file mode 100644
index 0000000000..bd7a9af805
--- /dev/null
+++ b/system/pdksh/patches/043_Debian-siglist.patch
@@ -0,0 +1,23 @@
+ * siglist.sh: fix sed command line
+ * siglist.sh: pass `-' to trap call, fixes FTBFS on sparc.
+Index: pdksh-5.2.14/siglist.sh
+===================================================================
+--- pdksh-5.2.14.orig/siglist.sh 2008-04-15 20:46:55.000000000 +0200
++++ pdksh-5.2.14/siglist.sh 2008-04-15 20:53:20.000000000 +0200
+@@ -16,14 +16,14 @@
+ CPP="${1-cc -E}"
+
+ # The trap here to make up for a bug in bash (1.14.3(1)) that calls the trap
+-(trap $trapsigs;
++(trap - $trapsigs;
+ echo '#include "sh.h"';
+ echo ' { QwErTy SIGNALS , "DUMMY" , "hook for number of signals" },';
+ sed -e '/^[ ]*#/d' -e 's/^[ ]*\([^ ][^ ]*\)[ ][ ]*\(.*[^ ]\)[ ]*$/#ifdef SIG\1\
+ { QwErTy SIG\1 , "\1", "\2" },\
+ #endif/') > $in
+ $CPP $in > $out
+-sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort +2n +0n |
++sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort -k 3n -k 1n |
+ sed 's/^[0-9]* //' |
+ awk 'BEGIN { last=0; nsigs=0; }
+ {