Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 808471

Summary: app-misc/jq doesn't show version number
Product: Gentoo Linux Reporter: Hasan Calisir <hasan.calisir>
Component: Current packagesAssignee: Victor Payno <vpayno+gentoo>
Status: RESOLVED FIXED    
Severity: normal CC: chutzpah, gentoo, hasan.calisir
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hasan Calisir 2021-08-15 17:00:07 UTC
Minor but important error.
It breaks scripts that depend specific version of jq.

----------------------------------------------------
jq --version
jq-jq_version
----------------------------------------------------

----------------------------------------------------
jq --help
jq - commandline JSON processor [version jq_version]
----------------------------------------------------

Possibly blamed line in ebuild;
-------------------------------
sed -r -e "s:(m4_define\(\[jq_version\],) .+\):\1 \[${PV}\]):" -i configure.ac || die
Comment 1 Mike Gilbert gentoo-dev 2021-08-15 17:55:55 UTC
*** Bug 808474 has been marked as a duplicate of this bug. ***
Comment 2 madmaurice 2022-04-19 11:48:05 UTC
There seems to have been progress on this, however now the version is "-"

$ jq --version
jq--

Not really an improvement.
Comment 3 Larry the Git Cow gentoo-dev 2023-02-10 22:18:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d36dfdd1c2ab7f45c3e86dac63968def95140d50

commit d36dfdd1c2ab7f45c3e86dac63968def95140d50
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2023-02-10 22:04:57 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2023-02-10 22:17:53 +0000

    app-misc/jq: add 1.7_pre20230210
    
    Also fix problem where `jq --version` doesn't have the right
    output (bug #808471)
    
    Closes: https://bugs.gentoo.org/808471
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 app-misc/jq/Manifest                       |  1 +
 app-misc/jq/files/jq-1.7-warnings-r1.patch | 37 +++++++++++++
 app-misc/jq/jq-1.7_pre20230210.ebuild      | 88 ++++++++++++++++++++++++++++++
 3 files changed, 126 insertions(+)