jq icon indicating copy to clipboard operation
jq copied to clipboard

version 1.6 tar compile fails on builtin oniguruma

Open terefang opened this issue 4 years ago • 2 comments
trafficstars

i had to do the following to make it work

tar -xvf jq-1.6.tar.gz
cd jq-1.6
cd modules/oniguruma
autoreconf -fi
cd ../..
./configure --with-oniguruma=builtin

terefang avatar Nov 15 '21 10:11 terefang

modules/oniguruma is a git submodule. So when cloning the repository, git clone --recursive https://github.com/stedolan/jq is necessary to get that as well. Building then works after running autoreconf -fi in that submodule as you suggested. Thank you!

The docs should reflect that.

nobodyinperson avatar Nov 18 '21 06:11 nobodyinperson

@nobodyinperson docs won't fix this issue. It has nothing to do with oniguruma being a git submodule. The issue is not missing submodule sources. It is about the release source tarball, which does contain required sources under modules/oniguruma, but doesn't contain modules/oniguruma/configure script.

Because of that, the released sources cannot be built with just the usual ./configure && make

For me the issue is that I'm trying to build from tarball specifically because I need to avoid having to run autoreconf, because where I'm building, autoreconf on jq fails because of too old autoconf, and autoreconf on oniguruma fails because of too old automake.

lightmare avatar Mar 31 '22 12:03 lightmare

Same issue as #1872, we need to be careful in the next release.

itchyny avatar Jun 25 '23 13:06 itchyny