couchdb
couchdb copied to clipboard
Build failing on Debian Trixie
Description
When building on Debian Trixie, the only version of libmozjs currently available is 128. However the configure script does not find it.
Steps to Reproduce
On Debian Trixie:
apt-get install pkg-config erlang libicu-dev libmozjs-128-dev libcurl4-openssl-dev
./configure --disable-docs --spidermonkey-version 128
Output:
ERROR: SpiderMonkey 128 is not found. Please specify with --spidermonkey-version.
Expected Behaviour
Configure is successful
Your Environment
- CouchDB version used: 3.5.0
- Browser name and version: n/a
- Operating system and version: Debian Trixie (current Alpha)
Additional Context
It appears that Debian Trixie installs the libmozjs includes in /usr/include/x86_64-linux-gnu/mozjs-128 while CouchDB expects it to be in /usr/include/mozjs-128.
Adding a link makes the build work.
Thanks for reaching out @plinss.
We should update the locations we look at include files or maybe use pkg-config on some of these systems.
Should be fixed with #5626.