Skip to contentSkip to conversation

package/fd: new package

PATCH In review Saeed Kazemi 2 participants 2 messages Feb 23, 2024 – Aug 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/fd: new package

A simple, fast and user-friendly alternative to 'find'

https://github.com/sharkdp/fd.git

---
 DEVELOPERS           |  1 +
 package/Config.in    |  1 +
 package/fd/Config.in | 12 ++++++++++++
 package/fd/fd.hash   |  4 ++++
 package/fd/fd.mk     | 12 ++++++++++++
 5 files changed, 30 insertions(+)
 create mode 100644 package/fd/Config.in
 create mode 100644 package/fd/fd.hash
 create mode 100644 package/fd/fd.mk
DEVELOPERS +1 -0
index 0f065bfafb..bf022512a5 100644
@@ -2731,6 +2731,7 @@ F:	package/biosdevname/
 
 N:	Saeed Kazemi <[email protected]>
 F:	package/eza/
+F:	package/fd/
 F:	package/procs/
 
 N:	Sam Lancia <[email protected]>
package/Config.in +1 -0
index bf0fe078b9..090fa80a29 100644
@@ -182,6 +182,7 @@ menu "Development tools"
 	source "package/diffutils/Config.in"
 	source "package/dos2unix/Config.in"
 	source "package/findutils/Config.in"
+	source "package/fd/Config.in"
 	source "package/flex/Config.in"
 	source "package/gawk/Config.in"
 	source "package/gettext/Config.in"
package/fd/Config.in new file +12 -0
new file mode 100644
index 0000000000..10f295cb20
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_FD
+	bool "fd"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	select BR2_PACKAGE_HOST_RUSTC
+	help
+	  fd is a program to find entries in your filesystem. It is a
+	  simple, fast and user-friendly alternative to find. While it
+	  does not aim to support all of find's powerful functionality,
+	  it provides sensible (opinionated) defaults for a majority of
+	  use cases.
+
+	  https://github.com/sharkdp/fd.git
package/fd/fd.hash new file +4 -0
new file mode 100644
index 0000000000..7950055efa
@@ -0,0 +1,4 @@
+# Locally computed
+sha256  49d57704f1a75b20a770d50538818ec003f42a5c19a39a682639b5e72e72ee7d  fd-9.0.0.tar.gz
+sha256  73c83c60d817e7df1943cb3f0af81e4939a8352c9a96c2fd00451b1116fa635c  LICENSE-APACHE
+sha256  322cfc7aa0c774d0eca3b2610f1d414de3ddbd7d8dd4b9dea941a13a6eb07455  LICENSE-MIT
package/fd/fd.mk new file +12 -0
new file mode 100644
index 0000000000..316da418ea
@@ -0,0 +1,12 @@
+################################################################################
+#
+# fd
+#
+################################################################################
+
+FD_VERSION = 9.0.0
+FD_SITE = $(call github,sharkdp,fd,v$(FD_VERSION))
+FD_LICENSE = Apache-2.0 or MIT
+FD_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT
+
+$(eval $(cargo-package))
Signature · 6 lines
2.34.1

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

Hello Saeed,

Quoted 5 lines · On Fri, 23 Feb 2024 21:30:31 +0100 Saeed Kazemi <[email protected]> wrote:

A simple, fast and user-friendly alternative to 'find'

https://github.com/sharkdp/fd.git

Thanks, I've applied! I had to fix two small things.

package/Config.in menu "Development tools" · line 185

Quoted 9 lines
package/Config.in +1 -0
index bf0fe078b9..090fa80a29 100644
@@ -182,6 +182,7 @@ menu "Development tools"
 	source "package/diffutils/Config.in"
 	source "package/dos2unix/Config.in"
 	source "package/findutils/Config.in"
+	source "package/fd/Config.in"

Alphabetic ordering was not correct here, and it was spotted by "make check-package".

package/fd/fd.hash line 2

Quoted 8 lines
package/fd/fd.hash new file +2 -0
new file mode 100644
index 0000000000..7950055efa
@@ -0,0 +1,4 @@
+# Locally computed
+sha256  49d57704f1a75b20a770d50538818ec003f42a5c19a39a682639b5e72e72ee7d  fd-9.0.0.tar.gz

The file name and hash changed, because between the moment your patch was submitted and now, we did some changes in the cargo-package vendoring logic (so basically, not your fault!).

Thanks for this contribution!

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