diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2006-07-05 20:04:24 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2006-07-05 20:04:24 +0000 |
commit | d331ea0a395a7348d53ab2be39812bafb509e394 (patch) | |
tree | 2ae1717da9542ecaea02cfa9a2dbd5e5ce58a98a /lang/tcl84 | |
parent | 6728fa2af2a7ecb3ec784490c7246233ab6c5040 (diff) |
Add check for net.inet.tcp.blackhole and warn users, when it is set, as well
as disable socket.test in this case. Some of the TCL's self-tests attempt to
open a socket to (or request http-data from) a "dead" port on the localhost.
These tests expect a quick failure, but get a hang, when the blackhole is on.
Tests in http.test use a timeout, but some of those in socket.test do not...
Pointed out by: confusion on ports@
Notes
Notes:
svn path=/head/; revision=167003
Diffstat (limited to 'lang/tcl84')
-rw-r--r-- | lang/tcl84/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/tcl84/Makefile b/lang/tcl84/Makefile index d1981fef50a0..e83c440ee99d 100644 --- a/lang/tcl84/Makefile +++ b/lang/tcl84/Makefile @@ -612,6 +612,9 @@ pre-configure: .endif +# Where the below command fails, there is no need for concern: +BLACKHOLE!= sysctl -n net.inet.tcp.blackhole + post-configure: ${REINPLACE_CMD} \ -e 's|${WRKDIRPREFIX}${.CURDIR}|$${WRKDIRPREFIX}${TCLBASE}|' \ @@ -627,6 +630,14 @@ post-configure: ${WRKSRC}/../doc/${mp} . endfor .endif +.if ${BLACKHOLE} != '' && ${BLACKHOLE} != 0 + # ==================================================== + # net.inet.tcp.blackhole is non-zero. Some http-tests + # will appear to hang and then fail. Do not be alarmed. + # The socket.test would hang, so it is disabled: + ${MV} ${WRKSRC:H}/tests/socket.test ${WRKSRC:H}/tests/socket.test.dis; + # ==================================================== +.endif post-install: .if exists(${PKGINSTALL}) |