All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/wcurl: new package
@ 2025-08-21 18:23 Angelo Compagnucci
  2025-08-21 18:49 ` Baruch Siach via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Angelo Compagnucci @ 2025-08-21 18:23 UTC (permalink / raw)
  To: buildroot; +Cc: Angelo Compagnucci

wcurl is a command line tool which lets you download URLs without having to
remember any parameters.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
v1->v2:
Fix runtime dependencies (Baruch Siach)

 DEVELOPERS               |  1 +
 package/Config.in        |  1 +
 package/wcurl/Config.in  |  9 +++++++++
 package/wcurl/wcurl.hash |  3 +++
 package/wcurl/wcurl.mk   | 16 ++++++++++++++++
 5 files changed, 30 insertions(+)
 create mode 100644 package/wcurl/Config.in
 create mode 100644 package/wcurl/wcurl.hash
 create mode 100644 package/wcurl/wcurl.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 3efad36d70..3a3d263c8f 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -242,6 +242,7 @@ F:	package/sam-ba/
 F:	package/sshguard/
 F:	package/sunwait/
 F:	package/sysdig/
+F:	package/wcurl/
 
 N:	Andy Shevchenko <andy.shevchenko@gmail.com>
 F:	package/fb-test-app/
diff --git a/package/Config.in b/package/Config.in
index 137f74ed82..61463e7820 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2724,6 +2724,7 @@ endif
 	source "package/vsftpd/Config.in"
 	source "package/vtun/Config.in"
 	source "package/wavemon/Config.in"
+	source "package/wcurl/Config.in"
 	source "package/wget/Config.in"
 	source "package/whois/Config.in"
 	source "package/wireguard-linux-compat/Config.in"
diff --git a/package/wcurl/Config.in b/package/wcurl/Config.in
new file mode 100644
index 0000000000..31a007b61f
--- /dev/null
+++ b/package/wcurl/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_WCURL
+	bool "wcurl"
+	depends on BR2_PACKAGE_LIBCURL # runtime
+	depends on BR2_PACKAGE_LIBCURL_CURL # runtime
+	help
+	  wcurl is a small command-line tool that wraps curl for easier use
+	  when downloading files from the web.
+
+	  https://curl.se/wcurl/
diff --git a/package/wcurl/wcurl.hash b/package/wcurl/wcurl.hash
new file mode 100644
index 0000000000..b747e99502
--- /dev/null
+++ b/package/wcurl/wcurl.hash
@@ -0,0 +1,3 @@
+# sha256 locally computed
+sha256  a745475f3511090685c4d000a10f4155147b75a8c7781764612a7e8f67bb6d82  wcurl-2025.05.26.tar.gz
+sha256  0127bdd267b1fa65bf5a6c487c907948e0c009aa35a5949c8aed91f779d27810  LICENSE
diff --git a/package/wcurl/wcurl.mk b/package/wcurl/wcurl.mk
new file mode 100644
index 0000000000..8499bd3e1b
--- /dev/null
+++ b/package/wcurl/wcurl.mk
@@ -0,0 +1,16 @@
+################################################################################
+#
+# wcurl
+#
+################################################################################
+
+WCURL_VERSION = 2025.05.26
+WCURL_SITE = $(call github,curl,wcurl,v$(WCURL_VERSION))
+WCURL_LICENSE = curl
+WCURL_LICENSE_FILES = LICENSE
+
+define FOO_INSTALL_TARGET_CMDS
+	 $(INSTALL) -D -m 0755 $(@D)/wcurl $(TARGET_DIR)/usr/bin
+endef
+
+$(eval $(generic-package))
-- 
2.34.1

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

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

* Re: [Buildroot] [PATCH v2] package/wcurl: new package
  2025-08-21 18:23 [Buildroot] [PATCH v2] package/wcurl: new package Angelo Compagnucci
@ 2025-08-21 18:49 ` Baruch Siach via buildroot
  2025-08-21 19:09   ` Angelo Compagnucci
  0 siblings, 1 reply; 4+ messages in thread
From: Baruch Siach via buildroot @ 2025-08-21 18:49 UTC (permalink / raw)
  To: Angelo Compagnucci; +Cc: buildroot

Hi Angelo,

On Thu, Aug 21 2025, Angelo Compagnucci wrote:
> wcurl is a command line tool which lets you download URLs without having to
> remember any parameters.
>
> Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>

[...]

> diff --git a/package/wcurl/Config.in b/package/wcurl/Config.in
> new file mode 100644
> index 0000000000..31a007b61f
> --- /dev/null
> +++ b/package/wcurl/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_WCURL
> +	bool "wcurl"
> +	depends on BR2_PACKAGE_LIBCURL # runtime
> +	depends on BR2_PACKAGE_LIBCURL_CURL # runtime

Why not 'select'?

You don't provide a comment to guide the user about these
dependencies. With 'select', no comment is needed.

baruch

> +	help
> +	  wcurl is a small command-line tool that wraps curl for easier use
> +	  when downloading files from the web.
> +
> +	  https://curl.se/wcurl/
> diff --git a/package/wcurl/wcurl.hash b/package/wcurl/wcurl.hash
> new file mode 100644
> index 0000000000..b747e99502
> --- /dev/null
> +++ b/package/wcurl/wcurl.hash
> @@ -0,0 +1,3 @@
> +# sha256 locally computed
> +sha256  a745475f3511090685c4d000a10f4155147b75a8c7781764612a7e8f67bb6d82  wcurl-2025.05.26.tar.gz
> +sha256  0127bdd267b1fa65bf5a6c487c907948e0c009aa35a5949c8aed91f779d27810  LICENSE
> diff --git a/package/wcurl/wcurl.mk b/package/wcurl/wcurl.mk
> new file mode 100644
> index 0000000000..8499bd3e1b
> --- /dev/null
> +++ b/package/wcurl/wcurl.mk
> @@ -0,0 +1,16 @@
> +################################################################################
> +#
> +# wcurl
> +#
> +################################################################################
> +
> +WCURL_VERSION = 2025.05.26
> +WCURL_SITE = $(call github,curl,wcurl,v$(WCURL_VERSION))
> +WCURL_LICENSE = curl
> +WCURL_LICENSE_FILES = LICENSE
> +
> +define FOO_INSTALL_TARGET_CMDS
> +	 $(INSTALL) -D -m 0755 $(@D)/wcurl $(TARGET_DIR)/usr/bin
> +endef
> +
> +$(eval $(generic-package))

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v2] package/wcurl: new package
  2025-08-21 18:49 ` Baruch Siach via buildroot
@ 2025-08-21 19:09   ` Angelo Compagnucci
  2025-08-22 10:11     ` Baruch Siach via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Angelo Compagnucci @ 2025-08-21 19:09 UTC (permalink / raw)
  To: Baruch Siach, buildroot


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

Il giorno gio 21 ago 2025 alle ore 20:49 Baruch Siach <baruch@tkos.co.il>
ha scritto:

> Hi Angelo,
>
> On Thu, Aug 21 2025, Angelo Compagnucci wrote:
> > wcurl is a command line tool which lets you download URLs without having
> to
> > remember any parameters.
> >
> > Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
>
> [...]
>
> > diff --git a/package/wcurl/Config.in b/package/wcurl/Config.in
> > new file mode 100644
> > index 0000000000..31a007b61f
> > --- /dev/null
> > +++ b/package/wcurl/Config.in
> > @@ -0,0 +1,9 @@
> > +config BR2_PACKAGE_WCURL
> > +     bool "wcurl"
> > +     depends on BR2_PACKAGE_LIBCURL # runtime
> > +     depends on BR2_PACKAGE_LIBCURL_CURL # runtime
>
> Why not 'select'?
>
> You don't provide a comment to guide the user about these
> dependencies. With 'select', no comment is needed.
>

Well, libcurl has several dependencies, and therefore selecting it didn't
sound right to me.
I mean, I want wcurl installed, wcurl selects libcurl which cannot be built
because some dependency is not met, It doesn't sound right.

I think this is something for the maintainers to decide, but let me know
what you think and I'll happily respin.


>
> baruch
>
> > +     help
> > +       wcurl is a small command-line tool that wraps curl for easier use
> > +       when downloading files from the web.
> > +
> > +       https://curl.se/wcurl/
> > diff --git a/package/wcurl/wcurl.hash b/package/wcurl/wcurl.hash
> > new file mode 100644
> > index 0000000000..b747e99502
> > --- /dev/null
> > +++ b/package/wcurl/wcurl.hash
> > @@ -0,0 +1,3 @@
> > +# sha256 locally computed
> > +sha256
> a745475f3511090685c4d000a10f4155147b75a8c7781764612a7e8f67bb6d82
> wcurl-2025.05.26.tar.gz
> > +sha256
> 0127bdd267b1fa65bf5a6c487c907948e0c009aa35a5949c8aed91f779d27810  LICENSE
> > diff --git a/package/wcurl/wcurl.mk b/package/wcurl/wcurl.mk
> > new file mode 100644
> > index 0000000000..8499bd3e1b
> > --- /dev/null
> > +++ b/package/wcurl/wcurl.mk
> > @@ -0,0 +1,16 @@
> >
> +################################################################################
> > +#
> > +# wcurl
> > +#
> >
> +################################################################################
> > +
> > +WCURL_VERSION = 2025.05.26
> > +WCURL_SITE = $(call github,curl,wcurl,v$(WCURL_VERSION))
> > +WCURL_LICENSE = curl
> > +WCURL_LICENSE_FILES = LICENSE
> > +
> > +define FOO_INSTALL_TARGET_CMDS
> > +      $(INSTALL) -D -m 0755 $(@D)/wcurl $(TARGET_DIR)/usr/bin
> > +endef
> > +
> > +$(eval $(generic-package))
>
> --
>                                                      ~. .~   Tk Open
> Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
>


-- 
Profile: http://it.linkedin.com/in/compagnucciangelo

[-- Attachment #1.2: Type: text/html, Size: 4485 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] 4+ messages in thread

* Re: [Buildroot] [PATCH v2] package/wcurl: new package
  2025-08-21 19:09   ` Angelo Compagnucci
@ 2025-08-22 10:11     ` Baruch Siach via buildroot
  0 siblings, 0 replies; 4+ messages in thread
From: Baruch Siach via buildroot @ 2025-08-22 10:11 UTC (permalink / raw)
  To: Angelo Compagnucci; +Cc: buildroot

Hi Algelo,

On Thu, Aug 21 2025, Angelo Compagnucci wrote:
> Il giorno gio 21 ago 2025 alle ore 20:49 Baruch Siach <baruch@tkos.co.il> ha scritto:
>
>  On Thu, Aug 21 2025, Angelo Compagnucci wrote:
>  > wcurl is a command line tool which lets you download URLs without having to
>  > remember any parameters.
>  >
>  > Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
>
>  [...]
>
>  > diff --git a/package/wcurl/Config.in b/package/wcurl/Config.in
>  > new file mode 100644
>  > index 0000000000..31a007b61f
>  > --- /dev/null
>  > +++ b/package/wcurl/Config.in
>  > @@ -0,0 +1,9 @@
>  > +config BR2_PACKAGE_WCURL
>  > +     bool "wcurl"
>  > +     depends on BR2_PACKAGE_LIBCURL # runtime
>  > +     depends on BR2_PACKAGE_LIBCURL_CURL # runtime
>
>  Why not 'select'?
>
>  You don't provide a comment to guide the user about these
>  dependencies. With 'select', no comment is needed.
>
> Well, libcurl has several dependencies, and therefore selecting it
> didn't sound right to me.  I mean, I want wcurl installed, wcurl
> selects libcurl which cannot be built because some dependency is not
> met, It doesn't sound right.

BR2_PACKAGE_LIBCURL needs no dependency. Over 40 packages select
BR2_PACKAGE_LIBCURL already in Buildroot.

Surely when you 'select' a package you need to propagate its 'depends'
to avoid the issue you mentioned. But in the case of BR2_PACKAGE_LIBCURL
there is no such 'depends'.

baruch

> I think this is something for the maintainers to decide, but let me
> know what you think and I'll happily respin.
>  
>  
>  baruch
>
>  > +     help
>  > +       wcurl is a small command-line tool that wraps curl for easier use
>  > +       when downloading files from the web.
>  > +
>  > +       https://curl.se/wcurl/
>  > diff --git a/package/wcurl/wcurl.hash b/package/wcurl/wcurl.hash
>  > new file mode 100644
>  > index 0000000000..b747e99502
>  > --- /dev/null
>  > +++ b/package/wcurl/wcurl.hash
>  > @@ -0,0 +1,3 @@
>  > +# sha256 locally computed
>  > +sha256  a745475f3511090685c4d000a10f4155147b75a8c7781764612a7e8f67bb6d82  wcurl-2025.05.26.tar.gz
>  > +sha256  0127bdd267b1fa65bf5a6c487c907948e0c009aa35a5949c8aed91f779d27810  LICENSE
>  > diff --git a/package/wcurl/wcurl.mk b/package/wcurl/wcurl.mk
>  > new file mode 100644
>  > index 0000000000..8499bd3e1b
>  > --- /dev/null
>  > +++ b/package/wcurl/wcurl.mk
>  > @@ -0,0 +1,16 @@
>  > +################################################################################
>  > +#
>  > +# wcurl
>  > +#
>  > +################################################################################
>  > +
>  > +WCURL_VERSION = 2025.05.26
>  > +WCURL_SITE = $(call github,curl,wcurl,v$(WCURL_VERSION))
>  > +WCURL_LICENSE = curl
>  > +WCURL_LICENSE_FILES = LICENSE
>  > +
>  > +define FOO_INSTALL_TARGET_CMDS
>  > +      $(INSTALL) -D -m 0755 $(@D)/wcurl $(TARGET_DIR)/usr/bin
>  > +endef
>  > +
>  > +$(eval $(generic-package))

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2025-08-22 10:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21 18:23 [Buildroot] [PATCH v2] package/wcurl: new package Angelo Compagnucci
2025-08-21 18:49 ` Baruch Siach via buildroot
2025-08-21 19:09   ` Angelo Compagnucci
2025-08-22 10:11     ` Baruch Siach via buildroot

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.