[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] autoconf-it and timestamps



We just had a very, very, weird bug which was hard to reproduce involving building multiple copies of eglibc simultaneously from a single source tree.

The problem is basically as follows:

* SVN doesn't keep time stamps.
* So configure.in might be newer than configure in a checkout, even if configure was built from configure.in.
* So the autoconf-it rule can try to rebuild configure.
* ... Which it rebuilds in the SOURCE directory, not in the build directory.
* ... Which has a race condition.

My thoughts are roughly that the autoconf-it rule probably shouldn't be modifying the source tree if you're building in another directory -- that just seems dangerous. For our immediate purposes, we're just unilaterally touching */configure, but that's... uhm. Not good.

I don't actually have a patch yet, but I'm sort of thinking about one.

-s
--
Listen, get this.  Nobody, with a good compiler, needs to be justified.