Debian Codegraph @

debian/patches/35_axtls_error.patch

raw
1 Description: dump axTLS errors
2 Author: NIIBE Yutaka <[email protected]>
3 Last-Update: 2018-10-04
4
5 Index: gauche-0.9.10/ext/tls/Makefile.in
6 ===================================================================
7 --- gauche-0.9.10.orig/ext/tls/Makefile.in
8 +++ gauche-0.9.10/ext/tls/Makefile.in
9 @@ -6,6 +6,12 @@ abs_builddir = @abs_builddir@
10
11 include ../Makefile.ext
12
13 +# override the one in ../Makefile.ext
14 +check : all
15 + @rm -f test.log
16 + GAUCHE_TEST_RECORD_FILE=$(TESTRECORD) $(GOSH) -I. -I$(srcdir) $(srcdir)/test.scm > test.log
17 + @if grep -q failed test.log; then cat ssltest.log axTLS/ssl/stderr.out; fi
18 +
19 SCM_CATEGORY = rfc
20
21 LIBFILES = rfc--tls.$(SOEXT) rfc--tls--mbed.$(SOEXT)
22 Index: gauche-0.9.10/ext/tls/axTLS/ssl/test/killopenssl.sh
23 ===================================================================
24 --- gauche-0.9.10.orig/ext/tls/axTLS/ssl/test/killopenssl.sh
25 +++ gauche-0.9.10/ext/tls/axTLS/ssl/test/killopenssl.sh
26 @@ -1,5 +1,10 @@
27 #!/bin/sh
28 -if [ -f "../ssl/openssl.pid" ]; then
29 - awk '{print $1}' "../ssl/openssl.pid" | xargs kill -9
30 - rm -f ../ssl/openssl.pid
31 -fi
32 +
33 +[ -f ../ssl/openssl.pid ] || exit 0
34 +
35 +exec < "../ssl/openssl.pid"
36 +while read PID COMMAND ETC; do
37 + kill -9 $PID >/dev/null 2>&1
38 +done
39 +
40 +rm -f ../ssl/openssl.pid