Bug 33050

Summary: jq doesn't print version info.
Product: Mageia Reporter: Aurelian R <arusanu>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: jq-1.7.1-1.mga10.src.rpm CVE:
Status comment:

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