From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: timestamp in "no autoloads" section of generated loaddefs.el Date: Mon, 29 Jun 2015 20:35:13 -0400 Message-ID: <4f7fqmnida.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435625454 17941 80.91.229.3 (30 Jun 2015 00:50:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2015 00:50:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 30 02:50:54 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9jlF-0001NX-Sh for ged-emacs-devel@m.gmane.org; Tue, 30 Jun 2015 02:50:54 +0200 Original-Received: from localhost ([::1]:44518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9jlF-0000WM-1J for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2015 20:50:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9jl9-0000WF-Tb for emacs-devel@gnu.org; Mon, 29 Jun 2015 20:50:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9jl8-0008Jr-O3 for emacs-devel@gnu.org; Mon, 29 Jun 2015 20:50:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9jl5-00086Q-B4; Mon, 29 Jun 2015 20:50:43 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1Z9jW5-0002fD-Lr; Mon, 29 Jun 2015 20:35:13 -0400 X-Spook: Influenza Belknap Yemen IDEA Magnitude Consular JFK Storm X-Ran: V_'.d*|+*TA'EE&fKBY'!&*YI0nUXF`D|P'J.1~U{0&wq4]o_^{vqGmt#CTb!b2V{,i#!R X-Hue: black X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187657 Archived-At: 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).