Skip to contentSkip to conversation

package/bash: bump to v5.3

PATCH In review Joseph Kogut 2 participants 4 messages Oct 22, 2025 – Oct 31, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/bash: bump to v5.3

See the relevant announcement:
https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00005.html

Changes:
- Removed upstreamed multibyte compilation fix
- Rebased missing include patch that remains unmerged
- Fixed Upstream: checkpackage warning
- Removed build failure workarounds enforcing older C standard

---
Changes in v2:
- Removed Fixes: lines that are outdated [Julien]
- Removed build failure workaround [Julien]
- Removed outdated .checkpackageignore entries [Julien]
- Link to v1: https://lore.kernel.org/all/[email protected]/

---
 .checkpackageignore                                |  2 -
 ...01-input.h-add-missing-include-on-stdio.h.patch | 11 ++--
 ...-fix-compilation-for-non-multibyte-builds.patch | 63 ----------------------
 package/bash/bash.hash                             |  4 +-
 package/bash/bash.mk                               | 11 +---
 5 files changed, 9 insertions(+), 82 deletions(-)
.checkpackageignore +0 -2
index e8c97c2d63..7b56e4e6c1 100644
@@ -228,8 +228,6 @@ package/avahi/S05avahi-setup.sh lib_sysv.Indent lib_sysv.Variables
 package/avahi/S50avahi-daemon lib_sysv.Indent lib_sysv.Variables
 package/babeld/S50babeld Shellcheck lib_sysv.Indent lib_sysv.Variables
 package/babeltrace2/0001-configure-simplify-warning-flags-detection.patch lib_patch.Upstream
-package/bash/0001-input.h-add-missing-include-on-stdio.h.patch lib_patch.Upstream
-package/bash/0002-parse.y-fix-compilation-for-non-multibyte-builds.patch lib_patch.Upstream
 package/bc/0001-bc-use-MAKEINFO-variable-for-docs.patch lib_patch.Upstream
 package/bc/0002-notice-read-and-write-errors-on-input-and-output.patch lib_patch.Upstream
 package/bcache-tools/0001-Don-t-inline-crc64-for-gcc-5-compatability.patch lib_patch.Upstream
package/bash/0001-input.h-add-missing-include-on-stdio.h.patch +6 -5
index fd008e9472..14d01c18b0 100644
@@ -1,4 +1,4 @@
-From 4fa85c85b9a76afd3b19ed75bf17ccd2940f1f55 Mon Sep 17 00:00:00 2001
+From bb974701658ec88fe80357e58c44fd8df55aae77 Mon Sep 17 00:00:00 2001
 From: Fabrice Fontaine <[email protected]>
 Date: Sun, 16 Feb 2020 16:18:48 +0100
 Subject: [PATCH] input.h: add missing include on stdio.h
@@ -15,13 +15,14 @@ Fixes:
  - http://autobuild.buildroot.org/results/bfca306868df54c567215c45c8cdac838d02f567
 
 Signed-off-by: Fabrice Fontaine <[email protected]>
-[Upstream status: https://savannah.gnu.org/support/?110196]
+Upstream: https://savannah.gnu.org/support/?110196
+Signed-off-by: Joseph Kogut <[email protected]>
 ---
  input.h | 2 ++
  1 file changed, 2 insertions(+)
 
 diff --git a/input.h b/input.h
-index 6aef1269..08b0fdea 100644
+index 592b6cb9..21544df4 100644
 --- a/input.h
 +++ b/input.h
 @@ -21,6 +21,8 @@
@@ -32,7 +33,7 @@ index 6aef1269..08b0fdea 100644
 +
  #include "stdc.h"
  
- /* Function pointers can be declared as (Function *)foo. */
+ typedef int sh_cget_func_t (void);	/* sh_ivoidfunc_t */
 -- 
-2.24.1
+2.51.1
 
package/bash/0002-parse.y-fix-compilation-for-non-multibyte-builds.patch deleted +0 -63

63 lines not on this page · raw message

package/bash/bash.hash +2 -2
index c2fb1d38d4..35475d5194 100644
@@ -1,4 +1,4 @@
 # Locally calculated after checking pgp signature from
-# https://ftp.gnu.org/gnu/bash/bash-5.2.37.tar.gz.sig
-sha256  9599b22ecd1d5787ad7d3b7bf0c59f312b3396d1e281175dd1f8a4014da621ff  bash-5.2.37.tar.gz
+# https://ftp.gnu.org/gnu/bash/bash-5.3.tar.gz.sig
+sha256  0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba  bash-5.3.tar.gz
 sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING
package/bash/bash.mk +1 -10
index 7fb43c52c0..ed99bbadb2 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-BASH_VERSION = 5.2.37
+BASH_VERSION = 5.3
 BASH_SITE = $(BR2_GNU_MIRROR)/bash
 BASH_DEPENDENCIES = ncurses readline host-bison
 BASH_LICENSE = GPL-3.0+
@@ -26,15 +26,6 @@ BASH_CONF_ENV = \
 	bash_cv_func_sigsetjmp=present \
 	bash_cv_printf_a_format=yes
 
-# Can be dropped when bash is bumped to 5.3 or newer.
-ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_15),y)
-BASH_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu17"
-endif
-
-ifeq ($(BR2_HOST_GCC_AT_LEAST_15),y)
-BASH_CONF_ENV += CFLAGS_FOR_BUILD="$(HOST_CFLAGS) -std=gnu17"
-endif
-
 # The static build needs some trickery
 ifeq ($(BR2_STATIC_LIBS),y)
 BASH_CONF_OPTS += --enable-static-link

---
base-commit: e1ef4be70b601863949cccd4ec0d98ff19513cc3
change-id: 20251022-bash-5-3-c9bae058f7d1

Best regards,

Signature · 6 lines
Joseph Kogut <[email protected]>

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Joseph,

Thanks for this v2!

Quoted 10 lines · Joseph Kogut

See the relevant announcement:
https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00005.html

Changes:
- Removed upstreamed multibyte compilation fix
- Rebased missing include patch that remains unmerged
- Fixed Upstream: checkpackage warning
- Removed build failure workarounds enforcing older C standard

[...]

package/bash/bash.mk line 8

Quoted 11 lines
package/bash/bash.mk +1 -1
index 7fb43c52c0..ed99bbadb2 100644
@@ -4,7 +4,7 @@
 #
 
 ################################################################################
 
-BASH_VERSION = 5.2.37
+BASH_VERSION = 5.3

This new 5.3 version is introducing 3 build failures. See:
https://gitlab.com/jolivain/buildroot/-/pipelines/2114876146

For reference, the version 5.2.37 build correctly:
https://gitlab.com/jolivain/buildroot/-/pipelines/2114892967

Quoted 5 lines
package/bash/bash.mk +0 -0
 BASH_SITE = $(BR2_GNU_MIRROR)/bash
 BASH_DEPENDENCIES = ncurses readline host-bison

BASH_LICENSE = GPL-3.0+

package/bash/bash.mk +0 -0
@@ -26,15 +26,6 @@ BASH_CONF_ENV = \
 	bash_cv_func_sigsetjmp=present \

package/bash/bash.mk BASH_CONF_ENV = \ · line 36

Quoted 10 lines
package/bash/bash.mk +0 -8
 	bash_cv_printf_a_format=yes
 
-# Can be dropped when bash is bumped to 5.3 or newer.
-ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_15),y)
-BASH_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu17"
-endif
-
-ifeq ($(BR2_HOST_GCC_AT_LEAST_15),y)
-BASH_CONF_ENV += CFLAGS_FOR_BUILD="$(HOST_CFLAGS) -std=gnu17"
-endif

When host-gcc is >= 15 but target-gcc < 15, the build is failing because the buildconf.h (initially made for target) is reused for host. So we may need to keep this previous block setting CFLAGS_FOR_BUILD variable, after all.

package/bash/bash.mk BASH_CONF_ENV = \

Quoted 6 lines
package/bash/bash.mk +0 -2
-
 # The static build needs some trickery
 ifeq ($(BR2_STATIC_LIBS),y)
 BASH_CONF_OPTS += --enable-static-link
 
---

Could you have a look, please?

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Hi Julien,

Quoted 42 lines · Julien Olivain

Hi Joseph,

Thanks for this v2!

Quoted 10 lines · Joseph Kogut

See the relevant announcement:
https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00005.html

Changes:
- Removed upstreamed multibyte compilation fix
- Rebased missing include patch that remains unmerged
- Fixed Upstream: checkpackage warning
- Removed build failure workarounds enforcing older C standard

[...]

package/bash/bash.mk line 8

Quoted 11 lines
package/bash/bash.mk +1 -1
index 7fb43c52c0..ed99bbadb2 100644
@@ -4,7 +4,7 @@
 #
 
 ################################################################################
 
-BASH_VERSION = 5.2.37
+BASH_VERSION = 5.3

This new 5.3 version is introducing 3 build failures. See:
https://gitlab.com/jolivain/buildroot/-/pipelines/2114876146

For reference, the version 5.2.37 build correctly:
https://gitlab.com/jolivain/buildroot/-/pipelines/2114892967

Quoted 7 lines
package/bash/bash.mk +0 -0
 BASH_SITE = $(BR2_GNU_MIRROR)/bash
 BASH_DEPENDENCIES = ncurses readline host-bison

BASH_LICENSE = GPL-3.0+

package/bash/bash.mk +0 -0
@@ -26,15 +26,6 @@ BASH_CONF_ENV = \
      bash_cv_func_sigsetjmp=present \
      bash_cv_printf_a_format=yes
 
Quoted 14 lines

package/bash/bash.mk BASH_CONF_ENV = \ · line 36

Quoted 8 lines
package/bash/bash.mk +0 -8
-# Can be dropped when bash is bumped to 5.3 or newer.
-ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_15),y)
-BASH_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu17"
-endif
-
-ifeq ($(BR2_HOST_GCC_AT_LEAST_15),y)
-BASH_CONF_ENV += CFLAGS_FOR_BUILD="$(HOST_CFLAGS) -std=gnu17"
-endif

When host-gcc is >= 15 but target-gcc < 15, the build is failing because the buildconf.h (initially made for target) is reused for host. So we may need to keep this previous block setting CFLAGS_FOR_BUILD variable, after all.

It looks like we still need the HOST_GCC test, but not the TOOLCHAIN_GCC test? With both removed, I get 28/33 failures with test-pkg -a.

With just the toolchain check, I get 33/33 failures, and just the host check I get 3/33 failures. It looks like those three failures are still present even with both checks in place, so I'd say we still need the host check, but not the toolchain check.

My apologies for not running test-pkg before sending v2.

Quoted 5 lines
Quoted 5 lines
package/bash/bash.mk +0 -1
-
 # The static build needs some trickery
 ifeq ($(BR2_STATIC_LIBS),y)
 BASH_CONF_OPTS += --enable-static-link
Quoted 7 lines
Quoted 1 line

---

Could you have a look, please?

Best regards,

Julien.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Hello,

Quoted 65 lines · Joseph Kogut

Hi Julien,

Quoted 42 lines · Julien Olivain

Hi Joseph,

Thanks for this v2!

Quoted 10 lines · Joseph Kogut

See the relevant announcement:
https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00005.html

Changes:
- Removed upstreamed multibyte compilation fix
- Rebased missing include patch that remains unmerged
- Fixed Upstream: checkpackage warning
- Removed build failure workarounds enforcing older C standard

[...]

package/bash/bash.mk line 8

Quoted 11 lines
package/bash/bash.mk +1 -1
index 7fb43c52c0..ed99bbadb2 100644
@@ -4,7 +4,7 @@
 #
 
 ################################################################################
 
-BASH_VERSION = 5.2.37
+BASH_VERSION = 5.3

This new 5.3 version is introducing 3 build failures. See:
https://gitlab.com/jolivain/buildroot/-/pipelines/2114876146

For reference, the version 5.2.37 build correctly:
https://gitlab.com/jolivain/buildroot/-/pipelines/2114892967

Quoted 7 lines
package/bash/bash.mk +0 -0
 BASH_SITE = $(BR2_GNU_MIRROR)/bash
 BASH_DEPENDENCIES = ncurses readline host-bison

BASH_LICENSE = GPL-3.0+

package/bash/bash.mk +0 -0
@@ -26,15 +26,6 @@ BASH_CONF_ENV = \
      bash_cv_func_sigsetjmp=present \
      bash_cv_printf_a_format=yes
 
Quoted 14 lines

package/bash/bash.mk BASH_CONF_ENV = \ · line 36

Quoted 8 lines
package/bash/bash.mk +0 -8
-# Can be dropped when bash is bumped to 5.3 or newer.
-ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_15),y)
-BASH_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu17"
-endif
-
-ifeq ($(BR2_HOST_GCC_AT_LEAST_15),y)
-BASH_CONF_ENV += CFLAGS_FOR_BUILD="$(HOST_CFLAGS) -std=gnu17"
-endif

When host-gcc is >= 15 but target-gcc < 15, the build is failing because the buildconf.h (initially made for target) is reused for host. So we may need to keep this previous block setting CFLAGS_FOR_BUILD variable, after all.

It looks like we still need the HOST_GCC test, but not the TOOLCHAIN_GCC test? With both removed, I get 28/33 failures with test-pkg -a.

Quoted 19 lines

With just the toolchain check, I get 33/33 failures, and just the host check I get 3/33 failures. It looks like those three failures are still present even with both checks in place, so I'd say we still need the host check, but not the toolchain check.

My apologies for not running test-pkg before sending v2.

Quoted 12 lines

package/bash/bash.mk BASH_CONF_ENV = \

Quoted 6 lines
package/bash/bash.mk +0 -2
-
 # The static build needs some trickery
 ifeq ($(BR2_STATIC_LIBS),y)
 BASH_CONF_OPTS += --enable-static-link
 
---

Could you have a look, please?

Best regards,

Julien.

After digging into this some more, it seems the remaining three build failures were introduced by the new version. I was able to patch out one failure pretty easily, but there are a few additional problems that aren't as quick to resolve. This might need revisited after a few patches land.

Best,
Joseph
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot