Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3] package/dash: fix build failure due to wchar
@ 2025-12-29  9:40 Giulio Benetti
  2026-02-04 17:00 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Giulio Benetti @ 2025-12-29  9:40 UTC (permalink / raw)
  To: buildroot; +Cc: 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.

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

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

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
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(-)

diff --git a/package/dash/Config.in b/package/dash/Config.in
index b816ac7837..3573a40aa3 100644
--- a/package/dash/Config.in
+++ b/package/dash/Config.in
@@ -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
diff --git a/system/Config.in b/system/Config.in
index 0652b94a3b..68e76ccc14 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -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
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH v3] package/dash: fix build failure due to wchar
  2025-12-29  9:40 [Buildroot] [PATCH v3] package/dash: fix build failure due to wchar Giulio Benetti
@ 2026-02-04 17:00 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-02-04 17:00 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: buildroot

On Mon, Dec 29, 2025 at 10:40:10AM +0100, Giulio Benetti wrote:
> 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/
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

Thanks a lot, applied!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-04 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-29  9:40 [Buildroot] [PATCH v3] package/dash: fix build failure due to wchar Giulio Benetti
2026-02-04 17:00 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox