Skip to contentSkip to conversation

package/dash: fix build failure due to wchar

PATCH Superseded Giulio Benetti 2 participants 3 messages Dec 27, 2025 – Dec 29, 2025

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

[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

---
 package/dash/Config.in | 6 ++++++
 1 file changed, 6 insertions(+)
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
Signature · 6 lines
2.47.3

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

Hi Giulio,

Thanks for the updated patch.

Quoted 22 lines · Giulio Benetti

Since commit [1] package dash requires wchar so let's depend on it to fix build failure.

[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

---
 package/dash/Config.in | 6 ++++++
 1 file changed, 6 insertions(+)
package/dash/Config.in +0 -0
index b816ac7837..3573a40aa3 100644

package/dash/Config.in config BR2_PACKAGE_DASH · line 5

Quoted 4 lines
package/dash/Config.in +1 -0
@@ -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

The dash package is selected here:
https://gitlab.com/buildroot.org/buildroot/-/blob/2025.11/system/Config.in#L417
So this new dependency should also be propagated there.

This introduce a new problem:
Dash is currently the default shell when Busybox is not selected. See:
https://gitlab.com/buildroot.org/buildroot/-/blob/2025.11/system/Config.in#L402

This creates a new corner case: which shell should we select by default when Busybox is not selected and the toolchain does not support wchar.

We could, for example, switch to another shell supporting that case (e.g. Bash), or force Busybox shell in that specific case. I would be happy to have suggestions from other maintainers/users on that topic.

Quoted 13 lines
package/dash/Config.in +5 -1
 	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
--
Quoted 1 line

2.47.3

Best regards,

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

#2 lore raw

Hi Julien,

Quoted 22 lines · Julien Olivain

Hi Giulio,

Thanks for the updated patch.

Quoted 17 lines · Giulio Benetti

Since commit [1] package dash requires wchar so let's depend on it to fix build failure.

[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
---
 package/dash/Config.in | 6 ++++++

 1 file changed, 6 insertions(+)
Quoted 13 lines
Quoted 9 lines
package/dash/Config.in +0 -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

The dash package is selected here:
https://gitlab.com/buildroot.org/buildroot/-/blob/2025.11/system/ Config.in#L417 So this new dependency should also be propagated there.

just updated

Quoted 4 lines

This introduce a new problem:
Dash is currently the default shell when Busybox is not selected. See:
https://gitlab.com/buildroot.org/buildroot/-/blob/2025.11/system/ Config.in#L402

I see,

Quoted 7 lines

This creates a new corner case: which shell should we select by default when Busybox is not selected and the toolchain does not support wchar.

We could, for example, switch to another shell supporting that case (e.g. Bash), or force Busybox shell in that specific case. I would be happy to have suggestions from other maintainers/users on that topic.

I'd personally go with Bash. I add this change to the v3 patch too.

Best regards
Giulio

Quoted 18 lines
Quoted 15 lines

     help
       DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as possible. It does this without

package/dash/Config.in +0 -0
@@ -10,3 +11,8 @@ config BR2_PACKAGE_DASH

       for most tasks.

       http://gondor.apana.org.au/~herbert/dash

package/dash/Config.in +5 -0
+
+comment "dash needs a toolchain w/ wchar"
+    depends on BR2_USE_MMU
+    depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+    depends on !BR2_USE_WCHAR
Signature · 1 line
2.47.3

Best regards,

Quoted 1 line

Julien.

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