package/dust: new package
PATCH v3 1/1 package/dust: new package
dust is an alternative of the command du from the Linux kernel, written in Rust. It aims to be more intuitive and visual in order to give the user a better view of his system's storage capacity.
---
The package has been checked with correct formatting and without typos:
$ ./utils/check-package package/dust/*
Tests have been run using test-pkg:
$ ./utils/test-pkg -c dust.config -p dust
test-pkg config:
To run the test, the file dust.config contains the following line BR2_PACKAGE_DUST=y
Results:
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
sourcery-arm [6/6]: OK--- DEVELOPERS | 1 + package/Config.in | 1 + package/dust/Config.in | 11 +++++++++++ package/dust/dust.hash | 3 +++ package/dust/dust.mk | 12 ++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 package/dust/Config.in create mode 100644 package/dust/dust.hash create mode 100644 package/dust/dust.mk
DEVELOPERS +1 -0
@@ -2179,6 +2179,7 @@ F: package/exiv2/ F: package/ofono/ N: Nicolas Tran <[email protected]> +F: package/dust/ F: package/hyperfine/ N: Niklas Cassel <[email protected]>
package/Config.in +1 -0
@@ -210,6 +210,7 @@ menu "Filesystem and flash utilities" source "package/curlftpfs/Config.in" source "package/davfs2/Config.in" source "package/dosfstools/Config.in" + source "package/dust/Config.in" source "package/e2fsprogs/Config.in" source "package/e2tools/Config.in" source "package/ecryptfs-utils/Config.in"
package/dust/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_DUST + bool "dust" + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_RUSTC + help + dust is an alternative written in Rust of the command "du" + from the Linux kernel. It aims to be more intuitive and visual + in order to give the user a better view of his system's + current storage capacity. + + https://github.com/bootandy/dust.git
package/dust/dust.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde dust-0.8.1.tar.gz +sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
package/dust/dust.mk new file +12 -0
@@ -0,0 +1,12 @@ +################################################################################ +# +# dust +# +################################################################################ + +DUST_VERSION = 0.8.1 +DUST_SITE = $(call github,bootandy,dust,v$(DUST_VERSION)) +DUST_LICENSE = APACHE-2.0 +DUST_LICENSE_FILES = LICENSE + +$(eval $(cargo-package))
Signature · 6 lines
2.32.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Nicolas,
package/dust/dust.hash line 2
Quoted 8 lines · On Tue, 26 Jul 2022 17:51:15 +0200 Nicolas Tran <[email protected]> wrote:
package/dust/dust.hash new file +2
-0@@ -0,0 +1,3 @@ +# Locally computed +sha256 8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde dust-0.8.1.tar.gz
The hash doesn't match here:
ERROR: dust-0.8.1.tar.gz has wrong sha256 hash:
ERROR: expected: 8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde
ERROR: got : 271cc0f1978049b2dbfece633b85d4dd0184df346bd93720062c13e4332f2549
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
Could you check on your side if the hash of your tarball is really 271cc0f1978049b2dbfece633b85d4dd0184df346bd93720062c13e4332f2549 ?
Thanks!
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
Hello Thomas,
Indeed, the hash value is wrong.
$ sha256sum dust-0.8.1.tar.gz 8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde dust-0.8.1.tar.gz
The mismatched value corresponded to the v0.8.1-alpha.2 release of the package I previously used. Sorry for the confusion.
Quoted 28 lines · Thomas Petazzoni
Hello Nicolas,
package/dust/dust.hash line 2
Quoted 8 lines · On Tue, 26 Jul 2022 17:51:15 +0200 Nicolas Tran <[email protected]> wrote:
package/dust/dust.hash new file +2
-0@@ -0,0 +1,3 @@ +# Locally computed +sha256
8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebdedust-0.8.1.tar.gzThe hash doesn't match here:
ERROR: dust-0.8.1.tar.gz has wrong sha256 hash:
ERROR: expected:8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde
ERROR: got :271cc0f1978049b2dbfece633b85d4dd0184df346bd93720062c13e4332f2549
ERROR: Incomplete download, or man-in-the-middle (MITM) attackCould you check on your side if the hash of your tarball is really
271cc0f1978049b2dbfece633b85d4dd0184df346bd93720062c13e4332f2549?
Quoted 8 lines
Thanks!
Thomas
--
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
Hello Nicolas,
Quoted 7 lines · On Wed, 27 Jul 2022 10:52:37 +0200 Nicolas TRAN <[email protected]> wrote:
Indeed, the hash value is wrong.
$ sha256sum dust-0.8.1.tar.gz 8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde dust-0.8.1.tar.gzThe mismatched value corresponded to the v0.8.1-alpha.2 release of the package I previously used. Sorry for the confusion.
Thanks for confirming. Could you send a v4 with the correct hash, verified on your side?
Thanks a lot!
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