Skip to content

Update m4-version to 1.4.21 from 1.4.19#45

Merged
sachintu47 merged 4 commits intomainfrom
bump-m4-version-1.4.21
Apr 23, 2026
Merged

Update m4-version to 1.4.21 from 1.4.19#45
sachintu47 merged 4 commits intomainfrom
bump-m4-version-1.4.21

Conversation

@zosopentoolsmain
Copy link
Copy Markdown

No description provided.

@sachintu47
Copy link
Copy Markdown
Member

augment review

@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented Mar 10, 2026

🤖 Augment PR Summary

Summary: Updates the port to track the GNU m4 1.4.21 stable release and refreshes the z/OS-specific stable patch set.

Changes:

  • Bumped M4_VERSION from 1.4.19 to 1.4.21 and updated the stable download URL accordingly.
  • Adjusted STABLE build dependencies (notably adding texinfo and coreutils).
  • Removed the prior “PR1” header-shim include files previously carried under stable-patches/PR1/include.
  • Removed older stable patch files (e.g., prior configure/canonicalize/doc patches) and consolidated to a new stable-patches/builtin.c.patch.
  • Updated the stable builtin.c patch to tag file descriptors as ASCII on z/OS using __chgfdccsid (via <zos.h>) for child I/O and temporary files.
  • Moved/pruned stable patch documentation by renaming stable-patches/PR2/README.md to stable-patches/README.md and dropping notes for removed patches.

Technical Notes: The stable patch set now depends on z/OS charset tagging support (__CHARSET_LIB) and uses <zos.h>/__chgfdccsid to ensure ASCII tagging when running child processes and creating temporary files.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 3 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Comment thread buildenv Outdated

export ZOPEN_STABLE_URL="https://ftp.gnu.org/gnu/m4/m4-${M4_VERSION}.tar.gz"
export ZOPEN_STABLE_DEPS="curl gzip make m4"
export ZOPEN_STABLE_DEPS="curl gzip make texinfo coreutils"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZOPEN_STABLE_DEPS no longer includes anything that would obviously provide <zos.h>, but the STABLE patch set now includes stable-patches/builtin.c.patch which adds that header. Can you confirm the STABLE build environment reliably has the needed header (e.g., via zoslib) so the build won’t fail on missing includes?

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

@@ -1,9 +0,0 @@
#ifndef __AUTOTOOL_FCNTL__
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR removes the PR1 header-shim includes, but buildenv’s STABLE path still sets -I${ZOPEN_ROOT}/patches/PR1/include in ZOPEN_EXTRA_CFLAGS. Can you confirm the STABLE build no longer depends on that include directory (or that it’s still generated elsewhere), otherwise headers may regress or the include path may go stale?

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

#include "regex.h"
#include "spawn-pipe.h"
#include "wait-process.h"
+#include <zos.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stable-patches/builtin.c.patch introduces an unconditional #include <zos.h> in the upstream source. Is it guaranteed that this patch is only applied/compiled in environments where zos.h exists (and not, e.g., during any non-z/OS validation builds), since the include isn’t guarded by __MVS__?

Severity: low

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Removed 'curl' and 'gzip' from stable dependencies.

Signed-off-by: Sachin <32639496+sachintu47@users.noreply.github.com>
@sachintu47 sachintu47 requested a review from HarithaIBM April 23, 2026 05:38
Copy link
Copy Markdown
Member

@HarithaIBM HarithaIBM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sachintu47 sachintu47 merged commit b693aab into main Apr 23, 2026
1 of 2 checks passed
@sachintu47 sachintu47 deleted the bump-m4-version-1.4.21 branch April 23, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants