From 3eb5f221d7ed217bb334d42389b01cf88919ebcd Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Tue, 29 Jul 2008 19:39:06 -0700
Subject: [PATCH] setup: pass --reactor=poll to trial unless REACTOR variable
 is set, in which case pass --reactor=$(REACTOR) This hopefully works around
 the problem that Twisted v8.1.0 has a bug when used with pyOpenSSL v0.7 which
 bug causes some unit tests to spuriously fail -- see known_issues.txt r2788:

http://allmydata.org/trac/tahoe/browser/docs/known_issues.txt?rev=2788#L122

Also it matches with the fact that --reactor=poll is required on cygwin.
---
 Makefile | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 280f7864..0b3906a1 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,6 @@ PYTHON=python
 PATHSEP=$(shell $(PYTHON) -c 'import os ; print os.pathsep')
 OSSEP=$(shell $(PYTHON) -c 'import os ; print os.sep')
 
-REACTOR=
-
 ifneq ($(INCLUDE_DIRS),)
 INCLUDE_DIRS_ARG = -I$(INCLUDE_DIRS)
 endif
@@ -31,14 +29,10 @@ else
 	CHECK_PYWIN32_DEP := 
 endif
 
-ifeq ($(PLAT),cygwin)
-REACTOR = poll
-endif
-
 ifneq ($(REACTOR),)
 	REACTOROPT := --reactor=$(REACTOR)
 else
-	REACTOROPT := 
+	REACTOROPT := --reactor=poll
 endif
 
 ifneq ($(PYTHONPATH),)
-- 
2.45.2