jq: refactor variants and fix PROVIDES
authorJosef Schlehofer <pepe.schlehofer@gmail.com>
Mon, 29 Dec 2025 12:11:18 +0000 (13:11 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 30 Dec 2025 00:07:20 +0000 (01:07 +0100)
commit142331bdb8b26680f03ade669dd27c40e2b238eb
tree2b79d18bf5fcf04ee3a0fa7c39c2a0acbc79c333
parent73d8b6c6f3ed25dcba6d4609c9e3995fb48dc48d
jq: refactor variants and fix PROVIDES

Refactor package variants definition to be cleaner and more robust.
E.g.:
- Remove redundant PROVIDES:=jq from the main 'jq' package (it provides
  itself automatically).
- Keep PROVIDES:=jq only on the 'jq-full' variant so it can serve as a
  drop-in replacement.
- Use $(CP) macro rather than $(INSTALL_BIN) to preserve symlinks on shared objects
INSTALL_BIN turns all of the symlinks to files, increasing size.

Fixes: 711a19c4b23f3517ece5296d323c8f0220a0ff4e ("jq: provide regex support in additional package jq-full")
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
utils/jq/Makefile