From 880df93c8bbfe5df2a66965aa337f6b36e475e72 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Tue, 16 Sep 2008 22:36:43 -0700
Subject: [PATCH] Makefile: pyutil from a dependent lib causes a #455-ish
 problem, the workaround is to run build-once *three* times

---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 6808d614..e3eab620 100644
--- a/Makefile
+++ b/Makefile
@@ -58,11 +58,11 @@ src/allmydata/_version.py:
 # setuptools which properly sandboxes sys.modules (or a new version of nevow
 # which doesn't import twisted during its build, or a new version of twisted
 # which doesn't import itself during its build), we just build tahoe twice
-# and ignore the errors from the first pass.
+# and ignore the errors from the first pass. Updated 16-Sep-2008: now we need
+# three invocations.
 
 build: src/allmydata/_version.py
-	-$(MAKE) build-once
-	$(MAKE) build-once
+	$(MAKE) build-once || $(MAKE) build-once || $(MAKE) build-once
 
 # setuptools has a bug (Issue17, see tahoe #229 for details) that causes it
 # to mishandle dependencies that are installed in non-site-directories,
-- 
2.45.2