jq icon indicating copy to clipboard operation
jq copied to clipboard

jq does not compile when the path to jq contains spaces

Open kjellwinblad opened this issue 2 years ago • 0 comments

Describe the bug jq does not compile when the path to jq contains spaces.

To Reproduce

mkdir "dir with space"
cd "dir with space2
git clone [email protected]:stedolan/jq.git
cd jq
git submodule update --init # if building from git to get oniguruma
autoreconf -fi              # if building from git
./configure --with-oniguruma=builtin
make -j8
CC       src/main.o
CCLD     libjq.la
/usr/bin/sed: can't read space/jq/modules/oniguruma/src/.libs/libonig.la: No such file or directory
libtool:   error: 'space/jq/modules/oniguruma/src/.libs/libonig.la' is not a valid libtool archive
make[2]: *** [Makefile:978: libjq.la] Error 1
make[2]: Leaving directory '/home/user/src/work/emqx/dir with space/jq'
make[1]: *** [Makefile:1179: all-recursive] Error 1
make[1]: Leaving directory '/home/user/src/work/emqx/dir with space/jq'
make: *** [Makefile:810: all] Error 2

Expected behavior jq should compile without errors even if there are spaces in the path.

Environment (please complete the following information):

  • Arch Linux (2022-07-08)
  • jq master branch (commit cff5336ec71b6fee396a95bb0e4bea365e0cd1e8)

Additional context Not being able to have spaces in the path can be especially problematic if jq is integrated in other software and their build process.

kjellwinblad avatar Jul 08 '22 09:07 kjellwinblad