2005/08/29
Buildbot on OS X 10.4
If you install a buildbot (a very nice tool, by the way) on MacOS X 10.4, and if, when clicking on an ongoing log in the waterfall display for the buildmaster, you observe something like a nice python exception ending in:
data = f.read(self.BUFFERSIZE)
with an ugly [Error 9]: bad file descriptor on the log file.
Then, you might be interested in the following excerpt from the CVS ChangeLog file, on 2005-07-19 (post 0.6.6):
* buildbot/status/builder.py (LogFile): remove the 't' mode from
all places where we open logfiles. It causes OS-X to open the file
in some weird mode that that prevents us from mixing reads and
writes to the same filehandle, which we depend upon to implement
_generateChunks properly. This change doesn't appear to break
win32, on which "b" and "t" are treated differently but a missing
flag seems to be interpreted as "t".
I tweaked my copy, works fine now.