Re: GNU make to consider files checksum

2009-11-28 Thread Harald Dunkel
I would say that this thread went a little bit out of focus. Maybe it is allowed to add my $.02? "Traditional" Make does a check like if timestamp(file1) > timestamp(file2) then rebuild file2 file1 The fundamental flaw in this is obvious: file1 can be replaced anytime by

Re: GNU make to consider files checksum

2009-10-05 Thread Tim Murphy
Hi :-) 2009/10/5 : > > Tim Murphy wrote: >> I think that checksumming might benefit some targets.  It would be >> nice to be able to implement different "methods" for different targets >> - because not all methods work well in all circumstances. > >> I have one example where every single file in

RE: GNU make to consider files checksum

2009-10-05 Thread lasse.makholm
Tim Murphy wrote: > I think that checksumming might benefit some targets. It would be > nice to be able to implement different "methods" for different targets > - because not all methods work well in all circumstances. > I have one example where every single file in a huge build includes 1 > par

Re: GNU make to consider files checksum

2009-09-29 Thread Tim Murphy
Hi, I think that checksumming might benefit some targets. It would be nice to be able to implement different "methods" for different targets - because not all methods work well in all circumstances. I have one example where every single file in a huge build includes 1 particular header file. Th

Re: GNU make to consider files checksum

2009-09-29 Thread Giuseppe Scrivano
Philip Guenther writes: > (Have you measured how often this sort of thing would save > recompilation and/or relinking and how much time it would save then? > What's the comparison to how much time would be spent calculating the > checksums? If it saves a minute once every 100 compiles but costs

Re: GNU make to consider files checksum

2009-09-28 Thread Philip Guenther
On Mon, Sep 28, 2009 at 11:05 AM, Giuseppe Scrivano wrote: > it looks like a good idea.  Do you think it worths to be discussed with > automake hackers? I'm not actually convinced that this checksumming is a good idea, mainly because I'm not convinced this is enough of a problem. The point of my

Re: GNU make to consider files checksum

2009-09-28 Thread Giuseppe Scrivano
Hi Philip, it looks like a good idea. Do you think it worths to be discussed with automake hackers? Cheers, Giuseppe Philip Guenther writes: > On Fri, Apr 11, 2008 at 2:45 PM, Giuseppe Scrivano wrote: >> I could find on this ML archives only a thread about this subject: to >> consider the f

Re: GNU make to consider files checksum

2009-09-06 Thread Philip Guenther
On Fri, Apr 11, 2008 at 2:45 PM, Giuseppe Scrivano wrote: > I could find on this ML archives only a thread about this subject: to > consider the file checksum instead of the timestamp. > Other systems like scons already support this feature and it would be > great to have it for GNU Make too. This

Re: GNU make to consider files checksum

2008-08-28 Thread Paul Smith
On Thu, 2008-08-28 at 09:06 +0200, Giuseppe Scrivano wrote: > I sent a message to this mailing list some months ago but I still > didn't get an answer. Doesn't GNU Make want to consider files > checksum in addition to mtime? There was a Google SOC project for GNU make which added "user-definable

Re: GNU make to consider files checksum

2008-08-28 Thread Giuseppe Scrivano
Eli Zaretskii wrote: > Thanks. (I'm not the head maintainer, so please wait for Paul and > others to respond.) I sent a message to this mailing list some months ago but I still didn't get an answer. Doesn't GNU Make want to consider files checksum in addition to mtime? Giuseppe ___

Re: GNU make to consider files checksum

2008-04-13 Thread Brian Dessent
Tim Murphy wrote: > One small concern that I have with checksums is that it might take a > really long time to check large files or a lot of files. True. However if you have, say, 100MB of objects then the time to calculate checksums is almost certainly going to be smaller than the time it takes

Re: GNU make to consider files checksum

2008-04-13 Thread Tim Murphy
Hi, I am also not a maintainer :-). One small concern that I have with checksums is that it might take a really long time to check large files or a lot of files. This would indicate that one needs to be able to switch checksumming on/off for different prerequisites. I think that there should be

Re: GNU make to consider files checksum

2008-04-12 Thread Giuseppe Scrivano
2008/4/12, Eli Zaretskii <[EMAIL PROTECTED]>: > Thanks. (I'm not the head maintainer, so please wait for Paul and > others to respond.) > > > +int > > +compute_checksum(struct file *new) > > +{ > > + int checksum = 0; > > + FILE *f; > > + char buffer [4096]; > > + > > + f = fopen (new

Re: GNU make to consider files checksum

2008-04-12 Thread Eli Zaretskii
> From: Giuseppe Scrivano <[EMAIL PROTECTED]> > Date: Fri, 11 Apr 2008 23:45:02 +0200 > > Other systems like scons already support this feature and it would be > great to have it for GNU Make too. > > I attached a patch against the current CVS to add --use-checksum to > GNU Make, it is just a pro

GNU make to consider files checksum

2008-04-12 Thread Giuseppe Scrivano
Hello, I could find on this ML archives only a thread about this subject: to consider the file checksum instead of the timestamp. Other systems like scons already support this feature and it would be great to have it for GNU Make too. I attached a patch against the current CVS to add --use-checks