./lang/gawk, GNU awk

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ] [ Image Add to tracker ]


Branch: CURRENT, Version: 5.4.0, Package name: gawk-5.4.0, Maintainer: bouyer

The GNU AWK utility, a pattern scanning and processing tool


Required to run:
[math/mpfr] [devel/gmp] [devel/readline]

Required to build:
[pkgtools/cwrappers]

Package options: nls, readline

Master sites: (Expand)

Filesize: 3714.137 KB

Version history: (Expand)


CVS history: (Expand)


   2026-02-23 14:30:37 by Thomas Klausner | Files touched by this commit (6) | Package updated
Log message:
gawk: update to 5.4.0.

Remove pkgsrc patch chunk changing 'ls -f' to 'ls -U', which
breaks the test on NetBSD.

Changes from 5.3.x to 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.
   2025-09-28 13:37:33 by Ryo ONODERA | Files touched by this commit (3)
Log message:
lang/gawk: Update to 5.3.2

Changelog:
Changes from 5.3.1 to 5.3.2
---------------------------

1. The pretty printer now produces fewer spurious newlines; at the
   outermost level it now adds newlines between block comments and
   the block or function that follows them. The extra final newline
   is no longer produced.

2. OpenVMS 9.2-2 x86_64 is now supported.

3. On Linux and macos systems, the -no-pie linker flag is no longer required.
   PMA now works on macos systems with Apple silicon, and not just
   Intel systems.

4. Still more subtle issues related to uninitialized array elements have
   been fixed.

5. Associative arrays should now not grow quite as fast as they used to.

6. The code and documentation are now consistent with each other with
   respect to path searching and adding .awk to the filename. Both
   are always done, even with --posix and --traditional.

7. As usual, there have been several minor code cleanups and bug fixes.
   See the ChangeLog for details.

Changes from 5.3.0 to 5.3.1
---------------------------

1. More subtle issues related to uninitialized array elements have
   been fixed.

2. A number of bugs in the debugger related to handling of arrays
   have been fixed.

3. Some subtle bugs in the API have been fixed.

4. Use of MPFR is now possible again on 32-bit Power PC Mac systems.

5. Race conditions around broken pipes for system() and read and write
   pipes should now be closed off.

6. Support for OSF/1 has been removed.

7. The never-documented --nostalgia option has been removed. It was
   causing bug reports.

8. The implementation of printf/sprintf has been thoroughly reworked
   in order to make the code more maintainable and to fix a goodly
   number of corner cases.

9. As usual, there have been several minor code cleanups and bug fixes.
   See the ChangeLog for details.
   2025-03-30 23:10:49 by Thomas Klausner | Files touched by this commit (100)
Log message:
*: remove MirBSD support
   2024-05-01 22:02:15 by Aleksey Cheusov | Files touched by this commit (3)
Log message:
Add option "nls" enabled by default
   2023-11-07 10:17:20 by Thomas Klausner | Files touched by this commit (3) | Package updated
Log message:
gawk: update to 5.3.0.

Changes from 5.2.x to 5.3.0
---------------------------

1. Infrastructure changes: Removed the use of libsigsegv. The
   value-add was never very much and it caused problems in some
   environments.

2. In keeping with new features in BWK awk, gawk now has built-in
   CSV file parsing. The behavior is intended to be identical to
   that of the "One True AWK" when --csv is applied. See the
   manual for details.

3. Also in keeping with BWK awk, gawk now supports a new \u escape
   sequence. This should be followed by 1-8 hexadecimal digits. The
   given code point is converted to its corresponding multibyte encoding
   for storage inside gawk. See the manual.

4. If PROCINFO["BUFFERPIPE"] exists, then pipe output is buffered.
   You can also use PROCINFO["command", "BUFFERPIPE"]. See \ 
the manual
   for details.

5. Because of the additional `do_csv' variable in the API, which breaks
   binary compatibility, the API major version was updated to 4 and
   the minor version was reset to zero.  The API remains source code
   compatible; that is, existing extensions should only require recompilation.

6. The manual now requires Texinfo 7.1 and its texinfo.tex for formatting.
   As a result, we no longer need to pre-process it, removing the need
   for gawktexi.in and leaving just gawk.texi.

7. And of course, there have been several minor code cleanups and bug fixes.
   See the ChangeLog for details.

Changes from 5.2.2 to 5.2.x
---------------------------

1. The readdir extension has been updated with additonal code and
   features, see the manual or its man page. As a result, the
   readdir_test.c extension has been removed.

2. We have a new translation: Ukranian.

3. Several subtle issues related to null regexp matches around
   multibyte characters have been fixed.
   2023-05-16 22:31:00 by Thomas Klausner | Files touched by this commit (6) | Package updated
Log message:
gawk: update to 5.2.2.

Changes from 5.2.1 to 5.2.2
---------------------------

1. Infrastructure upgrades: makeinfo 7.0.1 must be used to format
   the manual.  As a result, the manual can also now be formatted
   with LaTeX by running it through `makeinfo --latex'.

2. Gawk no longer builds an x86_64 executable on M1 macOS systems.
   This means that PMA is unavailable on those systems.

3. Gawk will now diagnose if a heap file was created with a different
   setting of -M/--bignum than in the current invocation and exit with
   a fatal message if so.

4. Gawk no longer "leaks" its free list of NODEs in the heap file, \ 
resulting
   in much more efficient usage of persistent storage.

5. PROCINFO["pma"] exists if the PMA allocator is compiled into gawk.
   Its value is the PMA version.

6. The time extension is no longer deprecated. The strptime() function
   from gawkextlib's timex extension has been added to it.

7. Better information is passed to input parsers for when they want to
   decide whether or not to take control of a file. In particular, the
   readdir extension is simplified for Windows because of this.

8. The various PNG files are now installed for Info and HTML. The
   images files now have gawk_ prefixed names to avoid any conflicts
   with other installed PNG file names.

9. As usual, there have been several minor code cleanups and bug fixes.
   See the ChangeLog for details.
   2022-12-05 11:17:48 by Jonathan Perkin | Files touched by this commit (3)
Log message:
gawk: Fix build on Darwin/aarch64.
   2022-11-28 00:11:29 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
gawk: update to 5.2.1.

Changes from 5.2.0 to 5.2.1
---------------------------

1. Infrastructure upgrades: PMA version Avon 8.

2. Issues related to the sign of NaN and Inf values on RiscV have
   been fixed; gawk now gives identical results on that platform as
   it does on others.

3. A few issues with the debugger have been fixed.

4. More subtle issues with untyped array elements being passed to
   functions have been fixed.

5. The rwarray extension's readall() function has had some bugs fixed.

6. The PMA allocator is now supported on FreeBSD, OpenBSD and Linux on S/390x.
   Is is now supported also on both Intel and M1 macOS systems.

7. There have been several minor code cleanups and bug fixes. See the
   ChangeLog for details.