From 1d9c9b973b451e7ae6a603176cc3d63e2b38fc92 Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Tue, 3 Mar 2026 19:21:23 -0500 Subject: [PATCH] fix(bash-4.4.23-1): update mkbuiltins prototypes and definitions for C23 --- .../fix-mkbuiltins-prototypes-c23.patch | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 steps-guix/bash-4.4.23-1/patches/fix-mkbuiltins-prototypes-c23.patch diff --git a/steps-guix/bash-4.4.23-1/patches/fix-mkbuiltins-prototypes-c23.patch b/steps-guix/bash-4.4.23-1/patches/fix-mkbuiltins-prototypes-c23.patch new file mode 100644 index 00000000..77a77109 --- /dev/null +++ b/steps-guix/bash-4.4.23-1/patches/fix-mkbuiltins-prototypes-c23.patch @@ -0,0 +1,87 @@ +SPDX-License-Identifier: GPL-3.0-or-later + +Fix mkbuiltins prototypes and definitions for C23-compatible compilers. + +--- bash-4.4/builtins/mkbuiltins.c ++++ bash-4.4/builtins/mkbuiltins.c +@@ -191,12 +191,12 @@ + void write_file_headers (); + void write_file_footers (); + void write_ifdefs (); +-void write_endifs (); +-void write_documentation (); ++void write_endifs (FILE *, char **); ++void write_documentation (FILE *, char **, int, int); + void write_longdocs (); + void write_builtins (); + +-int write_helpfiles (); ++int write_helpfiles (ARRAY *); + + void free_defs (); + void add_documentation (); +@@ -1018,8 +1018,7 @@ + static void memory_error_and_abort (); + + static char * +-xmalloc (bytes) +- int bytes; ++xmalloc (int bytes) + { + char *temp = (char *)malloc (bytes); + +@@ -1029,9 +1028,7 @@ + } + + static char * +-xrealloc (pointer, bytes) +- char *pointer; +- int bytes; ++xrealloc (char *pointer, int bytes) + { + char *temp; + +@@ -1375,9 +1372,7 @@ + If a define is preceded by an `!', then the sense of the test is + reversed. */ + void +-write_ifdefs (stream, defines) +- FILE *stream; +- char **defines; ++write_ifdefs (FILE *stream, char **defines) + { + register int i; + +@@ -1406,9 +1401,7 @@ + STREAM is the stream to write the information to. + DEFINES is a null terminated array of define names. */ + void +-write_endifs (stream, defines) +- FILE *stream; +- char **defines; ++write_endifs (FILE *stream, char **defines) + { + register int i; + +@@ -1433,10 +1426,7 @@ + internationalization (gettext) and the single-string vs. multiple-strings + issues. */ + void +-write_documentation (stream, documentation, indentation, flags) +- FILE *stream; +- char **documentation; +- int indentation, flags; ++write_documentation (FILE *stream, char **documentation, int indentation, int flags) + { + register int i, j; + register char *line; +@@ -1564,8 +1554,7 @@ + } + + int +-write_helpfiles (builtins) +- ARRAY *builtins; ++write_helpfiles (ARRAY *builtins) + { + char *helpfile, *bname; + FILE *helpfp;