all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* timestamp in "no autoloads" section of generated loaddefs.el
@ 2015-06-30  0:35 Glenn Morris
  2015-06-30 13:55 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2015-06-30  0:35 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel


The timestamp in the "files with no autoloads" section of a generated
loaddefs.el file is set to the time that the output was generated.
This is a nuisance for reproducible builds, because it obviously means
that the output file is never the same twice, even if the inputs are.

What do you think about changing that timestamp to "most recent
modification time of any of the files with no autoloads"?

This should cause no change in the time needed to generate the output
when the inputs haven't changed (the mod times are already checked
for every input file). It will cause the maximum possible change in time
when creating the loaddefs.el file from scratch. In testing, I could not
measure any difference in generation time for lisp/loaddefs.el.

That takes care of the reproducibility issue for files like
lisp/net/tramp-loaddefs.el and others.

For lisp/loaddefs.el, the file will still differ between successive
bootstraps of identical inputs, due to varying timestamps on generated
.el files. What do you think about skipping such files altogether when
scanning files for lisp/loaddefs.el? We know they will never contain
autoloads. We already skip such files in other place (via
custom-dependencies-no-scan-regexp and finder-no-scan-regexp).



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: timestamp in "no autoloads" section of generated loaddefs.el
  2015-06-30  0:35 timestamp in "no autoloads" section of generated loaddefs.el Glenn Morris
@ 2015-06-30 13:55 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2015-06-30 13:55 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

> What do you think about changing that timestamp to "most recent
> modification time of any of the files with no autoloads"?

That would be an obvious improvement, yes.  I used "time that the output
was generated" for expediency reasons.


        Stefan



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-30 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30  0:35 timestamp in "no autoloads" section of generated loaddefs.el Glenn Morris
2015-06-30 13:55 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.