TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING breaks tclkit
Closed / Fixed1457515fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2006-03-24 04:47:53
Mark Roseman has determined that VFS problems breaking tclkit 8.4.12 on darwin are triggered by the addition of the TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING define to the Darwin section of tcl.m4. This change was copied over from Apple's Darwin CVS, where the commit msg for the relevant change says: 2004-08-18 03:45 tpeterso * tcl/Makefile (PR-3171542): Add a flag required for some conformance work. Bug #: 3171542 we are trying to ascertain if this was just added to deal with an old version of expect and is in fact not needed in the general tcl build. Mark has found that adding a BlockModeProc to rechan fixes the problem with tclkit, but the define should still be removed from tcl.m4 if it is not necessary in general.
andreas_kupriesplain2006-03-24 23:30:33
Logged In: YES user_id=75003 Yes, this was added to deal with an old version of Expect. See ChangeLog, entry 2004-07-14 by myself. This was basically an attempt to fix some issues with Expect in the core and become unneeded when Expect gained a true BlockmodeProc and converted to non-blocking operation. After that time this flag should not be used in general at all. If there are channel drivers in the wild which need this flag then the drivers should be fixed/changed, i.e. get a block-mode-proc, and maybe even allow (non-)blocking operation. The core should not be compiled with the flag anymore. Note: The AS local copy of tclkit sources has a function 'rcBlock' in "rechan.c". It does nothing, just accepts the call. I believe we gave this to jcw at the time, however I am not fully sure of that. So, in general, this flag is not necessary.
dasplain2006-03-24 23:48:56
Logged In: YES user_id=90580 Andreas, sorry, I was unclear, I knew that you introduced the flag and related changes to deal with an expect issue at the time; the question is why Apple added that flag to their tcl build for Tiger, Jim Ingham is trying to find out details. If it was indeed just done to deal with an old version of expect, we can convince them to upgrade to a newer expect version and remove the flag from their tcl build. copying that change over from Darwin CVS was purely done to minimize differences between the Apple build and the default core source build, with the ultimate goal to get Apple to include an unpatched release into the next OS... Mark's fix to rechan.c sounds similar to yours, and jcw says he didn't have it, so you may want to make sure you have indeed made the same change as what he is integrating into tclkit now.
andreas_kupriesplain2006-03-24 23:56:57
Logged In: YES
user_id=75003
Ok. I can't say anything about Apple's reasoning, good that
Jim is working on that. I have to admit that I was really
really surprised.
Note: Expect 5.43, either the variant
in SF's CVS or Don's should be good
enough to drop the flag.
Better check this this.
I will talk to jcw regarding rechan.
dasplain2006-04-05 08:37:32
Logged In: YES user_id=90580 Jim pinged the committer of that change in Darwin CVS but we have not heard back from him, so unless there are objections, I plan to remove the setting of TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING from tcl.m4 in CVS later today.
dasplain2006-04-06 16:32:45
Logged In: YES user_id=90580 committed to HEAD and core-8-4-branch
Log in (anonymous is fine) to add a comment.