Skip to contentSkip to conversation

package/uutils-coreutils: new package

PATCH Superseded Alexander Shirokov 2 participants 14 messages Aug 12, 2025 – Feb 4

lore
Share & tools
lore
#0 lore raw

v6 cover package/uutils-coreutils: new package

Hello Everyone,

This patch series delivers uutils-coreutils, a reimplementation of the GNU coreutils in Rust.

uutils-coreutils are designed to be a drop-in replacement for GNU coreutils. They are already included in some Linux distributions. For example, uutils-coreutils package in Arch Linux or rust-coreutils package in Ubuntu.

So, on the one hand, they look good enough to be added. On the other, adding the utilities could help gain valuable experience, feedback, and improvements. This is especially important because running tools on embedded devices can highlight issues that are difficult to detect on general-purpose platforms. That's why these patches are here.

== Configuration

For now, I have configured all defaults to allow both uutils-coreutils and BusyBox to coexist. uutils attempts to avoid overwriting anything implicitly. Adding these utilities alongside the existing ones allows to run them on new platforms and collect information without breaking the existing setups.

It is also possible to change the defaults to overwrite existing utilities. This approach is useful for debugging and understanding the compatibility between the “old” and “new” tools. For example, to ensure that existing scripts work correctly with the new utilities. Such testing can be done step-by-step by replacing one tool at a time via the configuration.

== Tests

To make sure that uutils and the package are fine, I used two common
approaches: the native Buildroot tools and manual execution on images prepared by Buildroot.

The Buildroot tools:
- ./utils/check-package
- ./utils/test-pkg. See "test-pkg details"
- ./support/testing/run-tests with test cases: TestRust,TestRustBin, TestRustVendoring

I ran uutils-coreutils on the following platforms:
- Raspberry PI3 (based on raspberrypi3_defconfig)
- Orange PI Zero W2 (based on orangepi_zero2w_defconfig)
- Qemu aarch64 (based on qemu_aarch64_virt_defconfig)

== Changelog

v5->v6: 2025-08-12
- Added configuration parameter to specify a list of utilities to build
- Added comments
- v5 link:

    https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

v4->v5: 2025-05-27
- uutils-coreutils version 0.1.0
- v4 link:

    https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

v3->v4: 2025-04-02
- Picked up work from Sebastian Weyer <[email protected]>
- uutils-coreutils version 0.0.30
- Added a flag to enable or disable the multicall binary
- Removed usage of GNUMakefile. Now the build relies entirely on Cargo
- Added changes according to comments and feedback
- v3 link:

    https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

v2->v3: 2023-03-17
- Minor style issues
- v2 link:

    https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

v1->v2: 2023-03-17
- Switched to cargo-package from generic-package
- Format/style fixes
- v1 link:

    https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

v1: 2023-03-14
- initial version

== test-pkg details

./utils/test-pkg -p uutils-coreutils -c uutils-coreutils.config --all

                             arm-aarch64 [ 1/40]: OK
                   bootlin-aarch64-glibc [ 2/40]: OK
               bootlin-arcle-hs38-uclibc [ 3/40]: SKIPPED
                    bootlin-armv5-uclibc [ 4/40]: SKIPPED
                     bootlin-armv7-glibc [ 5/40]: FAILED
                   bootlin-armv7m-uclibc [ 6/40]: SKIPPED
                      bootlin-armv7-musl [ 7/40]: OK
                bootlin-m68k-5208-uclibc [ 8/40]: SKIPPED
               bootlin-m68k-68040-uclibc [ 9/40]: SKIPPED
             bootlin-microblazeel-uclibc [10/40]: SKIPPED
                bootlin-mipsel32r6-glibc [11/40]: SKIPPED
                   bootlin-mipsel-uclibc [12/40]: SKIPPED
                 bootlin-openrisc-uclibc [13/40]: SKIPPED
        bootlin-powerpc64le-power8-glibc [14/40]: OK
           bootlin-powerpc-e500mc-uclibc [15/40]: SKIPPED
                   bootlin-riscv32-glibc [16/40]: SKIPPED
                   bootlin-riscv64-glibc [17/40]: SKIPPED
                    bootlin-riscv64-musl [18/40]: SKIPPED
                 bootlin-s390x-z13-glibc [19/40]: FAILED
                      bootlin-sh4-uclibc [20/40]: SKIPPED
                   bootlin-sparc64-glibc [21/40]: FAILED
                    bootlin-sparc-uclibc [22/40]: SKIPPED
                    bootlin-x86-64-glibc [23/40]: FAILED
                     bootlin-x86-64-musl [24/40]: OK
                   bootlin-x86-64-uclibc [25/40]: SKIPPED
                   bootlin-x86-i686-musl [26/40]: OK
                   bootlin-xtensa-uclibc [27/40]: SKIPPED
                            br-arm-basic [28/40]: SKIPPED
                    br-arm-full-nothread [29/40]: SKIPPED
                      br-arm-full-static [30/40]: SKIPPED
                   br-i386-pentium4-full [31/40]: SKIPPED
                      br-mips64-n64-full [32/40]: SKIPPED
                 br-mips64r6-el-hf-glibc [33/40]: SKIPPED
               br-powerpc-603e-basic-cpp [34/40]: SKIPPED
               br-powerpc64-power7-glibc [35/40]: OK
                       linaro-aarch64-be [36/40]: SKIPPED
                          linaro-aarch64 [37/40]: OK
                              linaro-arm [38/40]: OK
                         sourcery-mips64 [39/40]: SKIPPED
                           sourcery-mips [40/40]: SKIPPED

40 builds, 27 skipped, 4 build failed, 0 legal-info failed, 0 show-info failed

Where uutils-coreutils.config contains two options:
BR2_PACKAGE_UUTILS_COREUTILS=y BR2_PACKAGE_HOST_RUSTC=y

As I can see, 4 failed build are happen with bootlin compiler and glibc. (While bootlin and musl are fine). logfiles said it's incompatible pointers [-Wincompatible-pointer-types] from oniguruma.

cargo:warning=oniguruma/src/regparse.c:588:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *, st_str_end_key *)' [-Wincompatible-pointer-types]

It seems I have seen similar problems before, but they disappeared over time. For now, I haven’t looked deeply into this problem. However, please let me know if this is critical. I will collect more details and prepare fixes.

Thank you!

Alexander Shirokov (2):
package/uutils-coreutils: new package
package/uutils-coreutils: new tests

 DEVELOPERS                                    |   3 +
 package/Config.in                             |   1 +
 package/busybox/busybox.mk                    |   1 +
 package/coreutils/Config.in                   |   1 +
 package/uutils-coreutils/Config.in            |  48 +++++++
 .../uutils-coreutils/uutils-coreutils.hash    |   3 +
 package/uutils-coreutils/uutils-coreutils.mk  | 124 ++++++++++++++++++
 support/testing/tests/package/test_rust.py    |   9 ++
 8 files changed, 190 insertions(+)
 create mode 100644 package/uutils-coreutils/Config.in
 create mode 100644 package/uutils-coreutils/uutils-coreutils.hash
 create mode 100644 package/uutils-coreutils/uutils-coreutils.mk
Signature · 6 lines
2.50.1

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

PATCH v6 1/2 package/uutils-coreutils: new package

This package is an implementation of coreutils written entirely in Rust. uutils-coreutils aims to:

- work on as many platforms as possible, to be able to use the same utils on Linux, macOS, Windows and other platforms

- be a drop-in replacement for the GNU utils

Currently defined functions:

[, b2sum, b3sum, base32, base64, basename, basenc, cat, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr, factor, false, fmt, fold, hashsum, head, join, link, ln, ls, md5sum, mkdir, mktemp, more, mv, nl, numfmt, od, paste, pr, printenv, printf, ptx, pwd, readlink, realpath, rm, rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum, sha3-256sum, sha3-384sum, sha3-512sum, sha384sum, sha3sum, sha512sum, shake128sum, shake256sum, shred, shuf, sleep, sort, split, sum, tac, tail, tee, test, touch, tr, true, truncate, tsort, unexpand, uniq, unlink, vdir, wc, yes

Please note, some options might be (yet) missing or different behavior might be experienced.

https://github.com/uutils/coreutils

---
 DEVELOPERS                                    |   3 +
 package/Config.in                             |   1 +
 package/busybox/busybox.mk                    |   1 +
 package/coreutils/Config.in                   |   1 +
 package/uutils-coreutils/Config.in            |  48 +++++++
 .../uutils-coreutils/uutils-coreutils.hash    |   3 +
 package/uutils-coreutils/uutils-coreutils.mk  | 124 ++++++++++++++++++
 7 files changed, 181 insertions(+)
 create mode 100644 package/uutils-coreutils/Config.in
 create mode 100644 package/uutils-coreutils/uutils-coreutils.hash
 create mode 100644 package/uutils-coreutils/uutils-coreutils.mk
DEVELOPERS +3 -0
index a28f3e8d57..571b8f2066 100644
@@ -91,6 +91,9 @@ F:	package/modem-manager/
 N:	Aleksandr Makarov <[email protected]>
 F:	package/cpp-httplib/
 
+N:      Alexander Shirokov <[email protected]>
+F:      package/uutils-coreutils/
+
 N:	Alessandro Partesotti <[email protected]>
 F:	package/oatpp/
 
package/Config.in +1 -0
index 137f74ed82..dd8afbb61d 100644
@@ -2957,6 +2957,7 @@ menu "System tools"
 	source "package/tpm2-totp/Config.in"
 	source "package/unscd/Config.in"
 	source "package/util-linux/Config.in"
+	source "package/uutils-coreutils/Config.in"
 	source "package/watchdog/Config.in"
 	source "package/watchdogd/Config.in"
 	source "package/xdg-dbus-proxy/Config.in"
package/busybox/busybox.mk +1 -0
index 532932ec8f..800b48af26 100644
@@ -68,6 +68,7 @@ BUSYBOX_DEPENDENCIES = \
 	$(if $(BR2_PACKAGE_UNZIP),unzip) \
 	$(if $(BR2_PACKAGE_USBUTILS),usbutils) \
 	$(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \
+	$(if $(BR2_PACKAGE_UUTILS_COREUTILS),uutils-coreutils) \
 	$(if $(BR2_PACKAGE_TINYINIT),tinyinit) \
 	$(if $(BR2_PACKAGE_VIM),vim) \
 	$(if $(BR2_PACKAGE_WATCHDOG),watchdog) \
package/coreutils/Config.in +1 -0
index 705013bae0..9c1af1dc25 100644
@@ -3,6 +3,7 @@ config BR2_PACKAGE_COREUTILS
 	depends on BR2_USE_WCHAR
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	depends on !BR2_PACKAGE_UUTILS_COREUTILS
 	help
 	  All of the basic file/text/shell utilities. These are the
 	  core utilities which are expected to exist on every system.
package/uutils-coreutils/Config.in new file +48 -0

48 lines not on this page · raw message

package/uutils-coreutils/uutils-coreutils.hash new file +3 -0
new file mode 100644
index 0000000000..da1a87261b
@@ -0,0 +1,3 @@
+# Locally generated
+sha256  40a56def7387edbc242e57eacc058449c6567bce0f681fb5c1dac7e7dac32e6a  uutils-coreutils-0.1.0-cargo4.tar.gz
+sha256  29953405eaa3dcc41c37d1621d55b6a47eee93e05613e439e73295029740b10c  LICENSE
package/uutils-coreutils/uutils-coreutils.mk new file +124 -0

124 lines not on this page · raw message

Signature · 6 lines
2.50.1

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

Hi Alexander,

Le 12/08/2025 à 21:28, Alexander Shirokov a écrit :

Quoted 273 lines

This package is an implementation of coreutils written entirely in Rust. uutils-coreutils aims to:

- work on as many platforms as possible, to be able to use the same utils on Linux, macOS, Windows and other platforms

- be a drop-in replacement for the GNU utils

Currently defined functions:

[, b2sum, b3sum, base32, base64, basename, basenc, cat, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr, factor, false, fmt, fold, hashsum, head, join, link, ln, ls, md5sum, mkdir, mktemp, more, mv, nl, numfmt, od, paste, pr, printenv, printf, ptx, pwd, readlink, realpath, rm, rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum, sha3-256sum, sha3-384sum, sha3-512sum, sha384sum, sha3sum, sha512sum, shake128sum, shake256sum, shred, shuf, sleep, sort, split, sum, tac, tail, tee, test, touch, tr, true, truncate, tsort, unexpand, uniq, unlink, vdir, wc, yes

Please note, some options might be (yet) missing or different behavior might be experienced.

https://github.com/uutils/coreutils

---
  DEVELOPERS                                    |   3 +
  package/Config.in                             |   1 +
  package/busybox/busybox.mk                    |   1 +
  package/coreutils/Config.in                   |   1 +
  package/uutils-coreutils/Config.in            |  48 +++++++
  .../uutils-coreutils/uutils-coreutils.hash    |   3 +
  package/uutils-coreutils/uutils-coreutils.mk  | 124 ++++++++++++++++++
  7 files changed, 181 insertions(+)

create mode 100644 package/uutils-coreutils/Config.in create mode 100644 package/uutils-coreutils/uutils-coreutils.hash create mode 100644 package/uutils-coreutils/uutils-coreutils.mk

DEVELOPERS +3 -0
index a28f3e8d57..571b8f2066 100644
@@ -91,6 +91,9 @@ F:	package/modem-manager/
  N:	Aleksandr Makarov <[email protected]>
  F:	package/cpp-httplib/
 
+N:      Alexander Shirokov <[email protected]>
+F:      package/uutils-coreutils/
+
  N:	Alessandro Partesotti <[email protected]>
  F:	package/oatpp/
 
package/Config.in +1 -0
index 137f74ed82..dd8afbb61d 100644
@@ -2957,6 +2957,7 @@ menu "System tools"
  	source "package/tpm2-totp/Config.in"
  	source "package/unscd/Config.in"
  	source "package/util-linux/Config.in"
+	source "package/uutils-coreutils/Config.in"
  	source "package/watchdog/Config.in"
  	source "package/watchdogd/Config.in"
  	source "package/xdg-dbus-proxy/Config.in"
package/busybox/busybox.mk +1 -0
index 532932ec8f..800b48af26 100644
@@ -68,6 +68,7 @@ BUSYBOX_DEPENDENCIES = \
  	$(if $(BR2_PACKAGE_UNZIP),unzip) \
  	$(if $(BR2_PACKAGE_USBUTILS),usbutils) \
  	$(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \
+	$(if $(BR2_PACKAGE_UUTILS_COREUTILS),uutils-coreutils) \
  	$(if $(BR2_PACKAGE_TINYINIT),tinyinit) \
  	$(if $(BR2_PACKAGE_VIM),vim) \
  	$(if $(BR2_PACKAGE_WATCHDOG),watchdog) \
package/coreutils/Config.in +1 -0
index 705013bae0..9c1af1dc25 100644
@@ -3,6 +3,7 @@ config BR2_PACKAGE_COREUTILS
  	depends on BR2_USE_WCHAR
  	depends on BR2_USE_MMU # fork()
  	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	depends on !BR2_PACKAGE_UUTILS_COREUTILS
  	help
  	  All of the basic file/text/shell utilities. These are the
  	  core utilities which are expected to exist on every system.
package/uutils-coreutils/Config.in new file +48 -0
new file mode 100644
index 0000000000..cd2bfdd0f0
@@ -0,0 +1,48 @@
+config BR2_PACKAGE_UUTILS_COREUTILS
+	bool "uutils-coreutils"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_HOST_RUSTC
+	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	help
+	  uutils coreutils is a cross-platform reimplementation of the
+	  GNU coreutils in Rust.
+
+	  While all programs have been implemented, some options might
+	  be missing or different behavior might be experienced.
+
+	  https://github.com/uutils/coreutils
+
+if BR2_PACKAGE_UUTILS_COREUTILS
+
+config BR2_PACKAGE_UUTILS_COREUTILS_MULTICALL
+	bool "multicall"
+	default y
+	help
+	  Build coreutils as a single multi-call binary, or as a set
+	  of separate utilities.
+
+	  Select 'y' to build coreutils as a single ‘coreutils’ binary.
+	  This approach allows to reduce overhead and achieve a minimal
+	  image size.
+
+	  Select 'n' to build coreutils as a collection of independent
+	  binaries, such as 'cp, mv, df, ...'. This approach produces
+	  larger final image, but it manages each application
+	  individually.
+
+	  It often comes in handy for testing, as it allows you to
+	  replace several specific binaries and see what happens.
+
+config BR2_PACKAGE_UUTILS_COREUTILS_UTILITIES
+	string "utilities"
+	default "default"
+	help
+	  This option specifies precisely which utilities will be
+	  built.
+
+	  Use 'default' to build all available utilities.
+
+	  Use a space-separated list of utilities, such as 'cp mv df’,
+	  to explicitly specify the utilities to build.
+
+endif
package/uutils-coreutils/uutils-coreutils.hash new file +3 -0
new file mode 100644
index 0000000000..da1a87261b
@@ -0,0 +1,3 @@
+# Locally generated
+sha256  40a56def7387edbc242e57eacc058449c6567bce0f681fb5c1dac7e7dac32e6a  uutils-coreutils-0.1.0-cargo4.tar.gz
+sha256  29953405eaa3dcc41c37d1621d55b6a47eee93e05613e439e73295029740b10c  LICENSE
package/uutils-coreutils/uutils-coreutils.mk new file +114 -0
new file mode 100644
index 0000000000..496e8174ab
@@ -0,0 +1,124 @@
+################################################################################
+#
+# uutils-coreutils
+#
+################################################################################
+
+UUTILS_COREUTILS_VERSION = 0.1.0
+UUTILS_COREUTILS_SITE = $(call github,uutils,coreutils,$(UUTILS_COREUTILS_VERSION))
+UUTILS_COREUTILS_LICENSE = MIT
+UUTILS_COREUTILS_LICENSE_FILES = LICENSE
+UUTILS_COREUTILS_CARGO_ENV=PROJECT_NAME_FOR_VERSION_STRING="uutils coreutils"
+
+# The list of default utilities is used when no specific instructions are provided
+# from the configuration.
+UUTILS_COREUTILS_DEFAULT_UTILITIES = \
+	base32 \
+	base64 \
+	basenc \
+	basename \
+	cat \
+	cksum \
+	comm \
+	cp \
+	csplit \
+	cut \
+	date \
+	dd \
+	df \
+	dir \
+	dircolors \
+	dirname \
+	echo \
+	env \
+	expand \
+	expr \
+	factor \
+	false \
+	fmt \
+	fold \
+	hashsum \
+	head \
+	join \
+	link \
+	ln \
+	ls \
+	mkdir \
+	mktemp \
+	more \
+	mv \
+	nl \
+	numfmt \
+	nproc \
+	od \
+	paste \
+	pr \
+	printenv \
+	printf \
+	ptx \
+	pwd \
+	readlink \
+	realpath \
+	rm \
+	rmdir \
+	seq \
+	shred \
+	shuf \
+	sleep \
+	sort \
+	split \
+	sum \
+	sync \
+	tac \
+	tail \
+	tee \
+	test \
+	tr \
+	true \
+	truncate \
+	tsort \
+	unexpand \
+	uniq \
+	vdir \
+	wc \
+	whoami \
+	yes
+
+# Track 'debug' and 'release' builds. This is needed as Cargo will
+# save them into different directories according to the build type.
+ifeq ($(BR2_ENABLE_DEBUG),y)
+UUTILS_COREUTILS_PROFILE=debug
+else
+UUTILS_COREUTILS_PROFILE=release
+endif
+
+# Select utilities to build. 'default' builds all available utilities.
+# Otherwise, use the list of utilities provided by the configuration.
+UUTILS_COREUTILS_CUSTOM_UTILITIES := $(call qstrip,$(BR2_PACKAGE_UUTILS_COREUTILS_UTILITIES))
+UUTILS_COREUTILS_UTILITIES := $(if $(filter default,$(UUTILS_COREUTILS_CUSTOM_UTILITIES)), \
+	$(UUTILS_COREUTILS_DEFAULT_UTILITIES), \
+	$(UUTILS_COREUTILS_CUSTOM_UTILITIES))
+
+# Handle multicall and non-multicall cases.
+# - Multicall. In this case, Cargo will build a single binary. The list of
+# supported utilities can be provided via the '--features' flag.
+# - Non-multicall. In this case, Cargo will build a separate binary for each utility.
+# The list of supported utilities can be provided via the '-p' flag and the 'uu_'
+# prefix in the package name.
+ifeq ($(BR2_PACKAGE_UUTILS_COREUTILS_MULTICALL),y)
+UUTILS_COREUTILS_FEATURES += $(foreach util,$(UUTILS_COREUTILS_UTILITIES),$(util))
+UUTILS_COREUTILS_CARGO_BUILD_OPTS += --features "$(UUTILS_COREUTILS_FEATURES)" --no-default-features
+define UUTILS_COREUTILS_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/target/$(RUSTC_TARGET_NAME)/$(UUTILS_COREUTILS_PROFILE)/coreutils $(TARGET_DIR)/bin/
+endef
+else

package/uutils-coreutils/uutils-coreutils.mk line 124

Quoted 10 lines
package/uutils-coreutils/uutils-coreutils.mk new file +10 -0
+UUTILS_COREUTILS_PACKAGES += $(foreach util,$(UUTILS_COREUTILS_UTILITIES),-p uu_$(util))
+UUTILS_COREUTILS_CARGO_BUILD_OPTS += $(UUTILS_COREUTILS_PACKAGES)
+define UUTILS_COREUTILS_INSTALL_TARGET_CMDS
+	$(foreach util,$(UUTILS_COREUTILS_UTILITIES), \
+		$(INSTALL) -D -m 0755 $(@D)/target/$(RUSTC_TARGET_NAME)/$(UUTILS_COREUTILS_PROFILE)/$(util) $(TARGET_DIR)/bin/
+	)
+endef
+endif
+
+$(eval $(cargo-package))

Thanks for this work!

I have a build issue  with this package when using the latest Bootlin external

toolchains.

The build fails inside the onig_sys crate, which tries to build the bundled oniguruma C code. The failure is caused by mismatches between C function pointer types, for example:

  """error: initialization of 'int (*)(void)' from incompatible pointer type"""

You reported the same problem in your cover letter, but this problem happens

only with the newer Bootlin toolchain, it works fine with the previous version,

and with the arm toolchain, I think that this is a glibc related issue, and maybe

we have to look deeper into that to resolve this issue, it would be good if we can.

As a workaround, the Oniguruma package in Buildroot is working fine,

and since the 'onig_sys' crate supports using a system Oniguruma

(see https://crates.io/crates/onig_sys), we can use the Buildroot

Oniguruma package by adding:

UUTILS_COREUTILS_DEPENDENCIES += oniguruma

UUTILS_COREUTILS_CARGO_ENV += RUSTONIG_SYSTEM_LIBONIG=1

With this , the build works fine even with the latest Bootlin toolchains.

I'm sharing this here in case someone wants to look deeper into the toolchain

issue.

Best regards,

El Mehdi

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

#3 lore raw

PATCH v6 1/2 package/uutils-coreutils: new package

Hi El Mehdi,

Thanks a lot for testing and for sharing the details. I really appreciate it.

According my experience, the '-Wincompatible-pointer-types' issue is pretty common when moving to GCC 15.

- I’ve seen it many times before in other projects
- It’s mentioned in rust-onig [1]
- Other packages in Buildroot have also run into it [2]

As the problem is quite widespread, it has already been solved on the 'main' branch by updating the oniguruma crate version. I tried the latest version (9e50f7f). Now build with Bootlin and glibc is fine.

./utils/test-pkg -p uutils-coreutils -c uutils-coreutils.config

                    bootlin-armv5-uclibc [1/6]: SKIPPED
                     bootlin-armv7-glibc [2/6]: OK
                   bootlin-armv7m-uclibc [3/6]: SKIPPED
                     bootlin-x86-64-musl [4/6]: OK
                      br-arm-full-static [5/6]: SKIPPED
                             arm-aarch64 [6/6]: OK

6 builds, 3 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed

So, I suggest we concentrate on other areas for improvement. In the meantime, the new release of uutils-coreutils will become available, and the issue will disappear automatically. If not, then we know the reason and the workarounds to cope with it.

[1] - https://github.com/rust-onig/rust-onig/issues/191
[2] - https://lore.kernel.org/buildroot/[email protected]/

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

#4 lore raw

v7 cover package/uutils-coreutils: new package

In reply to Alexander Shirokov

Hello Everyone,

This patch series delivers uutils-coreutils, a reimplementation of the GNU coreutils in Rust. uutils-coreutils are designed to be a drop-in replacement for GNU coreutils.

They are already included in some Linux distributions. For example, the uutils-coreutils package in Arch Linux or the rust-coreutils package in Ubuntu. Sure, in real life there is still room for improvement, but overall, the utilities work quite smoothly for most typical use cases.

On one hand, they look good enough to try in Buildroot and make available on a wide range of embedded devices. On the other hand, adding the utilities could help gain valuable experience, feedback, and improvements. That’s why these patches are here.

Configuration
=============

For now, I have configured all defaults to allow both uutils-coreutils and BusyBox to coexist. uutils attempts to avoid overwriting anything implicitly. Adding these utilities alongside the existing ones allows to run them on new platforms, collect statistics, measurements and experience.

Changing the defaults allows to rewrite existing utilities (the list of utilities is provided over configuration, too). This approach usually useful for debugging. For example, to make sure that existing scripts are OK with the new utilities.

Tests
=====

To make sure that uutils and the package are fine, I used two common
approaches: the native Buildroot tools and manual execution on images prepared by Buildroot.

The Buildroot tools:
- ./support/testing/run-tests with test cases: TestRust,TestRustBin, TestRustVendoring
- ./utils/test-pkg. See "test-pkg details"
- ./utils/check-package

I ran uutils-coreutils on the following platforms:
- Raspberry PI3 (based on raspberrypi3_defconfig)
- Orange PI Zero W2 (based on orangepi_zero2w_defconfig)
- Qemu aarch64 (based on qemu_aarch64_virt_defconfig)

Changelog
=========

v6->v7: 2025-10-26
- uutils-coreutils version 0.3.0

v5->v6: 2025-08-12
- Added configuration parameter to specify a list of utilities to build
- Added comments

v4->v5: 2025-05-27
- uutils-coreutils version 0.1.0

v3->v4: 2025-04-02
- Picked up work from Sebastian Weyer <[email protected]>
- uutils-coreutils version 0.0.30
- Added a flag to enable or disable the multicall binary
- Removed usage of GNUMakefile. Now the build relies entirely on Cargo
- Added changes according to comments and feedback

v2->v3: 2023-03-17
- Minor style issues

v1->v2: 2023-03-17
- Switched to cargo-package from generic-package
- Format/style fixes

v1: 2023-03-14
- Initial version

test-pkg details
=================

./utils/test-pkg -p uutils-coreutils -c uutils-coreutils.config --all

                             arm-aarch64 [ 1/35]: OK
                   bootlin-aarch64-glibc [ 2/35]: OK
               bootlin-arcle-hs38-uclibc [ 3/35]: SKIPPED
                    bootlin-armv5-uclibc [ 4/35]: SKIPPED
                     bootlin-armv7-glibc [ 5/35]: OK
                      bootlin-armv7-musl [ 6/35]: OK
                   bootlin-armv7m-uclibc [ 7/35]: SKIPPED
                bootlin-m68k-5208-uclibc [ 8/35]: SKIPPED
               bootlin-m68k-68040-uclibc [ 9/35]: SKIPPED
             bootlin-microblazeel-uclibc [10/35]: SKIPPED
                   bootlin-mipsel-uclibc [11/35]: SKIPPED
                bootlin-mipsel32r6-glibc [12/35]: SKIPPED
                 bootlin-openrisc-uclibc [13/35]: SKIPPED
           bootlin-powerpc-e500mc-uclibc [14/35]: SKIPPED
        bootlin-powerpc64le-power8-glibc [15/35]: OK
                   bootlin-riscv32-glibc [16/35]: SKIPPED
                   bootlin-riscv64-glibc [17/35]: SKIPPED
                    bootlin-riscv64-musl [18/35]: SKIPPED
                 bootlin-s390x-z13-glibc [19/35]: OK
                      bootlin-sh4-uclibc [20/35]: SKIPPED
                    bootlin-sparc-uclibc [21/35]: SKIPPED
                   bootlin-sparc64-glibc [22/35]: OK
                    bootlin-x86-64-glibc [23/35]: OK
                     bootlin-x86-64-musl [24/35]: OK
                   bootlin-x86-64-uclibc [25/35]: SKIPPED
                   bootlin-x86-i686-musl [26/35]: OK
                   bootlin-xtensa-uclibc [27/35]: SKIPPED
                            br-arm-basic [28/35]: SKIPPED
                    br-arm-full-nothread [29/35]: SKIPPED
                      br-arm-full-static [30/35]: SKIPPED
                   br-i386-pentium4-full [31/35]: SKIPPED
                      br-mips64-n64-full [32/35]: SKIPPED
                 br-mips64r6-el-hf-glibc [33/35]: SKIPPED
               br-powerpc-603e-basic-cpp [34/35]: SKIPPED
               br-powerpc64-power7-glibc [35/35]: OK

35 builds, 24 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed

Where uutils-coreutils.config contains two options:
BR2_PACKAGE_UUTILS_COREUTILS=y BR2_PACKAGE_HOST_RUSTC=y

Feedback, comments, and suggestions are welcome.

Thank you

Alexander Shirokov (2):
package/uutils-coreutils: new package
package/uutils-coreutils: new tests

 DEVELOPERS                                    |   1 +
 package/Config.in                             |   1 +
 package/busybox/busybox.mk                    |   1 +
 package/coreutils/Config.in                   |   1 +
 package/uutils-coreutils/Config.in            |  48 +++++++
 .../uutils-coreutils/uutils-coreutils.hash    |   3 +
 package/uutils-coreutils/uutils-coreutils.mk  | 123 ++++++++++++++++++
 support/testing/tests/package/test_rust.py    |   9 ++
 8 files changed, 187 insertions(+)
 create mode 100644 package/uutils-coreutils/Config.in
 create mode 100644 package/uutils-coreutils/uutils-coreutils.hash
 create mode 100644 package/uutils-coreutils/uutils-coreutils.mk
Signature · 6 lines
2.51.1

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

PATCH v7 1/2 package/uutils-coreutils: new package

This package is an implementation of coreutils written entirely in Rust. uutils-coreutils aims to:

- work on as many platforms as possible, to be able to use the same utils on Linux, macOS, Windows and other platforms

- be a drop-in replacement for the GNU utils

Currently defined functions:

[, b2sum, b3sum, base32, base64, basename, basenc, cat, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr, factor, false, fmt, fold, hashsum, head, join, link, ln, ls, md5sum, mkdir, mktemp, more, mv, nl, numfmt, od, paste, pr, printenv, printf, ptx, pwd, readlink, realpath, rm, rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum, sha3-256sum, sha3-384sum, sha3-512sum, sha384sum, sha3sum, sha512sum, shake128sum, shake256sum, shred, shuf, sleep, sort, split, sum, tac, tail, tee, test, touch, tr, true, truncate, tsort, unexpand, uniq, unlink, vdir, wc, yes

Please note, some options might be (yet) missing or different behavior might be experienced.

https://github.com/uutils/coreutils

---
 DEVELOPERS                                    |   1 +
 package/Config.in                             |   1 +
 package/busybox/busybox.mk                    |   1 +
 package/coreutils/Config.in                   |   1 +
 package/uutils-coreutils/Config.in            |  48 +++++++
 .../uutils-coreutils/uutils-coreutils.hash    |   3 +
 package/uutils-coreutils/uutils-coreutils.mk  | 123 ++++++++++++++++++
 7 files changed, 178 insertions(+)
 create mode 100644 package/uutils-coreutils/Config.in
 create mode 100644 package/uutils-coreutils/uutils-coreutils.hash
 create mode 100644 package/uutils-coreutils/uutils-coreutils.mk
DEVELOPERS +1 -0
index 63afce3fac..9185746ee9 100644
@@ -88,6 +88,7 @@ F:	package/cpp-httplib/
 
 N:	Alexander Shirokov <[email protected]>
 F:	package/nnn/
+F:	package/uutils-coreutils/
 
 N:	Alessandro Partesotti <[email protected]>
 F:	package/oatpp/
package/Config.in +1 -0
index 161d61728b..69c23183d9 100644
@@ -2940,6 +2940,7 @@ menu "System tools"
 	source "package/tpm2-totp/Config.in"
 	source "package/unscd/Config.in"
 	source "package/util-linux/Config.in"
+	source "package/uutils-coreutils/Config.in"
 	source "package/watchdog/Config.in"
 	source "package/watchdogd/Config.in"
 	source "package/xdg-dbus-proxy/Config.in"
package/busybox/busybox.mk +1 -0
index d7eda71db6..72efc377c7 100644
@@ -68,6 +68,7 @@ BUSYBOX_DEPENDENCIES = \
 	$(if $(BR2_PACKAGE_UNZIP),unzip) \
 	$(if $(BR2_PACKAGE_USBUTILS),usbutils) \
 	$(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \
+	$(if $(BR2_PACKAGE_UUTILS_COREUTILS),uutils-coreutils) \
 	$(if $(BR2_PACKAGE_TINYINIT),tinyinit) \
 	$(if $(BR2_PACKAGE_VIM),vim) \
 	$(if $(BR2_PACKAGE_WATCHDOG),watchdog) \
package/coreutils/Config.in +1 -0
index 705013bae0..9c1af1dc25 100644
@@ -3,6 +3,7 @@ config BR2_PACKAGE_COREUTILS
 	depends on BR2_USE_WCHAR
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	depends on !BR2_PACKAGE_UUTILS_COREUTILS
 	help
 	  All of the basic file/text/shell utilities. These are the
 	  core utilities which are expected to exist on every system.
package/uutils-coreutils/Config.in new file +48 -0

48 lines not on this page · raw message

package/uutils-coreutils/uutils-coreutils.hash new file +3 -0
new file mode 100644
index 0000000000..7d4f172620
@@ -0,0 +1,3 @@
+# Locally generated
+sha256  4785cb4b6fe6f1aa236e30e2ed7113ff15520e3897b7fb1e1d92f6511cc1b27b  uutils-coreutils-0.3.0-cargo4.tar.gz
+sha256  29953405eaa3dcc41c37d1621d55b6a47eee93e05613e439e73295029740b10c  LICENSE
package/uutils-coreutils/uutils-coreutils.mk new file +123 -0

123 lines not on this page · raw message

Signature · 6 lines
2.51.1

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

Hi Alex, Hi All,

Thanks a lot for the series.

Quoted 132 lines · Alexander Shirokov

This package is an implementation of coreutils written entirely in Rust. uutils-coreutils aims to:

- work on as many platforms as possible, to be able to use the same utils on Linux, macOS, Windows and other platforms

- be a drop-in replacement for the GNU utils

Currently defined functions:

[, b2sum, b3sum, base32, base64, basename, basenc, cat, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr, factor, false, fmt, fold, hashsum, head, join, link, ln, ls, md5sum, mkdir, mktemp, more, mv, nl, numfmt, od, paste, pr, printenv, printf, ptx, pwd, readlink, realpath, rm, rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum, sha3-256sum, sha3-384sum, sha3-512sum, sha384sum, sha3sum, sha512sum, shake128sum, shake256sum, shred, shuf, sleep, sort, split, sum, tac, tail, tee, test, touch, tr, true, truncate, tsort, unexpand, uniq, unlink, vdir, wc, yes

Please note, some options might be (yet) missing or different behavior might be experienced.

https://github.com/uutils/coreutils

---
  DEVELOPERS                                    |   1 +
  package/Config.in                             |   1 +
  package/busybox/busybox.mk                    |   1 +
  package/coreutils/Config.in                   |   1 +
  package/uutils-coreutils/Config.in            |  48 +++++++
  .../uutils-coreutils/uutils-coreutils.hash    |   3 +
  package/uutils-coreutils/uutils-coreutils.mk  | 123 ++++++++++++++++++
  7 files changed, 178 insertions(+)

create mode 100644 package/uutils-coreutils/Config.in create mode 100644 package/uutils-coreutils/uutils-coreutils.hash create mode 100644 package/uutils-coreutils/uutils-coreutils.mk

DEVELOPERS +1 -0
index 63afce3fac..9185746ee9 100644
@@ -88,6 +88,7 @@ F:	package/cpp-httplib/
 
  N:	Alexander Shirokov <[email protected]>
  F:	package/nnn/
+F:	package/uutils-coreutils/
 
  N:	Alessandro Partesotti <[email protected]>
  F:	package/oatpp/
package/Config.in +1 -0
index 161d61728b..69c23183d9 100644
@@ -2940,6 +2940,7 @@ menu "System tools"
  	source "package/tpm2-totp/Config.in"
  	source "package/unscd/Config.in"
  	source "package/util-linux/Config.in"
+	source "package/uutils-coreutils/Config.in"
  	source "package/watchdog/Config.in"
  	source "package/watchdogd/Config.in"
  	source "package/xdg-dbus-proxy/Config.in"
package/busybox/busybox.mk +1 -0
index d7eda71db6..72efc377c7 100644
@@ -68,6 +68,7 @@ BUSYBOX_DEPENDENCIES = \
  	$(if $(BR2_PACKAGE_UNZIP),unzip) \
  	$(if $(BR2_PACKAGE_USBUTILS),usbutils) \
  	$(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \
+	$(if $(BR2_PACKAGE_UUTILS_COREUTILS),uutils-coreutils) \
  	$(if $(BR2_PACKAGE_TINYINIT),tinyinit) \
  	$(if $(BR2_PACKAGE_VIM),vim) \
  	$(if $(BR2_PACKAGE_WATCHDOG),watchdog) \
package/coreutils/Config.in +1 -0
index 705013bae0..9c1af1dc25 100644
@@ -3,6 +3,7 @@ config BR2_PACKAGE_COREUTILS
  	depends on BR2_USE_WCHAR
  	depends on BR2_USE_MMU # fork()
  	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	depends on !BR2_PACKAGE_UUTILS_COREUTILS
  	help
  	  All of the basic file/text/shell utilities. These are the
  	  core utilities which are expected to exist on every system.
package/uutils-coreutils/Config.in new file +38 -0
new file mode 100644
index 0000000000..cd2bfdd0f0
@@ -0,0 +1,48 @@
+config BR2_PACKAGE_UUTILS_COREUTILS
+	bool "uutils-coreutils"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_HOST_RUSTC
+	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	help
+	  uutils coreutils is a cross-platform reimplementation of the
+	  GNU coreutils in Rust.
+
+	  While all programs have been implemented, some options might
+	  be missing or different behavior might be experienced.
+
+	  https://github.com/uutils/coreutils
+
+if BR2_PACKAGE_UUTILS_COREUTILS
+
+config BR2_PACKAGE_UUTILS_COREUTILS_MULTICALL
+	bool "multicall"
+	default y
+	help
+	  Build coreutils as a single multi-call binary, or as a set
+	  of separate utilities.
+
+	  Select 'y' to build coreutils as a single ‘coreutils’ binary.
+	  This approach allows to reduce overhead and achieve a minimal
+	  image size.
+
+	  Select 'n' to build coreutils as a collection of independent
+	  binaries, such as 'cp, mv, df, ...'. This approach produces
+	  larger final image, but it manages each application
+	  individually.
+
+	  It often comes in handy for testing, as it allows you to
+	  replace several specific binaries and see what happens.
+
+config BR2_PACKAGE_UUTILS_COREUTILS_UTILITIES
+	string "utilities"
+	default "default"

package/uutils-coreutils/Config.in line 48

Quoted 10 lines
package/uutils-coreutils/Config.in new file +10 -0
+	help
+	  This option specifies precisely which utilities will be
+	  built.
+
+	  Use 'default' to build all available utilities.
+
+	  Use a space-separated list of utilities, such as 'cp mv df’,
+	  to explicitly specify the utilities to build.
+
+endif

What happens if a utility that isn't on the list is selected?

shouldn't we provide documentation of the default list so users can choose a valid option?

Quoted 90 lines
package/uutils-coreutils/uutils-coreutils.hash new file +3 -0
new file mode 100644
index 0000000000..7d4f172620
@@ -0,0 +1,3 @@
+# Locally generated
+sha256  4785cb4b6fe6f1aa236e30e2ed7113ff15520e3897b7fb1e1d92f6511cc1b27b  uutils-coreutils-0.3.0-cargo4.tar.gz
+sha256  29953405eaa3dcc41c37d1621d55b6a47eee93e05613e439e73295029740b10c  LICENSE
package/uutils-coreutils/uutils-coreutils.mk new file +75 -0
new file mode 100644
index 0000000000..aa072b6068
@@ -0,0 +1,123 @@
+################################################################################
+#
+# uutils-coreutils
+#
+################################################################################
+
+UUTILS_COREUTILS_VERSION = 0.3.0
+UUTILS_COREUTILS_SITE = $(call github,uutils,coreutils,$(UUTILS_COREUTILS_VERSION))
+UUTILS_COREUTILS_LICENSE = MIT
+UUTILS_COREUTILS_LICENSE_FILES = LICENSE
+
+# The list of default utilities is used when no specific instructions are provided
+# from the configuration.
+UUTILS_COREUTILS_DEFAULT_UTILITIES = \
+	base32 \
+	base64 \
+	basenc \
+	basename \
+	cat \
+	cksum \
+	comm \
+	cp \
+	csplit \
+	cut \
+	date \
+	dd \
+	df \
+	dir \
+	dircolors \
+	dirname \
+	echo \
+	env \
+	expand \
+	expr \
+	factor \
+	false \
+	fmt \
+	fold \
+	hashsum \
+	head \
+	join \
+	link \
+	ln \
+	ls \
+	mkdir \
+	mktemp \
+	more \
+	mv \
+	nl \
+	numfmt \
+	nproc \
+	od \
+	paste \
+	pr \
+	printenv \
+	printf \
+	ptx \
+	pwd \
+	readlink \
+	realpath \
+	rm \
+	rmdir \
+	seq \
+	shred \
+	shuf \
+	sleep \
+	sort \
+	split \
+	sum \
+	sync \
+	tac \
+	tail \
+	tee \
+	test \
+	tr \

package/uutils-coreutils/uutils-coreutils.mk line 85

Quoted 10 lines
package/uutils-coreutils/uutils-coreutils.mk new file +10 -0
+	true \
+	truncate \
+	tsort \
+	unexpand \
+	uniq \
+	vdir \
+	wc \
+	whoami \
+	yes
+

I think that this default list can improve, no?

It would be good if we add a comment so that developers pay attention to

improving the list while upgrading this package.

Quoted 28 lines
package/uutils-coreutils/uutils-coreutils.mk new file +28 -0
+# Track 'debug' and 'release' builds. This is needed as Cargo will
+# save them into different directories according to the build type.
+ifeq ($(BR2_ENABLE_DEBUG),y)
+UUTILS_COREUTILS_PROFILE=debug
+else
+UUTILS_COREUTILS_PROFILE=release
+endif
+
+# Select utilities to build. 'default' builds all available utilities.
+# Otherwise, use the list of utilities provided by the configuration.
+UUTILS_COREUTILS_CUSTOM_UTILITIES := $(call qstrip,$(BR2_PACKAGE_UUTILS_COREUTILS_UTILITIES))
+UUTILS_COREUTILS_UTILITIES := $(if $(filter default,$(UUTILS_COREUTILS_CUSTOM_UTILITIES)), \
+	$(UUTILS_COREUTILS_DEFAULT_UTILITIES), \
+	$(UUTILS_COREUTILS_CUSTOM_UTILITIES))
+
+# Handle multicall and non-multicall cases.
+# - Multicall. In this case, Cargo will build a single binary. The list of
+# supported utilities can be provided via the '--features' flag.
+# - Non-multicall. In this case, Cargo will build a separate binary for each utility.
+# The list of supported utilities can be provided via the '-p' flag and the 'uu_'
+# prefix in the package name.
+ifeq ($(BR2_PACKAGE_UUTILS_COREUTILS_MULTICALL),y)
+UUTILS_COREUTILS_FEATURES += $(foreach util,$(UUTILS_COREUTILS_UTILITIES),$(util))
+UUTILS_COREUTILS_CARGO_BUILD_OPTS += --features "$(UUTILS_COREUTILS_FEATURES)" --no-default-features
+define UUTILS_COREUTILS_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/target/$(RUSTC_TARGET_NAME)/$(UUTILS_COREUTILS_PROFILE)/coreutils $(TARGET_DIR)/bin/
+endef
+else

package/uutils-coreutils/uutils-coreutils.mk line 123

Quoted 10 lines
package/uutils-coreutils/uutils-coreutils.mk new file +10 -0
+UUTILS_COREUTILS_PACKAGES += $(foreach util,$(UUTILS_COREUTILS_UTILITIES),-p uu_$(util))
+UUTILS_COREUTILS_CARGO_BUILD_OPTS += $(UUTILS_COREUTILS_PACKAGES)
+define UUTILS_COREUTILS_INSTALL_TARGET_CMDS
+	$(foreach util,$(UUTILS_COREUTILS_UTILITIES), \
+		$(INSTALL) -D -m 0755 $(@D)/target/$(RUSTC_TARGET_NAME)/$(UUTILS_COREUTILS_PROFILE)/$(util) $(TARGET_DIR)/bin/
+	)
+endef
+endif
+
+$(eval $(cargo-package))

Thanks a lot

El Mehdi

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

#7 lore raw

Hello Alexander, Mehdi, All,

Le 03/02/2026 à 15:22, El Mehdi YOUNES via buildroot a écrit :

Quoted 95 lines

Hi Alex, Hi All,

Thanks a lot for the series.

Quoted 90 lines · Alexander Shirokov

This package is an implementation of coreutils written entirely in Rust. uutils-coreutils aims to:

   - work on as many platforms as possible, to be able to use the same utils on Linux, macOS, Windows and other platforms

   - be a drop-in replacement for the GNU utils

Currently defined functions:

     [, b2sum, b3sum, base32, base64, basename, basenc, cat, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr, factor, false, fmt, fold, hashsum, head, join, link, ln, ls, md5sum, mkdir, mktemp, more, mv, nl, numfmt, od, paste, pr, printenv, printf, ptx, pwd, readlink, realpath, rm, rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum, sha3-256sum, sha3-384sum, sha3-512sum, sha384sum, sha3sum, sha512sum, shake128sum, shake256sum, shred, shuf, sleep, sort, split, sum, tac, tail, tee, test, touch, tr, true, truncate, tsort, unexpand, uniq, unlink, vdir, wc, yes

Please note, some options might be (yet) missing or different behavior might be experienced.

https://github.com/uutils/coreutils

---
  DEVELOPERS                                    |   1 + package/Config.in                             |   1 + package/busybox/busybox.mk                    |   1 + package/coreutils/Config.in                   |   1 + package/uutils-coreutils/Config.in            |  48 +++++++ .../uutils-coreutils/uutils-coreutils.hash    |   3 + package/uutils-coreutils/uutils-coreutils.mk  | 123 ++++++++++++++++++

  7 files changed, 178 insertions(+)

  create mode 100644 package/uutils-coreutils/Config.in create mode 100644 package/uutils-coreutils/uutils-coreutils.hash create mode 100644 package/uutils-coreutils/uutils-coreutils.mk

DEVELOPERS +0 -0
index 63afce3fac..9185746ee9 100644
@@ -88,6 +88,7 @@ F:    package/cpp-httplib/

    N:    Alexander Shirokov <[email protected]> F:    package/nnn/
+F:    package/uutils-coreutils/
    N:    Alessandro Partesotti <[email protected]> F:    package/oatpp/

package/Config.in +0 -0
index 161d61728b..69c23183d9 100644
@@ -2940,6 +2940,7 @@ menu "System tools"

      source "package/tpm2-totp/Config.in"
      source "package/unscd/Config.in"
      source "package/util-linux/Config.in"
+    source "package/uutils-coreutils/Config.in"
      source "package/watchdog/Config.in"
      source "package/watchdogd/Config.in"
      source "package/xdg-dbus-proxy/Config.in"

package/busybox/busybox.mk +1 -0
index d7eda71db6..72efc377c7 100644
@@ -68,6 +68,7 @@ BUSYBOX_DEPENDENCIES = \
       $(if $(BR2_PACKAGE_UNZIP),unzip) \
       $(if $(BR2_PACKAGE_USBUTILS),usbutils) \
       $(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \
+    $(if $(BR2_PACKAGE_UUTILS_COREUTILS),uutils-coreutils) \
       $(if $(BR2_PACKAGE_TINYINIT),tinyinit) \
       $(if $(BR2_PACKAGE_VIM),vim) \
       $(if $(BR2_PACKAGE_WATCHDOG),watchdog) \
package/coreutils/Config.in +0 -0
index 705013bae0..9c1af1dc25 100644
@@ -3,6 +3,7 @@ config BR2_PACKAGE_COREUTILS

      depends on BR2_USE_WCHAR
      depends on BR2_USE_MMU # fork()
      depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+    depends on !BR2_PACKAGE_UUTILS_COREUTILS
      help
        All of the basic file/text/shell utilities. These are the core utilities which are expected to exist on every system.

package/uutils-coreutils/ renamed from package/uutils-coreutils/Config.in +0 -0

Config.in
new file mode 100644
index 0000000000..cd2bfdd0f0

Quoted 8 lines

package/uutils-coreutils/Config.in line 5

Quoted 8 lines
package/uutils-coreutils/Config.in new file +5 -0
@@ -0,0 +1,48 @@
+config BR2_PACKAGE_UUTILS_COREUTILS
+    bool "uutils-coreutils"
+    depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+    depends on BR2_PACKAGE_HOST_RUSTC
+    depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS

This add a dependency on busybox package. We may want to install uutils-coreutils without busybox (even if Buildroot uses busybox by default).

Quoted 158 lines
Quoted 33 lines
package/uutils-coreutils/Config.in new file +33 -0
+    help
+      uutils coreutils is a cross-platform reimplementation of the
+      GNU coreutils in Rust.
+
+      While all programs have been implemented, some options might
+      be missing or different behavior might be experienced.
+
+      https://github.com/uutils/coreutils
+
+if BR2_PACKAGE_UUTILS_COREUTILS
+
+config BR2_PACKAGE_UUTILS_COREUTILS_MULTICALL
+    bool "multicall"
+    default y
+    help
+      Build coreutils as a single multi-call binary, or as a set
+      of separate utilities.
+
+      Select 'y' to build coreutils as a single ‘coreutils’ binary.
+      This approach allows to reduce overhead and achieve a minimal
+      image size.
+
+      Select 'n' to build coreutils as a collection of independent
+      binaries, such as 'cp, mv, df, ...'. This approach produces
+      larger final image, but it manages each application
+      individually.
+
+      It often comes in handy for testing, as it allows you to
+      replace several specific binaries and see what happens.
+
+config BR2_PACKAGE_UUTILS_COREUTILS_UTILITIES
+    string "utilities"
+    default "default"

package/uutils-coreutils/Config.in line 48

Quoted 10 lines
package/uutils-coreutils/Config.in new file +10 -0
+    help
+      This option specifies precisely which utilities will be
+      built.
+
+      Use 'default' to build all available utilities.
+
+      Use a space-separated list of utilities, such as 'cp mv df’,
+      to explicitly specify the utilities to build.
+
+endif

What happens if a utility that isn't on the list is selected?

shouldn't we provide documentation of the default list so users can choose a valid option?

Quoted 96 lines
package/uutils- renamed from package/uutils-coreutils/uutils-coreutils.hash +0 -0

coreutils/uutils-coreutils.hash
new file mode 100644
index 0000000000..7d4f172620

package/uutils-coreutils/uutils-coreutils.hash new file +2 -0
@@ -0,0 +1,3 @@
+# Locally generated
+sha256  4785cb4b6fe6f1aa236e30e2ed7113ff15520e3897b7fb1e1d92f6511cc1b27b 

uutils-coreutils-0.3.0-cargo4.tar.gz
+sha256  29953405eaa3dcc41c37d1621d55b6a47eee93e05613e439e73295029740b10c LICENSE

package/uutils- renamed from package/uutils-coreutils/uutils-coreutils.mk +0 -0

coreutils/uutils-coreutils.mk
new file mode 100644
index 0000000000..aa072b6068

package/uutils-coreutils/uutils-coreutils.mk new file +8 -0
@@ -0,0 +1,123 @@
+################################################################################
+#
+# uutils-coreutils
+#
+################################################################################
+
+UUTILS_COREUTILS_VERSION = 0.3.0
+UUTILS_COREUTILS_SITE = $(call github,uutils,coreutils,

$(UUTILS_COREUTILS_VERSION))

package/uutils-coreutils/uutils-coreutils.mk new file +4 -0
+UUTILS_COREUTILS_LICENSE = MIT
+UUTILS_COREUTILS_LICENSE_FILES = LICENSE
+
+# The list of default utilities is used when no specific instructions are

provided

package/uutils-coreutils/uutils-coreutils.mk new file +63 -0
+# from the configuration.
+UUTILS_COREUTILS_DEFAULT_UTILITIES = \
+    base32 \
+    base64 \
+    basenc \
+    basename \
+    cat \
+    cksum \
+    comm \
+    cp \
+    csplit \
+    cut \
+    date \
+    dd \
+    df \
+    dir \
+    dircolors \
+    dirname \
+    echo \
+    env \
+    expand \
+    expr \
+    factor \
+    false \
+    fmt \
+    fold \
+    hashsum \
+    head \
+    join \
+    link \
+    ln \
+    ls \
+    mkdir \
+    mktemp \
+    more \
+    mv \
+    nl \
+    numfmt \
+    nproc \
+    od \
+    paste \
+    pr \
+    printenv \
+    printf \
+    ptx \
+    pwd \
+    readlink \
+    realpath \
+    rm \
+    rmdir \
+    seq \
+    shred \
+    shuf \
+    sleep \
+    sort \
+    split \
+    sum \
+    sync \
+    tac \
+    tail \
+    tee \
+    test \
+    tr \

package/uutils-coreutils/uutils-coreutils.mk line 85

Quoted 10 lines
package/uutils-coreutils/uutils-coreutils.mk new file +10 -0
+    true \
+    truncate \
+    tsort \
+    unexpand \
+    uniq \
+    vdir \
+    wc \
+    whoami \
+    yes
+

I think that this default list can improve, no?

Quoted 3 lines

It would be good if we add a comment so that developers pay attention to

improving the list while upgrading this package.

Can we obtain this list of binary by using a small command line? If so, you could add it in a commment to help further update of this list.

Quoted 17 lines
Quoted 12 lines
package/uutils-coreutils/uutils-coreutils.mk new file +11 -0
+# Track 'debug' and 'release' builds. This is needed as Cargo will
+# save them into different directories according to the build type.
+ifeq ($(BR2_ENABLE_DEBUG),y)
+UUTILS_COREUTILS_PROFILE=debug
+else
+UUTILS_COREUTILS_PROFILE=release
+endif
+
+# Select utilities to build. 'default' builds all available utilities.
+# Otherwise, use the list of utilities provided by the configuration.
+UUTILS_COREUTILS_CUSTOM_UTILITIES := $(call qstrip,
Quoted 5 lines

$(BR2_PACKAGE_UUTILS_COREUTILS_UTILITIES)) +UUTILS_COREUTILS_UTILITIES := $(if $(filter default, $(UUTILS_COREUTILS_CUSTOM_UTILITIES)), \
+    $(UUTILS_COREUTILS_DEFAULT_UTILITIES), \
+    $(UUTILS_COREUTILS_CUSTOM_UTILITIES))

Do we really need ':='?

Do we really want the Buildroot user able to customize this list from Kconfig?

What if the user request a tool that requires an additional dependency or specific handling?

Quoted 14 lines
Quoted 14 lines
package/uutils-coreutils/uutils-coreutils.mk new file +5 -0
+
+# Handle multicall and non-multicall cases.
+# - Multicall. In this case, Cargo will build a single binary. The list of
+# supported utilities can be provided via the '--features' flag.
+# - Non-multicall. In this case, Cargo will build a separate binary for each

utility.
+# The list of supported utilities can be provided via the '-p' flag and the 'uu_'

package/uutils-coreutils/uutils-coreutils.mk new file +3 -0
+# prefix in the package name.
+ifeq ($(BR2_PACKAGE_UUTILS_COREUTILS_MULTICALL),y)
+UUTILS_COREUTILS_FEATURES += $(foreach util,$(UUTILS_COREUTILS_UTILITIES),

$(util))
+UUTILS_COREUTILS_CARGO_BUILD_OPTS += --features "$(UUTILS_COREUTILS_FEATURES)" --no-default-features

Quoted 8 lines
Quoted 8 lines

+define UUTILS_COREUTILS_INSTALL_TARGET_CMDS
+    $(INSTALL) -D -m 0755 $(@D)/target/$(RUSTC_TARGET_NAME)/ $(UUTILS_COREUTILS_PROFILE)/coreutils $(TARGET_DIR)/bin/

package/uutils-coreutils/uutils-coreutils.mk new file +3 -0
+endef
+else
+UUTILS_COREUTILS_PACKAGES += $(foreach util,$(UUTILS_COREUTILS_UTILITIES),-p

uu_$(util))
+UUTILS_COREUTILS_CARGO_BUILD_OPTS += $(UUTILS_COREUTILS_PACKAGES)

If we compare with meta-openpackaging, what about chroot utility that is installed to sbin directory?

https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.5.0.bb?h=master

Do we want to enable feat_external_libstdbuf too?

Sorry for the delay to review your patch, the only annoying part is the install process :-/

Best regards,
Romain

Quoted 12 lines

package/uutils-coreutils/uutils-coreutils.mk line 123

Quoted 9 lines

+define UUTILS_COREUTILS_INSTALL_TARGET_CMDS
+    $(foreach util,$(UUTILS_COREUTILS_UTILITIES), \
+        $(INSTALL) -D -m 0755 $(@D)/target/$(RUSTC_TARGET_NAME)/ $(UUTILS_COREUTILS_PROFILE)/$(util) $(TARGET_DIR)/bin/ +    )

package/uutils-coreutils/uutils-coreutils.mk new file +4 -0
+endef
+endif
+
+$(eval $(cargo-package))

Thanks a lot

Quoted 6 lines

El Mehdi

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

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

#8 lore raw

Hello, Romain, All

Thank you for review and comments.

Quoted 4 lines

depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS

This add a dependency on busybox package. We may want to install uutils-coreutils without busybox (even if Buildroot uses busybox by default).

That's an interesting question. I've had some doubts about the flag too. But...

1. package/busybox/Config.in has such comment:

# This option is not an option of Busybox, it can be selected even # if Busybox is not enabled.
config BR2_PACKAGE_BUSYBOX_SHOW_OTHERS

So, it's possible to disable busybox, but select uutils-coreutils.

2. The flag is used by coreutils (and many other packages). So, I decided it's very probable should be here, too.

Quoted 2 lines

Can we obtain this list of binary by using a small command line? If so, you could add it in a commment to help further update of this list.

Yes. Moreover, El Mehdi YOUNES had already provided those commands earlier.

https://patchwork.ozlabs.org/comment/3536145/

Only one reasonable question is WHEN we should call the command. It's possible to call the command(s) during editing a Makefile and store results explicitly, or call it during the build to get the actual list dynamically.

Both methods will work, but have different pros and cons.

For example, running commands during Makefile creation allows to explicitly control the utilities, but results in a bigger Makefile and more manual steps.

Generating a list of utilities during the build allows to reduce the size of the Makefile and update the list automatically. But it could lead to adding new binaries in an implicit form.

Furthermore, Buildroot may have typical conventions or preferences about how to act in this case.

How do you think, which way is better?

Quoted 3 lines

Do we really need ':='?

Do we really want the Buildroot user able to customize this list from Kconfig?

The main reason for doing such configuration is migration to uutils-coreutils. As this approach allows us to replace utilities one by one and make tests/measurements to compare the differences.

From the other hand, that could be a rare case. Especially taking into account constant improvements from the uutils-coreutils side. And usually people who make such kinds of migrations are experienced enough to prepare their own files or makefiles with slightly changed / hardcoded values.

Generally, I'm not opposed to simplifying that part and removing that configuration. We can add it back if we have sufficient evidence that it's truly needed.

Quoted 2 lines

What if the user request a tool that requires an additional dependency or specific handling?

Based on my experience, it will lead to a failed build.

Quoted 1 line

If we compare with meta-openpackaging, what about chroot utility that is

installed to sbin directory?

Thanks. I'll recheck this part. Seems I forgot about this.

Quoted 1 line

Do we want to enable feat_external_libstdbuf too?

I’ll recheck libstdbuf and the ability to use an external version. In general, I remember that libstdbuf led to some build issues in very early versions. E.g.: https://patchwork.ozlabs.org/comment/3190654/
But I don't remember the details, so it's worth trying / checking once again.

Quoted 2 lines

Sorry for the delay to review your patch, the only annoying part is the install process :-/

Sure, no problem. I'm not in a hurry with it :) Thank you once again for your review and informative comments. I'm glad to return to uutils-coreutils activities.

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

#9 lore raw
In reply to El Mehdi YOUNES via buildroot

Hello,

Thank you. I’m glad to return to the uutils-coreutils activities.

Quoted 1 line

What happens if a utility that isn't on the list is selected?

It will lead to an error during the build. The error message is quite clear (IMO, of course). That's why I decided to try this approach.

	error: the package 'coreutils' does not contain this feature: bad-tool
	make: *** [package/pkg-generic.mk:273: /buildroot/output/build/uutils-coreutils-0.5.0/.stamp_built] Error 101
Quoted 1 line

shouldn't we provide documentation of the default list so users can choose a valid option?

Yes, it’s possible. However, since I’m not 100% confident about the overall approach, I’d prefer not to copy and paste a large number of names from mk to Config.in. It also feels like a nice source of copy-paste errors.

Quoted 3 lines

I think that this default list can improve, no?
It would be good if we add a comment so that developers pay attention to improving the list while upgrading this package.

Yes, this list looks like it’s subject to change, and I can add more comments. However, the situation here is the same as in the previous comment: I’m not 100% confident about the overall approach. Possibly, we won’t need comments at all or need another comments.

Anyway, I'll pay special attention to this to keep it clear for other developers.

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

#10 lore raw

PATCH v7 2/2 package/uutils-coreutils: new tests

In reply to Alexander Shirokov

Add a small set of tests for uutils-coreutils to ensure that the binary is present and executable.

---
 support/testing/tests/package/test_rust.py | 9 +++++++++
 1 file changed, 9 insertions(+)
support/testing/tests/package/test_rust.py +9 -0
index 763125ca20..ec263df6b5 100644
@@ -28,11 +28,14 @@ class TestRustBin(TestRustBase):
         # BR2_TARGET_ROOTFS_TAR is not set
         BR2_PACKAGE_HOST_RUSTC=y
         BR2_PACKAGE_RIPGREP=y
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def test_run(self):
         self.login()
         self.assertRunOk("rg Buildroot /etc/issue")
+        self.assertRunOk("coreutils --help")
 
 
 class TestRust(TestRustBase):
@@ -50,11 +53,14 @@ class TestRust(TestRustBase):
         BR2_PACKAGE_HOST_RUSTC=y
         BR2_PACKAGE_HOST_RUST=y
         BR2_PACKAGE_RIPGREP=y
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def test_run(self):
         self.login()
         self.assertRunOk("rg Buildroot /etc/issue")
+        self.assertRunOk("coreutils --help")
 
 
 class TestRustVendoring(infra.basetest.BRConfigTest):
@@ -71,6 +77,8 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
         BR2_PACKAGE_PYTHON3=y
         BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
         BR2_BACKUP_SITE=""
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def setUp(self):
@@ -96,3 +104,4 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
     def test_run(self):
         self.check_download("ripgrep")
         self.check_download("python-cryptography")
+        self.check_download("uutils-coreutils")
Signature · 6 lines
2.51.1

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

Re: [Buildroot] [v7, 2/2] package/uutils-coreutils: new tests

Hello Alexander, All,

Le 26/10/2025 à 14:09, Alexander Shirokov a écrit :

support/testing/tests/package/test_rust.py class TestRustBin(TestRustBase):

Quoted 13 lines

Add a small set of tests for uutils-coreutils to ensure that the binary is present and executable.

---
 support/testing/tests/package/test_rust.py | 9 +++++++++
 1 file changed, 9 insertions(+)
support/testing/tests/package/test_rust.py +0 -0
index 763125ca20..ec263df6b5 100644
@@ -28,11 +28,14 @@ class TestRustBin(TestRustBase):

The TestRustBin and TestRust should only test the rust toolchain. Ripgrep is only used to validate the rust toolchain. Adding uutils-coreutils in this list is indeed convenient but I would prefer a separate test for uutils-coreutils. It would be named TestUutilsCoreutils that would help to identify any issue caused by the package itself.

uutils-coreutils should be tested against both RustBin and Rust toolchain.

Quoted 39 lines
support/testing/tests/package/test_rust.py +8 -0
         # BR2_TARGET_ROOTFS_TAR is not set
         BR2_PACKAGE_HOST_RUSTC=y
         BR2_PACKAGE_RIPGREP=y
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def test_run(self):
         self.login()
         self.assertRunOk("rg Buildroot /etc/issue")
+        self.assertRunOk("coreutils --help")
 
 
 class TestRust(TestRustBase):
@@ -50,11 +53,14 @@ class TestRust(TestRustBase):
         BR2_PACKAGE_HOST_RUSTC=y
         BR2_PACKAGE_HOST_RUST=y
         BR2_PACKAGE_RIPGREP=y
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def test_run(self):
         self.login()
         self.assertRunOk("rg Buildroot /etc/issue")
+        self.assertRunOk("coreutils --help")
 
 
 class TestRustVendoring(infra.basetest.BRConfigTest):
@@ -71,6 +77,8 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
         BR2_PACKAGE_PYTHON3=y
         BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
         BR2_BACKUP_SITE=""
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def setUp(self):

support/testing/tests/package/test_rust.py class TestRustVendoring(infra.basetest.BRConfigTest): · line 107

Quoted 4 lines
support/testing/tests/package/test_rust.py +1 -0
@@ -96,3 +104,4 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
     def test_run(self):
         self.check_download("ripgrep")
         self.check_download("python-cryptography")
+        self.check_download("uutils-coreutils")

using ripgrep and python-cryptography is enough for testing the Rust Vendoring.

Best regards,
Romain

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

#12 lore raw

Re: [Buildroot] [v7, 2/2] package/uutils-coreutils: new tests

Hello, Romain, All

Quoted 7 lines

The TestRustBin and TestRust should only test the rust toolchain. Ripgrep is only used to validate the rust toolchain. Adding uutils-coreutils in this list is indeed convenient but I would prefer a separate test for uutils-coreutils. It would be named TestUutilsCoreutils that would help to identify any issue caused by the package itself.

uutils-coreutils should be tested against both RustBin and Rust toolchain.

Thank you for the review and clarifications. I’ll rework that part. It’s much clearer now.

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

#13 lore raw

PATCH v6 2/2 package/uutils-coreutils: new tests

In reply to Alexander Shirokov

Add a small set of tests for uutils-coreutils to ensure that the binary is present and executable.

---
 support/testing/tests/package/test_rust.py | 9 +++++++++
 1 file changed, 9 insertions(+)
support/testing/tests/package/test_rust.py +9 -0
index 8160cb6053..c0fe56f1be 100644
@@ -28,11 +28,14 @@ class TestRustBin(TestRustBase):
         # BR2_TARGET_ROOTFS_TAR is not set
         BR2_PACKAGE_HOST_RUSTC=y
         BR2_PACKAGE_RIPGREP=y
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def test_run(self):
         self.login()
         self.assertRunOk("rg Buildroot /etc/issue")
+        self.assertRunOk("coreutils --help")
 
 
 class TestRust(TestRustBase):
@@ -50,11 +53,14 @@ class TestRust(TestRustBase):
         BR2_PACKAGE_HOST_RUSTC=y
         BR2_PACKAGE_HOST_RUST=y
         BR2_PACKAGE_RIPGREP=y
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def test_run(self):
         self.login()
         self.assertRunOk("rg Buildroot /etc/issue")
+        self.assertRunOk("coreutils --help")
 
 
 class TestRustVendoring(infra.basetest.BRConfigTest):
@@ -70,6 +76,8 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
         BR2_PACKAGE_RIPGREP=y
         BR2_PACKAGE_PYTHON3=y
         BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
+        BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+        BR2_PACKAGE_UUTILS_COREUTILS=y
         """
 
     def setUp(self):
@@ -95,3 +103,4 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
     def test_run(self):
         self.check_download("ripgrep")
         self.check_download("python-cryptography")
+        self.check_download("uutils-coreutils")
Signature · 6 lines
2.50.1

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