package/uutils-coreutils: new package
PATCH v5 1/3 package/uutils-coreutils: new package
This package is an implementation of coreutils written entirely in Rust. 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
This is a continuation of the work started in [1] and [2]. This version introduces several major changes:
- updated to the latest uutils-coreutils version (0.1.0)
- added a flag to enable or disable the multicall binary
- build fixes and improvements
Links:
[1] https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
[2] https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
--- package/Config.in | 1 + package/busybox/busybox.mk | 1 + package/coreutils/Config.in | 1 + package/uutils-coreutils/Config.in | 28 +++++ .../uutils-coreutils/uutils-coreutils.hash | 3 + package/uutils-coreutils/uutils-coreutils.mk | 112 ++++++++++++++++++ 6 files changed, 146 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
package/Config.in +1 -0
@@ -2946,6 +2946,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
@@ -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
@@ -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 +28 -0
@@ -0,0 +1,28 @@ +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 is an attempt at writing universal (as in + cross-platform) CLI utilities 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 multi-call binary. + + Selecting 'y' will build and install a single + 'coreutils' binary that supports all commands. + + Selecting 'n' will build and install the utilities + as separate files. + +endif
package/uutils-coreutils/uutils-coreutils.hash new file +3 -0
@@ -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 +112 -0
112 lines not on this page · raw message
Signature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v5 2/3 package/uutils-coreutils: new tests
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
@@ -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.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v5 3/3 DEVELOPERS: add Alexander Shirokov for uutils-coreutils
In reply to Alexander Shirokov--- DEVELOPERS | 3 +++ 1 file changed, 3 insertions(+)
DEVELOPERS +3 -0
@@ -2995,6 +2995,9 @@ F: package/lrzip/ N: Sam Voss <[email protected]> F: package/ripgrep/ +N: Alexander Shirokov <[email protected]> +F: package/uutils-coreutils + N: Sébastien Szymanski <[email protected]> F: board/armadeus/ F: configs/armadeus*
Signature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot