Skip to contentSkip to conversation

package/dash: fix build failure due to wchar

PATCH In review Giulio Benetti 2 participants 2 messages Dec 29, 2025 – Feb 4

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/dash: fix build failure due to wchar

Since commit [1] package dash requires wchar so let's depend on it to fix build failure. Doing so makes default non-busybox shell dash to depend on wchar. This is too restrictive since this way wchar becomes mandatory, so let's switch default non-busybox shell to bash.

[1]:
https://git.kernel.org/pub/scm/utils/dash/dash.git/commit/?id=c0674f487c7aec2a3bdf6795cea7e60c9530c360

Fixes:
https://autobuild.buildroot.org/results/e9108ebd9fb8c471add1c5a7f581757175fa5f15/

---
V1->V2:
* fixed commit log and Config.in comment as suggested by Edgar Bonet V2->V3:
* fixed missing dependency and default non-busybox shell to Bash as suggested by Julien Olivain

---
 package/dash/Config.in | 6 ++++++
 system/Config.in       | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)
package/dash/Config.in +6 -0
index b816ac7837..3573a40aa3 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_DASH
 	bool "dash"
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	depends on BR2_USE_WCHAR
 	help
 	  DASH is a POSIX-compliant implementation of /bin/sh that
 	  aims to be as small as possible. It does this without
@@ -10,3 +11,8 @@ config BR2_PACKAGE_DASH
 	  for most tasks.
 
 	  http://gondor.apana.org.au/~herbert/dash
+
+comment "dash needs a toolchain w/ wchar"
+	depends on BR2_USE_MMU
+	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	depends on !BR2_USE_WCHAR
system/Config.in +2 -1
index 0652b94a3b..68e76ccc14 100644
@@ -399,7 +399,7 @@ config BR2_TARGET_GENERIC_ROOT_PASSWD
 
 choice
 	bool "/bin/sh"
-	default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
+	default BR2_SYSTEM_BIN_SH_BASH if !BR2_PACKAGE_BUSYBOX
 	help
 	  Select which shell will provide /bin/sh.
 
@@ -418,6 +418,7 @@ config BR2_SYSTEM_BIN_SH_DASH
 	bool "dash"
 	depends on BR2_USE_MMU # dash
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	depends on BR2_USE_WCHAR # dash
 	select BR2_PACKAGE_DASH
 
 config BR2_SYSTEM_BIN_SH_MKSH
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · Giulio Benetti

Since commit [1] package dash requires wchar so let's depend on it to fix build failure. Doing so makes default non-busybox shell dash to depend on wchar. This is too restrictive since this way wchar becomes mandatory, so let's switch default non-busybox shell to bash.

Quoted 7 lines

[1]:
https://git.kernel.org/pub/scm/utils/dash/dash.git/commit/?id=c0674f487c7aec2a3bdf6795cea7e60c9530c360

Fixes:
https://autobuild.buildroot.org/results/e9108ebd9fb8c471add1c5a7f581757175fa5f15/

Thanks a lot, applied!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot