24 Commits

Author SHA256 Message Date
ff573a7f00 Accepting request 1308595 from openSUSE:Factory:RISCV
- Enable valgrind on riscv64

OBS-URL: https://build.opensuse.org/request/show/1308595
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=44
2025-10-03 09:12:05 +00:00
0c2696b2a1 Accepting request 1289560 from home:mnhauke
- Update to version 1.8.1
  Security fixes
  * CVE-2025-49014: Fix heap use after free in f_strftime,
    f_strflocaltime.
  * GHSA-f946-j5j2-4w5m: Fix stack overflow in node_min_byte_len
    of oniguruma.
  CLI changes
  * Fix assertion failure when syntax error happens at the end of
    the query.
  Language changes
  * Revert the change of reduce/foreach state variable in 1.8.0.
  * This change was reverted due to serious performance regression.

OBS-URL: https://build.opensuse.org/request/show/1289560
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=42
2025-07-02 07:32:00 +00:00
47e42d1c31 Accepting request 1286713 from home:mnhauke
- Update to version 1.8.0
  Security fixes
  * CVE-2024-23337: Fix signed integer overflow in jvp_array_write
    and jvp_object_rehash.
  * CVE-2024-53427: Reject NaN with payload while parsing JSON.
  * CVE-2025-48060: Fix heap buffer overflow in jv_string_vfmt.
  * Fix use of uninitialized value in check_literal.
  * Fix segmentation fault on strftime/1, strflocaltime/1.
  * Fix unhandled overflow in @base64d.
  CLI changes
  * Fix --indent 0 implicitly enabling --compact-output.
  * Improve error messages to show problematic position in the
    filter.
  * Include column number in parser and compiler error messages.
  * Fix error message for string literal beginning with single
    quote.
  * Improve JQ_COLORS environment variable to support larger
    escapes like truecolor.
  * Add --library-path long option for -L.
  * Fix --slurp --stream when input has no trailing newline
    character.
  * Fix --indent option to error for malformed values.
  * Fix option parsing of --binary on non-Windows platforms.
  * Fix issue with ~/.jq on Windows where $HOME is not set.
  * Increase the maximum parsing depth for JSON to 10000.
  * Parse short options in order given.
  * Consistently reset color formatting.
  New functions
  * Add trim/0, ltrim/0 and rtrim/0 to trim leading and trailing
    white spaces.

OBS-URL: https://build.opensuse.org/request/show/1286713
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=40
2025-06-18 16:34:17 +00:00
425671222d Accepting request 1285207 from home:smithfarm:branches:utilities
CVE-2024-23337, bsc#1243450

OBS-URL: https://build.opensuse.org/request/show/1285207
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=38
2025-06-12 16:30:23 +00:00
0a9186cd1a Accepting request 1278863 from home:smithfarm:branches:utilities
CVE-2024-53427, bsc#1238078

OBS-URL: https://build.opensuse.org/request/show/1278863
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=36
2025-05-23 09:57:00 +00:00
e824cbf2df Accepting request 1275019 from home:jamborm:gcc15fixes
- Build with compiler option -std=gnu17 to avoid issues with code
  which is not valid in C23. [boo#1241922]

If the request is OK, please forward it to Factory soon so that we can
switch the default compiler.

OBS-URL: https://build.opensuse.org/request/show/1275019
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=34
2025-05-08 07:32:15 +00:00
17c5d846ba Accepting request 1133610 from home:AndreasStieger:branches:utilities
jq 1.7.1
CVE-2023-50246 (boo#1218034)
CVE-2023-50268 (boo#1218038)

OBS-URL: https://build.opensuse.org/request/show/1133610
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=32
2023-12-19 09:44:30 +00:00
7ed013e173 Accepting request 1126574 from home:dirkmueller:Factory
- build with valgrind only on 64 bit architectures

- Add CVE-2015-8863.patch to fix a heap overflow bsc#976992

OBS-URL: https://build.opensuse.org/request/show/1126574
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=30
2023-11-15 15:16:19 +00:00
d534e59a27 Accepting request 1113768 from home:AndreasStieger:branches:utilities
fix version output [boo#1215737]

OBS-URL: https://build.opensuse.org/request/show/1113768
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=28
2023-09-27 07:38:36 +00:00
339667b647 Accepting request 1109563 from home:mnhauke
- Update to version 1.7
  * Make object key color configurable using JQ_COLORS environment
    variable.
  * Change the default color of null to Bright Black.
  * Respect NO_COLOR environment variable to disable color output.
  * Improved --help output. Now mentions all options and nicer
    order.
  * Fix multiple issues of exit code using --exit-code/-e option.
  * Add --raw-output0 for NUL (zero byte) separated output.
  * Fix assert crash and validate JSON for --jsonarg.
  * Remove deprecated --argfile option.
  Language changes
  * Use decimal number literals to preserve precision. Comparison
    operations respects precision but arithmetic operations might
    truncate.
  * Adds new builtin pick(stream) to emit a projection of the
    input object or array.
  * Adds new builtin debug(msgs) that works like debug but applies
    a filter on the input before writing to stderr.
  * Adds new builtin scan($re; $flags). Was documented but not
    implemented.
  * Adds new builtin abs to get absolute value. This potentially
    allows the literal value of numbers to be preserved as length
    and fabs convert to float.
  * Allow if without else-branch. When skipped the else-branch
    will be . (identity).
  * Allow use of $binding as key in object literals.
  * Allow dot between chained indexes when using .["index"]
  * Allow dot for chained value iterator .[], .[]?
  * Fix try/catch catches more than it should.

OBS-URL: https://build.opensuse.org/request/show/1109563
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=26
2023-09-18 10:37:22 +00:00
72b63671fc Accepting request 1005649 from home:dirkmueller:Factory
- build without valgrind on riscv64 - does not exist (yet)

OBS-URL: https://build.opensuse.org/request/show/1005649
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=24
2022-10-06 10:14:02 +00:00
0f243da03c - Make jq depend on libjq1, so upgrading jq upgrades both
See: https://github.com/stedolan/jq/issues/1904

OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=22
2019-08-21 08:24:12 +00:00
94a4b7b4d3 Accepting request 713473 from home:mook_work:branches:utilities
Make jq depend on libjq1, so upgrading jq upgrades both

See https://github.com/stedolan/jq/issues/1904 for an instance of this
causing issues where manually installing jq 1.6 from obs://utilities on
a Leap 15.1 system with existing jq breaks the install.

I'm not used to the OBS flow yet, please let me know if you'd like any
changes.

OBS-URL: https://build.opensuse.org/request/show/713473
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=21
2019-07-09 10:52:18 +00:00
Ismail Dönmez
ba5049c0fe Accepting request 646096 from home:avindra:branches:utilities
- Update to version 1.6
  * Destructuring Alternation
  * many new builtins (see docs)
  * Add support for ASAN and UBSAN
  * Make it easier to use jq with shebangs
  * Add $ENV builtin variable to access environment
  * Add JQ_COLORS env var for configuring the output colors
  * change: Calling jq without a program argument now always assumes
    "." for the program, regardless of stdin/stdout
  * fix: Make sorting stable regardless of qsort.
- cleanup with spec-cleaner
- drop CVE-2015-8863.patch (upstreamed in 8eb1367ca44e772963e704a700ef72ae2e12babd)
- drop CVE-2016-4074.patch (upstreamed in fd4ae8304e23007672af9a37855c7a76de7c78cf)

OBS-URL: https://build.opensuse.org/request/show/646096
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=19
2018-11-03 08:58:11 +00:00
Ismail Dönmez
6cca2e9a24 - Add CVE-2016-4074.patch to prevent a stack exhaustion
CVE-2016-4074 bsc#1014176

OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=17
2017-02-03 09:28:44 +00:00
7ccff38adc Accepting request 448457 from home:pluskalm:branches:utilities
- Update tests dependencies to increase test coverage (bsc#1017157)
  * valgrind based tests were skipped
- Do not run tests in qemu builds, valgrind does not work reliably
  in such conditions

OBS-URL: https://build.opensuse.org/request/show/448457
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=15
2017-01-02 23:10:44 +00:00
Ismail Dönmez
6bc680ca60 Accepting request 409046 from home:pluskalm:branches:utilities
- Make building more verbose
- Run tests

OBS-URL: https://build.opensuse.org/request/show/409046
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=13
2016-07-16 18:11:18 +00:00
Ismail Dönmez
61e4426ac7 - Add CVE-2015-8863.patch to fix a heap overflow bsc#976992
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=11
2016-04-25 11:52:50 +00:00
Ismail Dönmez
7e7e9283ba Accepting request 324294 from home:namtrac:branches:utilities
- Update to version 1.5
  * Regexp support
  * A proper module system
  * Destructuring syntax
  * Math functions
  * An online streaming parser
  * Minimal I/O builtins (inputs, debug)
  * try/catch for catching and handling errors
  * Tail call optimization
  * Datetime functions
  * Performance enhancements
- Add oniguruma-devel BuildRequires for regexp support

OBS-URL: https://build.opensuse.org/request/show/324294
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=9
2015-08-21 08:59:18 +00:00
Ismail Dönmez
3564603ce3 - Don't package static libs
- Fix rpath on the main binary

OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=7
2014-06-27 11:08:04 +00:00
Ismail Dönmez
e5d5c5a389 Add some changelog
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=6
2014-06-24 11:37:07 +00:00
57c3f5a20e Accepting request 237443 from home:prusnak:branches:utilities
- updated to 1.4

OBS-URL: https://build.opensuse.org/request/show/237443
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=5
2014-06-15 21:14:53 +00:00
1782a46d8f Accepting request 203654 from home:dec16180:ldig:branches:utilities
license update: MIT and CC-BY-3.0
documentation is licensed under CC-BY-3.0

OBS-URL: https://build.opensuse.org/request/show/203654
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=3
2013-10-17 19:34:50 +00:00
Ismail Dönmez
848538bd7f Accepting request 201621 from home:robert_munteanu
OBS-URL: https://build.opensuse.org/request/show/201621
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=1
2013-10-01 17:06:13 +00:00