You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the output of any *.in file is rewritten every time the configure script runs, which means if the Makefile has dependencies on any of the output files, those dependents get rebuilt even though nothing will change afterward.
I propose that the piece of autosetup that writes these files out change so that:
It writes the output of substituting variables into foo.in to foo.in.tmp instead of to foo.
If foo doesn't exist yet, rename foo.in.tmp to foo.
If the file size of foo is the same as foo.in.tmp, do a byte-by-byte comparison: if they are the same, then remove foo.in.tmp, else continue to case 4.
Remove foo and rename foo.in.tmp to foo: the file contents differ.
I'm willing to do this myself, and I'm just about annoyed enough by the needless rebuilds to do it soon, but I thought I'd file it in case you wanted to tackle it yourself. I'll be more than happy to just pull the result into my package. :)
EDIT: It would also be nice if the Created foo from foo.in message output by autosetup would change to Updated foo from foo.in in case 4 above and to Left foo alone; unchanged in the "then" branch of case 3 above.
The text was updated successfully, but these errors were encountered:
Currently, the output of any *.in file is rewritten every time the configure script runs, which means if the Makefile has dependencies on any of the output files, those dependents get rebuilt even though nothing will change afterward.
I propose that the piece of autosetup that writes these files out change so that:
foo.in
tofoo.in.tmp
instead of tofoo
.foo
doesn't exist yet, renamefoo.in.tmp
tofoo
.foo
is the same asfoo.in.tmp
, do a byte-by-byte comparison: if they are the same, then removefoo.in.tmp
, else continue to case 4.foo
and renamefoo.in.tmp
tofoo
: the file contents differ.I'm willing to do this myself, and I'm just about annoyed enough by the needless rebuilds to do it soon, but I thought I'd file it in case you wanted to tackle it yourself. I'll be more than happy to just pull the result into my package. :)
EDIT: It would also be nice if the
Created foo from foo.in
message output byautosetup
would change toUpdated foo from foo.in
in case 4 above and toLeft foo alone; unchanged
in the "then" branch of case 3 above.The text was updated successfully, but these errors were encountered: