* [Buildroot] [PATCH] package/yq: add new package
@ 2025-11-18 14:53 Thomas Devoogdt
2025-11-18 15:52 ` Edgar Bonet via buildroot
2025-11-30 16:44 ` Peter Korsgaard
0 siblings, 2 replies; 8+ messages in thread
From: Thomas Devoogdt @ 2025-11-18 14:53 UTC (permalink / raw)
To: buildroot; +Cc: Christian Stewart, Thomas Devoogdt
From: Thomas Devoogdt <thomas.devoogdt@barco.com>
Version 4.45.2 was selected as newer versions require Go 1.24 [1],
which is not yet available in Buildroot.
[1] https://github.com/mikefarah/yq/commit/5bc2cd03da9139160db70901ffb8002bf6e242d5
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
---
package/Config.in | 1 +
package/yq/Config.in | 10 ++++++++++
package/yq/yq.hash | 3 +++
package/yq/yq.mk | 13 +++++++++++++
4 files changed, 27 insertions(+)
create mode 100644 package/yq/Config.in
create mode 100644 package/yq/yq.hash
create mode 100644 package/yq/yq.mk
diff --git a/package/Config.in b/package/Config.in
index 12f327cb27..1dfff206d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -203,6 +203,7 @@ menu "Development tools"
source "package/tree/Config.in"
source "package/unifdef/Config.in"
source "package/yasm/Config.in"
+ source "package/yq/Config.in"
endmenu
menu "Filesystem and flash utilities"
diff --git a/package/yq/Config.in b/package/yq/Config.in
new file mode 100644
index 0000000000..d85b3e5601
--- /dev/null
+++ b/package/yq/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_YQ
+ bool "yq"
+ depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
+ select BR2_PACKAGE_HOST_GO
+ help
+ A lightweight and portable command-line YAML, JSON, INI
+ and XML processor, yq uses jq (a popular JSON processor)
+ like syntax.
+
+ https://mikefarah.gitbook.io/yq/
diff --git a/package/yq/yq.hash b/package/yq/yq.hash
new file mode 100644
index 0000000000..bc9dccad81
--- /dev/null
+++ b/package/yq/yq.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 39296b55e33962ef838cd8a1bc0e9850e775de4cc3843bf15f099324069d2632 yq-4.45.2-go2.tar.gz
+sha256 697db34dabb21562fe84487a2ccd031fbd45382b89c2cbdec8ef31682c486040 LICENSE
diff --git a/package/yq/yq.mk b/package/yq/yq.mk
new file mode 100644
index 0000000000..b42b8e652c
--- /dev/null
+++ b/package/yq/yq.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# yq
+#
+################################################################################
+
+YQ_VERSION = 4.45.2
+YQ_SITE = $(call github,mikefarah,yq,v$(YQ_VERSION))
+YQ_LICENSE = MIT
+YQ_LICENSE_FILES = LICENSE
+YQ_GOMOD = github.com/mikefarah/yq/v4
+
+$(eval $(golang-package))
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH] package/yq: add new package
2025-11-18 14:53 [Buildroot] [PATCH] package/yq: add new package Thomas Devoogdt
@ 2025-11-18 15:52 ` Edgar Bonet via buildroot
2025-11-18 16:19 ` Thomas Devoogdt
2025-11-30 16:44 ` Peter Korsgaard
1 sibling, 1 reply; 8+ messages in thread
From: Edgar Bonet via buildroot @ 2025-11-18 15:52 UTC (permalink / raw)
To: Thomas Devoogdt, buildroot; +Cc: Christian Stewart, Thomas Devoogdt
Hello!
On 2025-11-18, Thomas Devoogdt wrote:
> From: Thomas Devoogdt <thomas.devoogdt@barco.com>
>
> Version 4.45.2 was selected as newer versions require Go 1.24 [1],
> which is not yet available in Buildroot.
>
> [1] https://github.com/mikefarah/yq/commit/5bc2cd03da9139160db70901ffb8002bf6e242d5
>
> Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
> ---
> package/Config.in | 1 +
> package/yq/Config.in | 10 ++++++++++
> package/yq/yq.hash | 3 +++
> package/yq/yq.mk | 13 +++++++++++++
> 4 files changed, 27 insertions(+)
> create mode 100644 package/yq/Config.in
> create mode 100644 package/yq/yq.hash
> create mode 100644 package/yq/yq.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 12f327cb27..1dfff206d5 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -203,6 +203,7 @@ menu "Development tools"
> source "package/tree/Config.in"
> source "package/unifdef/Config.in"
> source "package/yasm/Config.in"
> + source "package/yq/Config.in"
> endmenu
>
> menu "Filesystem and flash utilities"
> diff --git a/package/yq/Config.in b/package/yq/Config.in
> new file mode 100644
> index 0000000000..d85b3e5601
> --- /dev/null
> +++ b/package/yq/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_YQ
> + bool "yq"
> + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
> + select BR2_PACKAGE_HOST_GO
My understanding is that yq is wrapper for jq. It's README says “Before
using `yq`, you also have to install its dependency, `jq`.”
Shouldn't this package then select BR2_PACKAGE_JQ?
Regards,
Edgar Bonet.
> + help
> + A lightweight and portable command-line YAML, JSON, INI
> + and XML processor, yq uses jq (a popular JSON processor)
> + like syntax.
> +
> + https://mikefarah.gitbook.io/yq/
> diff --git a/package/yq/yq.hash b/package/yq/yq.hash
> new file mode 100644
> index 0000000000..bc9dccad81
> --- /dev/null
> +++ b/package/yq/yq.hash
> @@ -0,0 +1,3 @@
> +# Locally calculated
> +sha256 39296b55e33962ef838cd8a1bc0e9850e775de4cc3843bf15f099324069d2632 yq-4.45.2-go2.tar.gz
> +sha256 697db34dabb21562fe84487a2ccd031fbd45382b89c2cbdec8ef31682c486040 LICENSE
> diff --git a/package/yq/yq.mk b/package/yq/yq.mk
> new file mode 100644
> index 0000000000..b42b8e652c
> --- /dev/null
> +++ b/package/yq/yq.mk
> @@ -0,0 +1,13 @@
> +################################################################################
> +#
> +# yq
> +#
> +################################################################################
> +
> +YQ_VERSION = 4.45.2
> +YQ_SITE = $(call github,mikefarah,yq,v$(YQ_VERSION))
> +YQ_LICENSE = MIT
> +YQ_LICENSE_FILES = LICENSE
> +YQ_GOMOD = github.com/mikefarah/yq/v4
> +
> +$(eval $(golang-package))
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH] package/yq: add new package
2025-11-18 15:52 ` Edgar Bonet via buildroot
@ 2025-11-18 16:19 ` Thomas Devoogdt
2025-11-18 19:52 ` Edgar Bonet via buildroot
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Devoogdt @ 2025-11-18 16:19 UTC (permalink / raw)
To: Edgar Bonet
Cc: Thomas Devoogdt, buildroot, Christian Stewart, Thomas Devoogdt
Hi Edgar,
I don't see any indication that yq might need jq,
yq is a self contained go package. I also don't see
It is used when running strace. It just shares the same
syntax as jq.
Kind regards,
Thomas Devoogdt
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH] package/yq: add new package
2025-11-18 16:19 ` Thomas Devoogdt
@ 2025-11-18 19:52 ` Edgar Bonet via buildroot
0 siblings, 0 replies; 8+ messages in thread
From: Edgar Bonet via buildroot @ 2025-11-18 19:52 UTC (permalink / raw)
To: Thomas Devoogdt; +Cc: buildroot, Christian Stewart, Thomas Devoogdt
Thomas Devoogdt wrote:
> I don't see any indication that yq might need jq, [...]
Oh, wait, I was confused...
It turns out there are two independent implementations of yq[1]. My
Ubuntu desktop uses the one that is a wrapper around jq[2], whereas your
patch uses the standalone implementation[3].
So you are right, no need to select BR2_PACKAGE_JQ.
Sorry for the noise.
Edgar Bonet.
[1] https://unix.stackexchange.com/a/774103
[2] https://kislyuk.github.io/yq/
[3] https://mikefarah.gitbook.io/yq/
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH] package/yq: add new package
2025-11-18 14:53 [Buildroot] [PATCH] package/yq: add new package Thomas Devoogdt
2025-11-18 15:52 ` Edgar Bonet via buildroot
@ 2025-11-30 16:44 ` Peter Korsgaard
2025-12-01 11:26 ` [Buildroot] [PATCH v2 1/2] " Thomas Devoogdt
1 sibling, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2025-11-30 16:44 UTC (permalink / raw)
To: Thomas Devoogdt; +Cc: buildroot, Christian Stewart, Thomas Devoogdt
>>>>> "Thomas" == Thomas Devoogdt <thomas@devoogdt.com> writes:
> From: Thomas Devoogdt <thomas.devoogdt@barco.com>
> Version 4.45.2 was selected as newer versions require Go 1.24 [1],
> which is not yet available in Buildroot.
Not yet available? Do you mean in 2025.02.x? Master has 1.25.x since
September.
Sticking to 4.45.2 is not really nice as it apparently introduced a
number of regressions:
https://github.com/mikefarah/yq/releases/tag/v4.45.3
https://github.com/mikefarah/yq/releases/tag/v4.45.4
> package/Config.in | 1 +
> package/yq/Config.in | 10 ++++++++++
> package/yq/yq.hash | 3 +++
> package/yq/yq.mk | 13 +++++++++++++
> 4 files changed, 27 insertions(+)
> create mode 100644 package/yq/Config.in
> create mode 100644 package/yq/yq.hash
> create mode 100644 package/yq/yq.mk
Please also add a DEVELOPERS entry for it, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/yq: add new package
2025-11-30 16:44 ` Peter Korsgaard
@ 2025-12-01 11:26 ` Thomas Devoogdt
2025-12-01 11:26 ` [Buildroot] [PATCH v2 2/2] package/yq: bump to 4.49.2 Thomas Devoogdt
2025-12-28 14:48 ` [Buildroot] [PATCH v2 1/2] package/yq: add new package Thomas Petazzoni via buildroot
0 siblings, 2 replies; 8+ messages in thread
From: Thomas Devoogdt @ 2025-12-01 11:26 UTC (permalink / raw)
To: peter; +Cc: buildroot, christian, thomas.devoogdt, thomas
From: Thomas Devoogdt <thomas.devoogdt@barco.com>
Version 4.45.2 was selected as newer versions require Go 1.24 [1],
which is not yet available in Buildroot 2025.02.x.
[1] https://github.com/mikefarah/yq/commit/5bc2cd03da9139160db70901ffb8002bf6e242d5
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
---
v2:
- Added DEVELOPERS entry
- Fixed Go version mention to 2025.02.x
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/yq/Config.in | 10 ++++++++++
package/yq/yq.hash | 3 +++
package/yq/yq.mk | 13 +++++++++++++
5 files changed, 28 insertions(+)
create mode 100644 package/yq/Config.in
create mode 100644 package/yq/yq.hash
create mode 100644 package/yq/yq.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index d4e6335f25..5083db7889 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3183,6 +3183,7 @@ F: package/vuejs-router/
N: Thomas Devoogdt <thomas@devoogdt.com>
F: package/fluent-bit/
F: package/libsoup3/
+F: package/yq/
N: Thomas Huth <th.huth+br@posteo.eu>
F: package/ascii-invaders/
diff --git a/package/Config.in b/package/Config.in
index 83414b3e0b..e809491575 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -203,6 +203,7 @@ menu "Development tools"
source "package/tree/Config.in"
source "package/unifdef/Config.in"
source "package/yasm/Config.in"
+ source "package/yq/Config.in"
endmenu
menu "Filesystem and flash utilities"
diff --git a/package/yq/Config.in b/package/yq/Config.in
new file mode 100644
index 0000000000..d85b3e5601
--- /dev/null
+++ b/package/yq/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_YQ
+ bool "yq"
+ depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
+ select BR2_PACKAGE_HOST_GO
+ help
+ A lightweight and portable command-line YAML, JSON, INI
+ and XML processor, yq uses jq (a popular JSON processor)
+ like syntax.
+
+ https://mikefarah.gitbook.io/yq/
diff --git a/package/yq/yq.hash b/package/yq/yq.hash
new file mode 100644
index 0000000000..bc9dccad81
--- /dev/null
+++ b/package/yq/yq.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 39296b55e33962ef838cd8a1bc0e9850e775de4cc3843bf15f099324069d2632 yq-4.45.2-go2.tar.gz
+sha256 697db34dabb21562fe84487a2ccd031fbd45382b89c2cbdec8ef31682c486040 LICENSE
diff --git a/package/yq/yq.mk b/package/yq/yq.mk
new file mode 100644
index 0000000000..b42b8e652c
--- /dev/null
+++ b/package/yq/yq.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# yq
+#
+################################################################################
+
+YQ_VERSION = 4.45.2
+YQ_SITE = $(call github,mikefarah,yq,v$(YQ_VERSION))
+YQ_LICENSE = MIT
+YQ_LICENSE_FILES = LICENSE
+YQ_GOMOD = github.com/mikefarah/yq/v4
+
+$(eval $(golang-package))
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 2/2] package/yq: bump to 4.49.2
2025-12-01 11:26 ` [Buildroot] [PATCH v2 1/2] " Thomas Devoogdt
@ 2025-12-01 11:26 ` Thomas Devoogdt
2025-12-28 14:48 ` [Buildroot] [PATCH v2 1/2] package/yq: add new package Thomas Petazzoni via buildroot
1 sibling, 0 replies; 8+ messages in thread
From: Thomas Devoogdt @ 2025-12-01 11:26 UTC (permalink / raw)
To: peter; +Cc: buildroot, christian, thomas.devoogdt, thomas
Notes:
- https://github.com/mikefarah/yq/releases/tag/v4.45.3
- https://github.com/mikefarah/yq/releases/tag/v4.45.4
- https://github.com/mikefarah/yq/releases/tag/v4.46.1
- https://github.com/mikefarah/yq/releases/tag/v4.47.1
- https://github.com/mikefarah/yq/releases/tag/v4.47.2
- https://github.com/mikefarah/yq/releases/tag/v4.48.1
- https://github.com/mikefarah/yq/releases/tag/v4.48.2
- https://github.com/mikefarah/yq/releases/tag/v4.49.1
- https://github.com/mikefarah/yq/releases/tag/v4.49.2
Various regression fixes, as noticed in
https://lore.kernel.org/buildroot/877bv7ii70.fsf@dell.be.48ers.dk/
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
---
v2:
- New patch to fix some regression as noticed in
https://lore.kernel.org/buildroot/877bv7ii70.fsf@dell.be.48ers.dk/
---
package/yq/yq.hash | 2 +-
package/yq/yq.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/yq/yq.hash b/package/yq/yq.hash
index bc9dccad81..519d1c9a3e 100644
--- a/package/yq/yq.hash
+++ b/package/yq/yq.hash
@@ -1,3 +1,3 @@
# Locally calculated
-sha256 39296b55e33962ef838cd8a1bc0e9850e775de4cc3843bf15f099324069d2632 yq-4.45.2-go2.tar.gz
+sha256 291334bc00863c144098b5b0a723a5c769df115c46938e17920917aa24776591 yq-4.49.2-go2.tar.gz
sha256 697db34dabb21562fe84487a2ccd031fbd45382b89c2cbdec8ef31682c486040 LICENSE
diff --git a/package/yq/yq.mk b/package/yq/yq.mk
index b42b8e652c..10d0959791 100644
--- a/package/yq/yq.mk
+++ b/package/yq/yq.mk
@@ -4,7 +4,7 @@
#
################################################################################
-YQ_VERSION = 4.45.2
+YQ_VERSION = 4.49.2
YQ_SITE = $(call github,mikefarah,yq,v$(YQ_VERSION))
YQ_LICENSE = MIT
YQ_LICENSE_FILES = LICENSE
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH v2 1/2] package/yq: add new package
2025-12-01 11:26 ` [Buildroot] [PATCH v2 1/2] " Thomas Devoogdt
2025-12-01 11:26 ` [Buildroot] [PATCH v2 2/2] package/yq: bump to 4.49.2 Thomas Devoogdt
@ 2025-12-28 14:48 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 8+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-12-28 14:48 UTC (permalink / raw)
To: Thomas Devoogdt; +Cc: thomas.devoogdt, christian, buildroot
Hello Thomas,
On Mon, 1 Dec 2025 12:26:20 +0100
Thomas Devoogdt <thomas@devoogdt.com> wrote:
> From: Thomas Devoogdt <thomas.devoogdt@barco.com>
>
> Version 4.45.2 was selected as newer versions require Go 1.24 [1],
> which is not yet available in Buildroot 2025.02.x.
>
> [1] https://github.com/mikefarah/yq/commit/5bc2cd03da9139160db70901ffb8002bf6e242d5
>
> Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
Thanks, both patches applied, but squashed into a single patch. Indeed,
there's no point in adding a new package and bumping it right after.
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-12-28 14:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-18 14:53 [Buildroot] [PATCH] package/yq: add new package Thomas Devoogdt
2025-11-18 15:52 ` Edgar Bonet via buildroot
2025-11-18 16:19 ` Thomas Devoogdt
2025-11-18 19:52 ` Edgar Bonet via buildroot
2025-11-30 16:44 ` Peter Korsgaard
2025-12-01 11:26 ` [Buildroot] [PATCH v2 1/2] " Thomas Devoogdt
2025-12-01 11:26 ` [Buildroot] [PATCH v2 2/2] package/yq: bump to 4.49.2 Thomas Devoogdt
2025-12-28 14:48 ` [Buildroot] [PATCH v2 1/2] package/yq: add new package Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox