From 1009bfa847b855dbc6718d9ec817fca3e8a76649 Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Tue, 3 Mar 2026 10:01:56 -0500 Subject: [PATCH] fix(bash-4.4.23-1): add C23 list function prototype patch and enable src_prepare default --- steps-guix/bash-4.4.23-1/pass1.sh | 4 ++++ .../fix-list-function-prototypes-c23.patch | 21 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 steps-guix/bash-4.4.23-1/patches/fix-list-function-prototypes-c23.patch diff --git a/steps-guix/bash-4.4.23-1/pass1.sh b/steps-guix/bash-4.4.23-1/pass1.sh index 35ff0d51..45a3f030 100644 --- a/steps-guix/bash-4.4.23-1/pass1.sh +++ b/steps-guix/bash-4.4.23-1/pass1.sh @@ -2,6 +2,10 @@ SEED_PREFIX="/bootstrap-seeds/bash-4.4.23-1" +src_prepare() { + default +} + src_configure() { ./configure \ --prefix="${SEED_PREFIX}" \ diff --git a/steps-guix/bash-4.4.23-1/patches/fix-list-function-prototypes-c23.patch b/steps-guix/bash-4.4.23-1/patches/fix-list-function-prototypes-c23.patch new file mode 100644 index 00000000..7649fe73 --- /dev/null +++ b/steps-guix/bash-4.4.23-1/patches/fix-list-function-prototypes-c23.patch @@ -0,0 +1,21 @@ +SPDX-License-Identifier: GPL-3.0-or-later + +Fix list function declarations to use proper prototypes for C23. + +--- bash-4.4/externs.h ++++ bash-4.4/externs.h +@@ -141,10 +141,10 @@ + /* Declarations for functions defined in list.c. */ + extern void list_walk __P((GENERIC_LIST *, sh_glist_func_t *)); + extern void wlist_walk __P((WORD_LIST *, sh_icpfunc_t *)); +-extern GENERIC_LIST *list_reverse (); +-extern int list_length (); +-extern GENERIC_LIST *list_append (); +-extern GENERIC_LIST *list_remove (); ++extern GENERIC_LIST *list_reverse __P((GENERIC_LIST *)); ++extern int list_length __P((GENERIC_LIST *)); ++extern GENERIC_LIST *list_append __P((GENERIC_LIST *, GENERIC_LIST *)); ++extern GENERIC_LIST *list_remove __P((GENERIC_LIST **, Function *, char *)); + + /* Declarations for functions defined in stringlib.c */ + extern int find_string_in_alist __P((char *, STRING_INT_ALIST *, int));