diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-03-31 10:55:29 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-03-31 12:52:50 -0700 |
commit | 05e295b60cfdf378b7ed8c1f8563a5644d5d4689 (patch) | |
tree | 22fb83a627f9272b99cef309dd5d1dd470e72169 /NEWS | |
parent | 232cab527897bcdf4d55492d41af73d31905bda5 (diff) | |
download | autoconf-05e295b60cfdf378b7ed8c1f8563a5644d5d4689.tar.gz |
Go back to requiring only Perl 5.6+ for users
Commit 61901a1a14fd50c03cfb1529d091554376fef286 dated 2022-07-10
bumped the Perl requirement to 5.10 or later, because
commit 3a9802d60156809c139e9b4620bf04917e143ee2 dated 2021-08-31
added code using Time::HiRes’s ‘stat’ function, a feature
added in Perl 5.8.9+ or Perl 5.10+, and it was hard
to find Perl 5.8.9 hosts to test with. Also, requiring Perl 5.10
meant that we could then use operators like Digest::SHA, the // and
//= operators, the regexp \K escape, and ‘state’ variables.
However, that Time::HiRes code, which was taken from Automake, has
recently been made optional by Automake, and it now works again with
Perl 5.6. And Autoconf is not yet using any other post-5.6 feature,
except when developers run help-extract.pl (something Autoconf users
do not use). So relax the Autoconf user requirement back to 5.6 as it
was in Autoconf 2.71; although Autoconf developers will need 5.10 or
better, Autoconf users can get by with 5.6.
I ran into this problem when testing the Autoconf release candidate on
Solaris 10, which has Perl 5.8.4. Oracle says Solaris 10’s
end-of-life is January 2024, so it’s still (barely) a viable porting
target. Of course with Solaris 10 one must install a recent-enough
GNU m4, but adding a requirement to also install a recent-enough Perl
is a new barrier, and if it’s not needed then it might be better to
wait until it is needed (or until 2024 arrives).
* NEWS: Update news item about Perl 5.6 vs 5.10.
* README-hacking: Bump Perl recommendation to 5.10.
* build-aux/fetch.pl: Do not munge imported code to require 5.10.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -10,8 +10,15 @@ GNU Autoconf NEWS - User visible changes. means Autoconf no longer supports pre-1989 C compilers, as they do not support function prototypes. -*** Autoconf now requires perl 5.10 (2007) or later. - Generated 'configure' scripts continue to run without perl. +*** Autoconf developers now need Perl 5.10 (2007) or later. + Generated 'configure' scripts continue to run without Perl. + + Although Autoconf users still need only Perl 5.6 (2000) or later, + Perl 5.10 or later is recommended for users too, as it avoids some + trouble with files that have timestamps separated by less than 1 s. + Due to limitations in Perl's API this trouble is not entirely fixed + even with Perl 5.36, which cannot represent timestamps separated by + 238 ns or less, for circa 2023 timestamps on typical platforms. *** Autoconf now requires GNU M4 1.4.8 (2006) or later. Generated 'configure' scripts continue to run without M4. |