jq --version reports no version
Reproduction:
$ docker run --rm -ti alpine:edge sh -c 'apk add jq && jq --version'
Unable to find image 'alpine:edge' locally
edge: Pulling from library/alpine
b790c763077d: Pull complete
Digest: sha256:f2d1645cd73c7e54584dc225da0b5229d19223412d719669ebda764f41396853
Status: Downloaded newer image for alpine:edge
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/2) Installing oniguruma (6.9.8-r1)
(2/2) Installing jq (1.7-r0)
Executing busybox-1.36.1-r6.trigger
OK: 9 MiB in 17 packages
jq-
I think the issue is that the APKBUILD download the tag tar.gz instead of the proper source distribution that has a src/version.h
file. Also if so i think autoreconf -fi
and automake and autoconf build dependencies can be removed.
Original report at https://github.com/jqlang/jq/issues/2890