From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: Re: [ptxdist] [APPLIED] jq: Make regex support optional
Date: Thu, 12 Jun 2025 21:32:05 +0200 [thread overview]
Message-ID: <20250612193205.2321109-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20250603090901.1066406-3-ada@thorsis.com>
Thanks, applied as b2e08feb25af2911a9fe83579fc8baaeefdd28e0.
Michael
[sent from post-receive hook]
On Thu, 12 Jun 2025 21:32:05 +0200, Alexander Dahl <ada@thorsis.com> wrote:
> Initially the jq package had this turned off, it was turned on later.
> Make it optional now to simplify license handling with libonig and fix
> the build with the upcoming version bump to jq 1.8.0.
>
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20250603090901.1066406-3-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/jq.in b/rules/jq.in
> index 03354642b4a9..0e30fbceb49c 100644
> --- a/rules/jq.in
> +++ b/rules/jq.in
> @@ -1,9 +1,21 @@
> ## SECTION=shell_and_console
>
> -config JQ
> +menuconfig JQ
> tristate
> - prompt "jq"
> + prompt "jq "
> + select LIBONIG if JQ_REGEX
> help
> lightweight and flexible command-line JSON processor
>
> +if JQ
> +
> +config JQ_REGEX
> + bool
> + prompt "regular expression support"
> + default y
> + help
> + Optional support for match/test/sub and related functions.
> +
> +endif
> +
> # vim: ft=kconfig noet tw=72
> diff --git a/rules/jq.make b/rules/jq.make
> index 4f7ca95ad20a..f1f7fc6f886f 100644
> --- a/rules/jq.make
> +++ b/rules/jq.make
> @@ -43,7 +43,7 @@ JQ_CONF_OPT := \
> --disable-error-injection \
> --disable-all-static \
> --disable-decnum \
> - --with-oniguruma=prefix
> + --$(call ptx/wwo, PTXCONF_JQ_REGEX)-oniguruma
>
> # ----------------------------------------------------------------------------
> # Target-Install
> @@ -59,7 +59,6 @@ $(STATEDIR)/jq.targetinstall:
> @$(call install_fixup, jq,DESCRIPTION,missing)
>
> @$(call install_lib, jq, 0, 0, 0644, libjq)
> - @$(call install_lib, jq, 0, 0, 0644, libonig)
> @$(call install_copy, jq, 0, 0, 0755, -, /usr/bin/jq)
>
> @$(call install_finish, jq)
next prev parent reply other threads:[~2025-06-12 19:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-03 9:08 [ptxdist] [PATCH v2 0/3] jq: license update and version bump Alexander Dahl via ptxdist
2025-06-03 9:08 ` [ptxdist] [PATCH v2 1/3] libonig: Add new package Alexander Dahl via ptxdist
2025-06-12 19:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-06-03 9:09 ` [ptxdist] [PATCH v2 2/3] jq: Make regex support optional Alexander Dahl via ptxdist
2025-06-12 19:32 ` Michael Olbrich [this message]
2025-06-03 9:09 ` [ptxdist] [PATCH v2 3/3] jq: version bump 1.7.1 -> 1.8.0 Alexander Dahl via ptxdist
2025-06-12 19:32 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250612193205.2321109-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ada@thorsis.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox