From d331ea0a395a7348d53ab2be39812bafb509e394 Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Wed, 5 Jul 2006 20:04:24 +0000 Subject: 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@ --- lang/tcl84/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lang/tcl84/Makefile') 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}) -- cgit v1.2.3