Bugzilla Automation <[email protected]> has asked freebsd-desktop (Team)
<[email protected]> for maintainer-feedback:
Bug 297546: graphics/png 1.6.58 fails to be built with gawk 5.4.1
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297546



--- Description ---
graphics/png 1.6.58 build fails as attached when lang/gawk 5.4.1 is installed.
It is seccessfully built with lang/gawk 5.4.0 or with the system awk
(i.e. without gawk)
I confirmed this on both FreeBSD 15.0-RELEASE-p12 and 15.1-RELEASE-p2.

The problem can be avoided by just deinstalling gawk 5.4.1
temporarily when one needs to build png.
Or it can be avoided by modifying CMakeLists.txt not to use gawk.

*** CMakeLists.txt.orig Sat Aug 15 16:48:51 2026
--- CMakeLists.txt      Sat Aug 15 16:50:29 2026
***************
*** 433,439 ****
    # Find an AWK language processor.
    # Start with specific AWK implementations like gawk and nawk, which are
    # known to work with our scripts, then fall back to the system awk.
!   find_program(AWK NAMES gawk nawk awk)
    if(AWK)
      message(STATUS "Found AWK program: ${AWK}")
    else()
--- 433,439 ----
    # Find an AWK language processor.
    # Start with specific AWK implementations like gawk and nawk, which are
    # known to work with our scripts, then fall back to the system awk.
!   find_program(AWK NAMES nawk awk)
    if(AWK)
      message(STATUS "Found AWK program: ${AWK}")
    else()

Though these are not favorable solutions...

Reply via email to