unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: David Bremner <david@tethera.net>
Cc: 22213@debbugs.gnu.org
Subject: bug#22213: 24.5; please allow specification or elimination of timestamp in autoloads
Date: Sat, 19 Dec 2015 22:39:01 -0500	[thread overview]
Message-ID: <bs7fk9ssa2.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <874mfeusl9.fsf@zancas.localnet> (David Bremner's message of "Sat, 19 Dec 2015 15:49:22 -0400")

David Bremner wrote:

> It changes the problem to one of managing timestamps of files. This is
> probably easier than the current situation, but not completely trivial,
> since e.g. both git checkout and build systems that copy files will
> modify timestamps.

Point taken about VCS checkouts. Is that a case you need to deal with?
I was thinking of rebuilding a binary package from a given
source tarfile. But surely a build system must preserve source file
timestamps, for the sake of make?

Anyway, for an optional, non-default behaviour controlled by an
(env)var, two ideas come to mind.

1) Store no timestamp in the loaddefs file, and use the modtime of the
loaddefs file instead. In fact, I'm not sure why we don't just do it
this way...

The only reason I can come up with is parallel builds where the input
files may get modified during the time it takes to write the loaddefs
file. But if that could happen, then the generated loaddefs file might
be wrong, so the build system dependencies must be written to prevent this.
(Generated lisp files are almost always no-update-autoloads anyway.)
So after thinking about it, this explanation doesn't make sense.
So maybe I'm missing some other reason why it is how it is...?

2) Use md5sums instead of timestamps.
This would require the final "these files contained no autoloads"
section to be split up into one section per file, each with its own md5sum.
This method would slow down the (re)building of loaddefs (which is why
timestamps are used now most of the time). This would be more work to
implement, and make builds slower, but it would be strictly correct.


I'm guessing you don't care about in-place updating of a pre-existing
loaddefs after modifying the inputs, so 1) would be fine?





  reply	other threads:[~2015-12-20  3:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-19 18:52 bug#22213: 24.5; please allow specification or elimination of timestamp in autoloads David Bremner
2015-12-19 19:11 ` Glenn Morris
2015-12-19 19:49   ` David Bremner
2015-12-20  3:39     ` Glenn Morris [this message]
2015-12-21  0:38       ` Glenn Morris
2015-12-21  1:54         ` Stefan Monnier
2015-12-21  2:20           ` Glenn Morris
2015-12-21 15:59         ` Stefan Monnier
2016-01-07  7:42           ` Glenn Morris
2016-01-08  7:41             ` Stefan Monnier
2016-01-08 14:53               ` Drew Adams
2016-05-25 22:37               ` Glenn Morris
2015-12-21 12:28       ` David Bremner
2015-12-20  9:33     ` Philipp Stephani
2015-12-20  9:29 ` Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bs7fk9ssa2.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=22213@debbugs.gnu.org \
    --cc=david@tethera.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).