From: Alexander Dahl via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>,
Andreas Helmcke <ahelmcke@ela-soft.com>
Subject: [ptxdist] [PATCH v2 2/3] jq: Make regex support optional
Date: Tue, 3 Jun 2025 11:09:00 +0200 [thread overview]
Message-ID: <20250603090901.1066406-3-ada@thorsis.com> (raw)
In-Reply-To: <20250603090901.1066406-1-ada@thorsis.com>
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>
---
rules/jq.in | 16 ++++++++++++++--
rules/jq.make | 3 +--
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/rules/jq.in b/rules/jq.in
index 03354642b..0e30fbceb 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 4f7ca95ad..f1f7fc6f8 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)
--
2.39.5
next prev parent reply other threads:[~2025-06-03 9:09 UTC|newest]
Thread overview: 4+ 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-03 9:09 ` Alexander Dahl via ptxdist [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
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=20250603090901.1066406-3-ada@thorsis.com \
--to=ptxdist@pengutronix.de \
--cc=ada@thorsis.com \
--cc=ahelmcke@ela-soft.com \
/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