All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] new package: package/dust
@ 2022-07-26 15:29 Nicolas Tran
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Tran @ 2022-07-26 15:29 UTC (permalink / raw)
  To: buildroot; +Cc: Nicolas Tran

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

Signed-off-by: Nicolas Tran <nicolas.tran@smile.fr>
---
 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

diff --git a/DEVELOPERS b/DEVELOPERS
index 1dede4b83b..fdd2582614 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2179,6 +2179,7 @@ F:	package/exiv2/
 F:	package/ofono/
 
 N:	Nicolas Tran <nicolas.tran@smile.fr>
+F:	package/dust/
 F:	package/hyperfine/
 
 N:	Niklas Cassel <niklas.cassel@wdc.com>
diff --git a/package/Config.in b/package/Config.in
index d264449b30..a283fadc41 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/dust/Config.in b/package/dust/Config.in
new file mode 100644
index 0000000000..7b6e9304bc
--- /dev/null
+++ b/package/dust/Config.in
@@ -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
diff --git a/package/dust/dust.hash b/package/dust/dust.hash
new file mode 100644
index 0000000000..82043b497d
--- /dev/null
+++ b/package/dust/dust.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde  dust-0.8.1.tar.gz
+sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE
diff --git a/package/dust/dust.mk b/package/dust/dust.mk
new file mode 100644
index 0000000000..2cffc336a9
--- /dev/null
+++ b/package/dust/dust.mk
@@ -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))
-- 
2.32.0

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

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

* Re: [Buildroot] [PATCH 1/1] new package: package/dust
  2022-07-26 15:13 ` Quentin Schulz
  2022-07-26 15:43   ` Yann E. MORIN
@ 2022-07-26 15:47   ` Nicolas TRAN
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas TRAN @ 2022-07-26 15:47 UTC (permalink / raw)
  To: Quentin Schulz; +Cc: buildroot


[-- Attachment #1.1: Type: text/plain, Size: 5140 bytes --]

Hello Quentin,
Thanks for your review! I have been using dust on Buildroot for a while now
and I missed the release version of the package before patching it. (What a
shame!)
Also, this was supposed to be my SoB. I'm relatively new to Buildroot and
I didn't understand where it was supposed to be located. Now, I get it.
I will be sending another patch very soon. Thank you.

Yours,
Nicolas

On Tue, Jul 26, 2022 at 5:13 PM Quentin Schulz <
quentin.schulz@theobroma-systems.com> wrote:

> Hi Nicolas,
>
> On 7/26/22 16:56, Nicolas Tran wrote:
> > 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.
> >
> > ---
>
> I think git am will not like this separator and have the commit log stop
> here instead of including the rest til the next separator (with your
> SoB). Maybe -- would be enough, or move this after the other separator
> before the list of modified files?
>
> > 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
> >
> > Signed-off-by: Nicolas Tran <nicolas.tran@smile.fr>
> > ---
> >   DEVELOPERS             |  1 +
> >   package/Config.in      |  1 +
> >   package/dust/Config.in | 12 ++++++++++++
> >   package/dust/dust.hash |  3 +++
> >   package/dust/dust.mk   | 12 ++++++++++++
> >   5 files changed, 29 insertions(+)
> >   create mode 100644 package/dust/Config.in
> >   create mode 100644 package/dust/dust.hash
> >   create mode 100644 package/dust/dust.mk
> >
> > diff --git a/DEVELOPERS b/DEVELOPERS
> > index 1dede4b83b..7a0fa47595 100644
> > --- a/DEVELOPERS
> > +++ b/DEVELOPERS
> > @@ -2180,6 +2180,7 @@ F:      package/ofono/
> >
> >   N:  Nicolas Tran <nicolas.tran@smile.fr>
> >   F:  package/hyperfine/
> > +F:  package/dust/
> >
> >   N:  Niklas Cassel <niklas.cassel@wdc.com>
> >   F:  configs/qemu_riscv64_nommu_virt_defconfig
> > diff --git a/package/Config.in b/package/Config.in
> > index d264449b30..a283fadc41 100644
> > --- a/package/Config.in
> > +++ b/package/Config.in
> > @@ -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"
> > diff --git a/package/dust/Config.in b/package/dust/Config.in
> > new file mode 100644
> > index 0000000000..c02cf1aa83
> > --- /dev/null
> > +++ b/package/dust/Config.in
> > @@ -0,0 +1,12 @@
> > +config BR2_PACKAGE_DUST
> > +     bool "dust"
> > +     depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
> > +     depends on BR2_INSTALL_LIBSTDCPP # host-rustc
> > +     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://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bootandy_dust.git&d=DwICAg&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=qKkjyC6yAxeKvJmYdNlsDzDhFdDO0vSahgOTnZgBDNPKmYuAGOdkwdWdM3O_CAAt&s=gH07_ilQO9wqi8bv07RYANita8mpsOhdq7k__dVsOqg&e=
> > diff --git a/package/dust/dust.hash b/package/dust/dust.hash
> > new file mode 100644
> > index 0000000000..82043b497d
> > --- /dev/null
> > +++ b/package/dust/dust.hash
> > @@ -0,0 +1,3 @@
> > +# Locally computed
> > +sha256
> 8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde
> dust-0.8.1.tar.gz
> > +sha256
> c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE
> > diff --git a/package/dust/dust.mk b/package/dust/dust.mk
> > new file mode 100644
> > index 0000000000..a889d64f56
> > --- /dev/null
> > +++ b/package/dust/dust.mk
> > @@ -0,0 +1,12 @@
> >
> +################################################################################
> > +#
> > +# dust
> > +#
> >
> +################################################################################
> > +
> > +DUST_VERSION = 0.8.1
> > +DUST_SITE = $(call github,bootandy,dust,v$(DUST_VERSION)-alpha.2)
>
> There's a v0.8.1 released about two weeks ago, better use it instead of
> alpha.2?
>
> Cheers,
> Quentin
>

[-- Attachment #1.2: Type: text/html, Size: 7238 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

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

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

* Re: [Buildroot] [PATCH 1/1] new package: package/dust
  2022-07-26 15:13 ` Quentin Schulz
@ 2022-07-26 15:43   ` Yann E. MORIN
  2022-07-26 15:47   ` Nicolas TRAN
  1 sibling, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2022-07-26 15:43 UTC (permalink / raw)
  To: Quentin Schulz; +Cc: Nicolas Tran, buildroot

Quentin, All,

On 2022-07-26 17:13 +0200, Quentin Schulz spake thusly:
> On 7/26/22 16:56, Nicolas Tran wrote:
> >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.
> >
> >---
> 
> I think git am will not like this separator and have the commit log stop
> here instead of including the rest til the next separator (with your SoB).
> Maybe -- would be enough, or move this after the other separator before the
> list of modified files?

No, that is OK. I asked for that in the past.

Test results are very interesting, but they do not belong to the commit
log (except if a test fails and that has to be explained, of course).

Regards,
Yann E. MORIN.

> >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
> >
> >Signed-off-by: Nicolas Tran <nicolas.tran@smile.fr>
> >---
> >  DEVELOPERS             |  1 +
> >  package/Config.in      |  1 +
> >  package/dust/Config.in | 12 ++++++++++++
> >  package/dust/dust.hash |  3 +++
> >  package/dust/dust.mk   | 12 ++++++++++++
> >  5 files changed, 29 insertions(+)
> >  create mode 100644 package/dust/Config.in
> >  create mode 100644 package/dust/dust.hash
> >  create mode 100644 package/dust/dust.mk
> >
> >diff --git a/DEVELOPERS b/DEVELOPERS
> >index 1dede4b83b..7a0fa47595 100644
> >--- a/DEVELOPERS
> >+++ b/DEVELOPERS
> >@@ -2180,6 +2180,7 @@ F:	package/ofono/
> >  N:	Nicolas Tran <nicolas.tran@smile.fr>
> >  F:	package/hyperfine/
> >+F:  package/dust/
> >  N:	Niklas Cassel <niklas.cassel@wdc.com>
> >  F:	configs/qemu_riscv64_nommu_virt_defconfig
> >diff --git a/package/Config.in b/package/Config.in
> >index d264449b30..a283fadc41 100644
> >--- a/package/Config.in
> >+++ b/package/Config.in
> >@@ -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"
> >diff --git a/package/dust/Config.in b/package/dust/Config.in
> >new file mode 100644
> >index 0000000000..c02cf1aa83
> >--- /dev/null
> >+++ b/package/dust/Config.in
> >@@ -0,0 +1,12 @@
> >+config BR2_PACKAGE_DUST
> >+	bool "dust"
> >+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
> >+	depends on BR2_INSTALL_LIBSTDCPP # host-rustc
> >+	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://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bootandy_dust.git&d=DwICAg&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=qKkjyC6yAxeKvJmYdNlsDzDhFdDO0vSahgOTnZgBDNPKmYuAGOdkwdWdM3O_CAAt&s=gH07_ilQO9wqi8bv07RYANita8mpsOhdq7k__dVsOqg&e=
> >diff --git a/package/dust/dust.hash b/package/dust/dust.hash
> >new file mode 100644
> >index 0000000000..82043b497d
> >--- /dev/null
> >+++ b/package/dust/dust.hash
> >@@ -0,0 +1,3 @@
> >+# Locally computed
> >+sha256  8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde  dust-0.8.1.tar.gz
> >+sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE
> >diff --git a/package/dust/dust.mk b/package/dust/dust.mk
> >new file mode 100644
> >index 0000000000..a889d64f56
> >--- /dev/null
> >+++ b/package/dust/dust.mk
> >@@ -0,0 +1,12 @@
> >+################################################################################
> >+#
> >+# dust
> >+#
> >+################################################################################
> >+
> >+DUST_VERSION = 0.8.1
> >+DUST_SITE = $(call github,bootandy,dust,v$(DUST_VERSION)-alpha.2)
> 
> There's a v0.8.1 released about two weeks ago, better use it instead of
> alpha.2?
> 
> Cheers,
> Quentin
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] new package: package/dust
  2022-07-26 14:56 Nicolas Tran
@ 2022-07-26 15:13 ` Quentin Schulz
  2022-07-26 15:43   ` Yann E. MORIN
  2022-07-26 15:47   ` Nicolas TRAN
  0 siblings, 2 replies; 5+ messages in thread
From: Quentin Schulz @ 2022-07-26 15:13 UTC (permalink / raw)
  To: Nicolas Tran, buildroot

Hi Nicolas,

On 7/26/22 16:56, Nicolas Tran wrote:
> 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.
> 
> ---

I think git am will not like this separator and have the commit log stop 
here instead of including the rest til the next separator (with your 
SoB). Maybe -- would be enough, or move this after the other separator 
before the list of modified files?

> 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
> 
> Signed-off-by: Nicolas Tran <nicolas.tran@smile.fr>
> ---
>   DEVELOPERS             |  1 +
>   package/Config.in      |  1 +
>   package/dust/Config.in | 12 ++++++++++++
>   package/dust/dust.hash |  3 +++
>   package/dust/dust.mk   | 12 ++++++++++++
>   5 files changed, 29 insertions(+)
>   create mode 100644 package/dust/Config.in
>   create mode 100644 package/dust/dust.hash
>   create mode 100644 package/dust/dust.mk
> 
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 1dede4b83b..7a0fa47595 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -2180,6 +2180,7 @@ F:	package/ofono/
>   
>   N:	Nicolas Tran <nicolas.tran@smile.fr>
>   F:	package/hyperfine/
> +F:  package/dust/
>   
>   N:	Niklas Cassel <niklas.cassel@wdc.com>
>   F:	configs/qemu_riscv64_nommu_virt_defconfig
> diff --git a/package/Config.in b/package/Config.in
> index d264449b30..a283fadc41 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -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"
> diff --git a/package/dust/Config.in b/package/dust/Config.in
> new file mode 100644
> index 0000000000..c02cf1aa83
> --- /dev/null
> +++ b/package/dust/Config.in
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_DUST
> +	bool "dust"
> +	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
> +	depends on BR2_INSTALL_LIBSTDCPP # host-rustc
> +	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://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bootandy_dust.git&d=DwICAg&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=qKkjyC6yAxeKvJmYdNlsDzDhFdDO0vSahgOTnZgBDNPKmYuAGOdkwdWdM3O_CAAt&s=gH07_ilQO9wqi8bv07RYANita8mpsOhdq7k__dVsOqg&e=
> diff --git a/package/dust/dust.hash b/package/dust/dust.hash
> new file mode 100644
> index 0000000000..82043b497d
> --- /dev/null
> +++ b/package/dust/dust.hash
> @@ -0,0 +1,3 @@
> +# Locally computed
> +sha256  8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde  dust-0.8.1.tar.gz
> +sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE
> diff --git a/package/dust/dust.mk b/package/dust/dust.mk
> new file mode 100644
> index 0000000000..a889d64f56
> --- /dev/null
> +++ b/package/dust/dust.mk
> @@ -0,0 +1,12 @@
> +################################################################################
> +#
> +# dust
> +#
> +################################################################################
> +
> +DUST_VERSION = 0.8.1
> +DUST_SITE = $(call github,bootandy,dust,v$(DUST_VERSION)-alpha.2)

There's a v0.8.1 released about two weeks ago, better use it instead of 
alpha.2?

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

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

* [Buildroot] [PATCH 1/1] new package: package/dust
@ 2022-07-26 14:56 Nicolas Tran
  2022-07-26 15:13 ` Quentin Schulz
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Tran @ 2022-07-26 14:56 UTC (permalink / raw)
  To: buildroot; +Cc: Nicolas Tran

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

Signed-off-by: Nicolas Tran <nicolas.tran@smile.fr>
---
 DEVELOPERS             |  1 +
 package/Config.in      |  1 +
 package/dust/Config.in | 12 ++++++++++++
 package/dust/dust.hash |  3 +++
 package/dust/dust.mk   | 12 ++++++++++++
 5 files changed, 29 insertions(+)
 create mode 100644 package/dust/Config.in
 create mode 100644 package/dust/dust.hash
 create mode 100644 package/dust/dust.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 1dede4b83b..7a0fa47595 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2180,6 +2180,7 @@ F:	package/ofono/
 
 N:	Nicolas Tran <nicolas.tran@smile.fr>
 F:	package/hyperfine/
+F:  package/dust/
 
 N:	Niklas Cassel <niklas.cassel@wdc.com>
 F:	configs/qemu_riscv64_nommu_virt_defconfig
diff --git a/package/Config.in b/package/Config.in
index d264449b30..a283fadc41 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/dust/Config.in b/package/dust/Config.in
new file mode 100644
index 0000000000..c02cf1aa83
--- /dev/null
+++ b/package/dust/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_DUST
+	bool "dust"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	depends on BR2_INSTALL_LIBSTDCPP # host-rustc
+	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
diff --git a/package/dust/dust.hash b/package/dust/dust.hash
new file mode 100644
index 0000000000..82043b497d
--- /dev/null
+++ b/package/dust/dust.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  8231d045a0cca286355e89a41758b05f43238d52721bfc78e0b9bc19789bebde  dust-0.8.1.tar.gz
+sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE
diff --git a/package/dust/dust.mk b/package/dust/dust.mk
new file mode 100644
index 0000000000..a889d64f56
--- /dev/null
+++ b/package/dust/dust.mk
@@ -0,0 +1,12 @@
+################################################################################
+#
+# dust
+#
+################################################################################
+
+DUST_VERSION = 0.8.1
+DUST_SITE = $(call github,bootandy,dust,v$(DUST_VERSION)-alpha.2)
+DUST_LICENSE = APACHE-2.0
+DUST_LICENSE_FILES = LICENSE
+
+$(eval $(cargo-package))
-- 
2.32.0

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

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

end of thread, other threads:[~2022-07-26 15:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26 15:29 [Buildroot] [PATCH 1/1] new package: package/dust Nicolas Tran
  -- strict thread matches above, loose matches on Subject: below --
2022-07-26 14:56 Nicolas Tran
2022-07-26 15:13 ` Quentin Schulz
2022-07-26 15:43   ` Yann E. MORIN
2022-07-26 15:47   ` Nicolas TRAN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.