gawk: Update to ver5sion 5.4.1

Message ID 20260724174412.3827472-15-adolf.belka@ipfire.org
State New
Headers
Series gawk: Update to ver5sion 5.4.1 |

Commit Message

Adolf Belka 24 Jul 2026, 5:44 p.m. UTC
- Update from version 5.3.2 to 5.4.1
- Update of rootfile
- Changelog
5.4.1
1. A performance problem in PMA with backing store files 1G or more in
   size has been fixed, by disabling assertions in support/pma.c.
2. A bug in gensub() when using MinRX has been fixed.
3. All files that referred to the FSF's old address have been revised.
4. After careful review of the POSIX standard and how MinRX handles
   matching when ignoring case, it was decided that the way it worked
   was already correct, even for cases where one character can have
   multiple alternative case variants. README_d/README.matchers has
   been updated, and several new tests for this issue have been added
   to the test suite.
5. Unary plus and minus now force their operands to be numeric.
6. The intdiv extension has been in the distribution for several years,
   but was lacking both a man page and a description in the manual.
   These flaws have been corrected.
7. The Georgian translation (ka.po) was accidentally disabled. It's now
   enabled, and also updated.
8. Parse time division by zero is no longer a fatal error, but rather
   a lint warning.  Division by zero at runtime remains fatal.
9. Some subtle issues with respect to formatting numeric fields have
   been fixed.
10. The manual now states that contributions of code created by LLMs won't
    be accepted.
11. As usual, a number of small bugs have been fixed; see the ChangeLog
    for the details.
5.4.0
1. This release now uses Mike Haertel's MinRX regular expression matcher
   as the default regexp engine. The old regex and dfa engines are still
   available. More detail is available in the manual, and in the file
   README_d/README.matchers. At the very least, read that file!
2. The manual, in the Bugs section, now makes it explicit that
   (a) Ad hominem attacks on the lists will not be tolerated, and
   (b) Discussion of proprietary software is strongly discouraged.
   Repeated offenses are grounds for being banned from the lists.
3. There is now a new directive, @nsinclude, which works like @include
   but does not reset the namespace for the included file to "awk". See
   the manual for details.
4. When using lshift() or rshift() and attempting to shift by as many
   or more bits than in a uintmax_t, gawk returns zero, instead of
   whatever the C compiler and hardware might have done.
5. Gawk's use of persistent memory has changed somewhat:
   A. Gawk now stores additional meta-information in the backing file.
      This means that if you have a backing file with important data
      in it, you should dump the data to a text file using the old version,
      create a new backing file, and then read your data back in with
      the new version, to a *brand new* backing file.
   B. Gawk generates a warning if the version of gawk saved in the backing
      file doesn't match that of the current running gawk.
   C. It's now possible to use persistent memory and dynamic extensions
      without problems. Gawk notices if an extension is being loaded from
      a different path than what was first used and produces a fatal error
      in this case.
6. The ordchr extension now supports multibyte / wide characters.
7. Per the 2024 POSIX standard, `length(array)' is no longer an extension,
   but a regular feature.  Thus --posix no longer rejects it and --lint
   no longer warns about it.
8. The --traditional option has been rationalized to bring gawk into
   sync with BWK awk. It no longer affects the return code from system(),
   and it no longer prevents using a regexp for RS. Internally, the
   code was cleaned up some as well.
9. Assertions in the C code are now enabled.  To disable them, manually
   edit the various Makefiles after running configure and before
   running make. You will need to add -DNDEBUG to the CFLAGS variable.
10. PMA should now work on OpenBSD 7, FreeBSD 12 - 16, NetBSD 10 and 11,
    and MidnightBSD 3 and 4.
11. Hexadecimal floating-point values may now be used in program source code,
    with strtonum(), and with the -n/--non-decimal-data option.  See the
    manual for details.
12. A large number of small "replacement" files for standard functions
    have been removed. These functions are now so standard that we
    simply expect them to always be available. This simplifies the
    distribution and the code maintenance.
13. Support for UDP in gawk's networking support is now obsolete.
    It never worked very well. It will be removed in version 6.0.
    Gawk issues a warning when attempting to use it.
14. Reading regular disk input files should be somewhat faster now,
    since gawk no longer checks for timeouts on such files.  On one
    very large file, gawk '{ print }' saw approximately a 9% speedup.
15. The MinGW port of gawk for MS-Windows now supports UTF-8 encoded
    non-ASCII text when the console window where gawk runs uses the
    Windows codepage 65001 for output, even if the system-wide locale
    specifies another codepage.
    Similarly, the Cygwin port now also fully supports UTF-8.
16. There is a new option to configure: --enable-O3.  This causes gcc to
    use -O3 instead of -O2 when compiling gawk.  This is not the default
    because experience in some projects has shown (sadly) that -O3 can cause
    bugs.
17. There is a new translation: Arabic. The .gmo files for the ca, da, fi,
    ja, ka, ms, and vi translations are no longer built or included in
    the distribution, as those translations have gone too long without
    being updated.  The .po files remain in the distribution, should
    any volunteers wish to come forward to update them.
18. OpenVMS support has been updated. This release builds on
    Alpha, Itanium and x86_64.
19. As usual, a number of small bugs have been fixed; see the ChangeLog
    for the details.
5.3.x
1. The Hebrew translation has been revived.
2. All non-standard variables are now not installed for --traditional
   and --posix.
3. It's been discovered that persistent memory and dynamic extensions don't mix.
   For now, trying this combination produces a fatal error. It may one day
   get fixed. Or, it may not.
4. A bug in the API has been fixed whereby using a numeric index to set an
   array element will work. As a result, the API minor version was increased to 1.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/gawk | 4 +++-
 lfs/gawk                     | 6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)
  

Patch

diff --git a/config/rootfiles/common/gawk b/config/rootfiles/common/gawk
index 2d4b162e7..c84e07061 100644
--- a/config/rootfiles/common/gawk
+++ b/config/rootfiles/common/gawk
@@ -1,6 +1,6 @@ 
 usr/bin/awk
 usr/bin/gawk
-usr/bin/gawk-5.3.2
+usr/bin/gawk-5.4.1
 usr/bin/gawkbug
 usr/etc/profile.d
 usr/etc/profile.d/gawk.csh
@@ -61,6 +61,7 @@  usr/lib/gawk/time.so
 #usr/share/info/gawk_process-flow.png
 #usr/share/info/gawk_statist.jpg
 #usr/share/info/gawkinet.info
+#usr/share/info/gawknotes.info
 #usr/share/info/gawkworkflow.info
 #usr/share/info/pm-gawk.info
 #usr/share/man/man1/gawk.1
@@ -70,6 +71,7 @@  usr/lib/gawk/time.so
 #usr/share/man/man3/fnmatch.3am
 #usr/share/man/man3/fork.3am
 #usr/share/man/man3/inplace.3am
+#usr/share/man/man3/intdiv.3am
 #usr/share/man/man3/ordchr.3am
 #usr/share/man/man3/readdir.3am
 #usr/share/man/man3/readfile.3am
diff --git a/lfs/gawk b/lfs/gawk
index bd61298bb..1f2ab2290 100644
--- a/lfs/gawk
+++ b/lfs/gawk
@@ -1,7 +1,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2025  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2026  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -25,7 +25,7 @@ 
 
 include Config
 
-VER        = 5.3.2
+VER        = 5.4.1
 
 THISAPP    = gawk-$(VER)
 DL_FILE    = $(THISAPP).tar.xz
@@ -49,7 +49,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = 8536777bb45c63d737ef08b3f1b98285cb29ec54400e35b2139c2bc66b464e3ec4950274614d95d94dc7eae18c57333b7c30a44d993855258155fc82b749042a
+$(DL_FILE)_BLAKE2 = 8bd7913c268a66e3f9eca6bed8d7b8fe23c75148c932d186c5e35429dc12f331f960e0fbb5d62d4675ff47f369f63c92db5b3214303edab3a868f0071dd0c4c1
 
 install : $(TARGET)