GNU bug report logs - #43532
[feature/native-comp] *.eln file name hashing, algorithm doesn't seem to play nice with NATIVE_FULL_AOT with self-contained builds

Previous Next

Package: emacs;

Reported by: Jim Myhrberg <contact <at> jimeh.me>

Date: Sun, 20 Sep 2020 13:04:01 UTC

Severity: normal

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


Message #143 received at 43532 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Whatson <whatson <at> gmail.com>
To: 43532 <at> debbugs.gnu.org,
	Andrea Corallo <akrl <at> sdf.org>
Cc: Andrew Whatson <whatson <at> gmail.com>
Subject: [PATCH] Fix timestamp check when loading from eln (bug #43532)
Date: Thu, 15 Oct 2020 16:52:51 +1000
	* src/lread.c (maybe_swap_for_eln): Allow eln files to have the
	same timestamp as their source file.
---
 src/lread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lread.c b/src/lread.c
index ea31131b75..ab16fdadb4 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1622,7 +1622,7 @@ maybe_swap_for_eln (Lisp_Object *filename, int *fd, struct timespec mtime)
 	  else
 	    {
 	      struct timespec eln_mtime = get_stat_mtime (&eln_st);
-	      if (timespec_cmp (eln_mtime, mtime) > 0)
+	      if (timespec_cmp (eln_mtime, mtime) >= 0)
 		{
 		  *filename = eln_name;
 		  emacs_close (*fd);
-- 
2.28.0





This bug report was last modified 4 years and 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.