[meta-oe] jq: upgrade 1.6 -> 2021-10-24 git

Message ID 20220118230000.834968-1-wak@google.com
State New
Headers show
Series [meta-oe] jq: upgrade 1.6 -> 2021-10-24 git | expand

Commit Message

William Kennington Jan. 18, 2022, 11 p.m. UTC
JQ has gone through more than 3 years of code changes and has had
significant performance improvements since the last release. The team is
still figuring out a new release process. Use the latest git commit to
pull in these changes.

Signed-off-by: William A. Kennington III <wak@google.com>
---
 meta-oe/recipes-devtools/jq/{jq_1.6.bb => jq_git.bb} | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
 rename meta-oe/recipes-devtools/jq/{jq_1.6.bb => jq_git.bb} (71%)

Comments

Khem Raj Jan. 19, 2022, 2:42 a.m. UTC | #1
this fails license checks. how was this tested?

https://errors.yoctoproject.org/Errors/Details/622753/

On Tue, Jan 18, 2022 at 3:00 PM William A. Kennington III via
lists.openembedded.org <wak=google.com@lists.openembedded.org> wrote:
>
> JQ has gone through more than 3 years of code changes and has had
> significant performance improvements since the last release. The team is
> still figuring out a new release process. Use the latest git commit to
> pull in these changes.
>
> Signed-off-by: William A. Kennington III <wak@google.com>
> ---
>  meta-oe/recipes-devtools/jq/{jq_1.6.bb => jq_git.bb} | 11 ++++-------
>  1 file changed, 4 insertions(+), 7 deletions(-)
>  rename meta-oe/recipes-devtools/jq/{jq_1.6.bb => jq_git.bb} (71%)
>
> diff --git a/meta-oe/recipes-devtools/jq/jq_1.6.bb b/meta-oe/recipes-devtools/jq/jq_git.bb
> similarity index 71%
> rename from meta-oe/recipes-devtools/jq/jq_1.6.bb
> rename to meta-oe/recipes-devtools/jq/jq_git.bb
> index bfaeed5fe..102bb9f15 100644
> --- a/meta-oe/recipes-devtools/jq/jq_1.6.bb
> +++ b/meta-oe/recipes-devtools/jq/jq_git.bb
> @@ -8,13 +8,10 @@ SECTION = "utils"
>  LICENSE = "MIT"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=15d03e360fa7399f76d5a4359fc72cbf"
>
> -SRC_URI = "https://github.com/stedolan/${BPN}/releases/download/${BP}/${BP}.tar.gz"
> -
> -UPSTREAM_CHECK_URI = "https://github.com/stedolan/${BPN}/releases"
> -UPSTREAM_CHECK_REGEX = "jq\-(?P<pver>(\d+\.\d+))(?!_\d+).tar.gz"
> -
> -SRC_URI[md5sum] = "e68fbd6a992e36f1ac48c99bbf825d6b"
> -SRC_URI[sha256sum] = "5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72"
> +PV = "1.16+git${SRCREV}"
> +SRC_URI = "git://github.com/stedolan/jq;protocol=https"
> +SRCREV = "a9f97e9e61a910a374a5d768244e8ad63f407d3e"
> +S = "${WORKDIR}/git"
>
>  inherit autotools-brokensep
>
> --
> 2.34.1.703.g22d0c6ccf7-goog
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#94922): https://lists.openembedded.org/g/openembedded-devel/message/94922
> Mute This Topic: https://lists.openembedded.org/mt/88522693/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
William Kennington Jan. 19, 2022, 3:58 a.m. UTC | #2
This was an error in translation as I cherry-picked this change into a
working tree and fixed the hash there without fixing the original commit.
Otherwise this was tested on some machines here.

Patch

diff --git a/meta-oe/recipes-devtools/jq/jq_1.6.bb b/meta-oe/recipes-devtools/jq/jq_git.bb
similarity index 71%
rename from meta-oe/recipes-devtools/jq/jq_1.6.bb
rename to meta-oe/recipes-devtools/jq/jq_git.bb
index bfaeed5fe..102bb9f15 100644
--- a/meta-oe/recipes-devtools/jq/jq_1.6.bb
+++ b/meta-oe/recipes-devtools/jq/jq_git.bb
@@ -8,13 +8,10 @@  SECTION = "utils"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=15d03e360fa7399f76d5a4359fc72cbf"
 
-SRC_URI = "https://github.com/stedolan/${BPN}/releases/download/${BP}/${BP}.tar.gz"
-
-UPSTREAM_CHECK_URI = "https://github.com/stedolan/${BPN}/releases"
-UPSTREAM_CHECK_REGEX = "jq\-(?P<pver>(\d+\.\d+))(?!_\d+).tar.gz"
-
-SRC_URI[md5sum] = "e68fbd6a992e36f1ac48c99bbf825d6b"
-SRC_URI[sha256sum] = "5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72"
+PV = "1.16+git${SRCREV}"
+SRC_URI = "git://github.com/stedolan/jq;protocol=https"
+SRCREV = "a9f97e9e61a910a374a5d768244e8ad63f407d3e"
+S = "${WORKDIR}/git"
 
 inherit autotools-brokensep