libtool-patches
[Top][All Lists]
Advanced

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

Re: cygwin/mingw experiences


From: Ralf Wildenhues
Subject: Re: cygwin/mingw experiences
Date: Sat, 30 Apr 2005 11:49:58 +0200
User-agent: Mutt/1.5.9i

[ _really_ old thread, but new info, and a patch :) ]

* Ralf Wildenhues wrote on Fri, Feb 04, 2005 at 12:34:53PM CET:
> * Gary V. Vaughan wrote on Fri, Feb 04, 2005 at 12:29:40PM CET:
> > Ralf Wildenhues wrote:
> > > - something is broken in the Makefile rules that causes regeneration
> > >   of toplevel aclocal.m4 during `make check', after
> > >     reconfdirs=. ./bootstrap
> > >   (on HEAD/branch-2-0).
> > >   I suspect this is a timestamp resolution issue.
> > 
> > ISTR that Windows file systems have only 2 second resolution, so it is
> > very easy to get into race conditions.  This problem is getting worse
> > as systems get faster:  when I last used cygwin regularly, about 5 years
> > ago, the average machine running cygwin was so slow that it didn't bite
> > too often.  A strategic 'sleep 4' is almost certainly the fix...
> 
> I knew this was the case for FAT.  But I thought NTFS was better?

(NTFS is better, BTW.)

> > unfortunately, finding the right spot is likely to be a real PITA :-(
> 
> I won't be the one searching for it.

Oh, well.  Not a timestamp issue, but two issues:
First one, slightly unrelated and very much my own fault, I had the
cygwin auto{conf,make} wrappers installed, which broke version
detection.  I have that fixed now.

But more importantly: comparing a unix file and a windows one with cmp
is bound to lead to failures.  (Yes, certainly I do have my test cygwin
set up with crnl line endings.  I _want_ to see all possible bugs.)

OK to apply (HEAD, branch-2-0)?  Note that branch-2-0 contains a similar
cmp use in libtoolize.m4sh, but I believe that is to vanish with Gary's
backports.

Cheers,
Ralf

2005-04-30  Ralf Wildenhues  <address@hidden>
        
        * Makefile.am (stamp-vcl): Use `diff' instead of `cmp'.

Index: Makefile.am
===================================================================
RCS file: /cvsroot/libtool/libtool/Makefile.am,v
retrieving revision 1.151
diff -u -r1.151 Makefile.am
--- Makefile.am 27 Apr 2005 18:18:09 -0000      1.151
+++ Makefile.am 30 Apr 2005 09:49:18 -0000
@@ -134,7 +134,7 @@
 vcl-tmp:
        @set dummy `$(MKSTAMP) < $(srcdir)/ChangeLog`; shift; \
        echo "$$1" > vcl.tmp; \
-       cmp -s vcl.tmp $(srcdir)/stamp-vcl \
+       diff vcl.tmp $(srcdir)/stamp-vcl >/dev/null \
          || (echo "Updating stamp-vcl"; cp vcl.tmp $(srcdir)/stamp-vcl)
        address@hidden -f vcl.tmp
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]