Bug 33050 - jq doesn't print version info.
Summary: jq doesn't print version info.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-02 21:52 CEST by Aurelian R
Modified: 2024-04-03 08:45 CEST (History)
0 users

See Also:
Source RPM: jq-1.7.1-1.mga10.src.rpm
CVE:
Status comment:


Attachments

Description Aurelian R 2024-04-02 21:52:27 CEST
"jq" cannot print its version. 
To reproduce: install jq and run "jq -V" and that will print "jq-" only.
This issue seems to arise from the "autoreconf" command from spec file that looses/resets version info.

It's been reported here https://github.com/jqlang/jq/issues/2880 but it looks like they expect people to use their archived configure file and not use autoreconf.
 
To fix this annoyance, in the jq.spec file at %build stage and before autoreconf command add this hack:

sed -i -e "s/test -d.*/echo %{version} \&\& exit/" scripts/version

Regards.
Aurelian R 2024-04-02 21:58:14 CEST

Severity: normal => minor

Comment 1 Aurelian R 2024-04-03 08:45:51 CEST
Fixed in jq-1.7.1-2.mga10
Great, closing ...

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.