Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions buildenv
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# bump: m4-version /M4_VERSION="(.*)"/ https://ftp.gnu.org/gnu/m4/|re:/m4-([\d.]+).tar.gz/$1/|semver:*
M4_VERSION="1.4.19"
M4_VERSION="1.4.21"

export ZOPEN_BUILD_LINE="STABLE"

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="make texinfo coreutils"
export ZOPEN_DEV_URL="git://git.savannah.gnu.org/m4.git"
export ZOPEN_DEV_DEPS="check_clang git make m4 help2man perl texinfo xz autoconf automake gettext rsync patch gzip tar gperf sed grep libtool autoconf zoslib"
export ZOPEN_DEV_BRANCH="branch-1.4"
Expand Down
5 changes: 0 additions & 5 deletions stable-patches/PR1/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions stable-patches/PR1/include/fcntl.h

This file was deleted.

3 changes: 0 additions & 3 deletions stable-patches/PR1/include/getopt.h

This file was deleted.

3 changes: 0 additions & 3 deletions stable-patches/PR1/include/glthread/thread.h

This file was deleted.

3 changes: 0 additions & 3 deletions stable-patches/PR1/include/paths.h

This file was deleted.

3 changes: 0 additions & 3 deletions stable-patches/PR1/include/sys/bitypes.h

This file was deleted.

3 changes: 0 additions & 3 deletions stable-patches/PR1/include/sys/cdefs.h

This file was deleted.

3 changes: 0 additions & 3 deletions stable-patches/PR1/include/sys/param.h

This file was deleted.

3 changes: 0 additions & 3 deletions stable-patches/PR1/include/sys/random.h

This file was deleted.

5 changes: 0 additions & 5 deletions stable-patches/PR1/include/sys/single_threaded.h

This file was deleted.

3 changes: 0 additions & 3 deletions stable-patches/PR1/include/xlocale.h

This file was deleted.

55 changes: 0 additions & 55 deletions stable-patches/PR2/builtin.c.patch

This file was deleted.

22 changes: 0 additions & 22 deletions stable-patches/PR2/canonicalize-lgpl.c.patch

This file was deleted.

13 changes: 0 additions & 13 deletions stable-patches/PR2/configure.patch

This file was deleted.

4 changes: 0 additions & 4 deletions stable-patches/PR3/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions stable-patches/PR3/m4.texi.gitpatch

This file was deleted.

7 changes: 0 additions & 7 deletions stable-patches/PR2/README.md → stable-patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,3 @@ builtin.c.patch
going to be written to later as binary - this seems the lesser of two evils but needs to be
investigated.

canonicalize-lgpl.c.patch
- on z/OS, the __stat macro is defined and this causes a collision with the __stat macro
used in this file. The fix is to use a different macro name that doesn't collide, so __gplstat
was chosen.

configure.patch
- there is a typo in the argument definition of 'int main' - argv type is `char**` not `char*`
36 changes: 36 additions & 0 deletions stable-patches/builtin.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff --git a/src/builtin.c b/src/builtin.c
index 514e11b..827768d 100644
--- a/src/builtin.c
+++ b/src/builtin.c
@@ -30,6 +30,7 @@
#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.


#define ARG(i) (argc > (i) ? TOKEN_DATA_TEXT (argv[i]) : "")
#define ARGLEN(i) (argc > (i) ? TOKEN_DATA_LEN (argv[i]) : 0)
@@ -1068,6 +1069,11 @@ m4_esyscmd (struct obstack *obs, int argc, token_data **argv)
close (fd);
return;
}
+#ifdef __MVS__
+ #if (__CHARSET_LIB == 1)
+ __chgfdccsid(fileno(pin), 819);
+ #endif
+#endif
while (1)
{
size_t avail = obstack_room (obs);
@@ -1473,6 +1479,11 @@ mkstemp_helper (struct obstack *obs, const char *me, const char *pattern,
}
else
{
+#ifdef __MVS__
+ #if (__CHARSET_LIB == 1)
+ __chgfdccsid(fd, 819);
+ #endif
+#endif
close (fd);
/* Remove NUL, then finish quote. */
obstack_blank_fast (obs, -1);
Loading