Mail Archives: djgpp/1998/05/04/03:44:40
On Sun, 3 May 1998, Nate Eldredge wrote:
> ! if (mtime > now && (((mtime % 2) == 0) && ((mtime-3) > now)))
For a quick hack, I'd suggest to leave only the second part of the
test:
if (mtime > now + 3)
But, if you think about this for a moment, you will realize that using
Make on a filesystem which lies up to 3 seconds about the file times
might totally disrupt the operation of Make. Shutting up the warning
is tantamount to killing the messenger in this case: the problem
doesn't go away because you look the other way.
That is why I'm still thinking about the right way to solve this
problem. Assuming all the files are on the same filesystem which has
the same time skew, I can solve this fairly easy. But that assumption
will surely break in some cases, so Make will probably need to
maintain the skew value for each filesystem and apply it when checking
file times.
I also haven't given up hope that somebody will come up with a
reasonable explanation of why does this madness at all happen, and
that using that explanation we could find a better solution.
- Raw text -