diff options
-rw-r--r-- | NEWS | 10 | ||||
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | lib/Autom4te/FileUtils.pm | 5 |
3 files changed, 16 insertions, 0 deletions
@@ -3,6 +3,10 @@ GNU Autoconf NEWS - User visible changes. * Noteworthy changes in release ?.? (????-??-??) [?] ** Backward incompatibilities + +*** Autoconf now requires perl 5.8 (2002) or later. + Generated 'configure' scripts continue to run without perl. + ** New features ** Obsolete features and new warnings @@ -15,6 +19,12 @@ GNU Autoconf NEWS - User visible changes. ** Notable bug fixes +*** Autoconf caches now use finer-grained timestamps. + + Autoconf now uses floating-point numbers rather than integers to + represent cache file timestamps, thus avoiding some problems where + automake incorrectly decides not to regenerate stale caches. + * Noteworthy changes in release 2.71 (2021-01-28) [stable] ** Bug fixes, including: @@ -33,6 +33,7 @@ Anaïs Bouque anais.bouque@fr.thalesgroup.com Anders Kaseorg andersk@MIT.EDU Andreas Buening andreas.buening@nexgo.de Andreas Jaeger aj@suse.de +Andreas K. Hüttel dilfridge@gentoo.org Andreas Schott schott@rzg.mpg.de Andreas Schwab schwab@linux-m68k.org Andreas Waechter andreasw@watson.ibm.com diff --git a/lib/Autom4te/FileUtils.pm b/lib/Autom4te/FileUtils.pm index 27a5fd91..60b66cd6 100644 --- a/lib/Autom4te/FileUtils.pm +++ b/lib/Autom4te/FileUtils.pm @@ -119,6 +119,11 @@ sub mtime ($) $atime,$mtime,$ctime,$blksize,$blocks) = stat ($file) or fatal "cannot stat $file: $!"; + # Unfortunately Time::HiRes converts timestamps to floating-point, and the + # rounding error can be several nanoseconds for circa-2021 timestamps. + # Perhaps some day Perl will support accurate file timestamps. For now, do + # the best we can without going outside Perl. + return $mtime; } |