The problem is quite obvious: $ rpm -q jq jq-1.7.1-4.fc40.x86_64 $ jq --version jq- This breaks tools that check the version to ensure the used query syntax is supported. Reproducible: Always Steps to Reproduce: 1. install jq 2. run 'jq --version' 3. notice the incomplete string Actual Results: The command prints 'jq-'. Expected Results: The command should print 'jq-1.7.1'.
I think the expected result should be 'jq-1.7', that's because on Fedora 39 the displayed version is made of just two digits.
This appears to be an upstream bug/regression introduced in 1.7, and still exists in 1.7.1. Can you please report the bug upstream? Their tracker is at https://github.com/jqlang/jq/issues I've been unsuccessful in patching this thus far as I'm not a C developer, but I'm still trying to find where the root issue lies.
I came up with a fix. https://github.com/jqlang/jq/pull/3099
FEDORA-2024-f1e93cb927 (jq-1.7.1-7.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f1e93cb927
FEDORA-2024-f1e93cb927 has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f1e93cb927` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f1e93cb927 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-f1e93cb927 (jq-1.7.1-7.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.