configure fail if spidermonkey is installed
Steps to Reproduce:
1. emerge -1 spidermonkey
2. emerge -1 gjs
configure fail :
checking for x86_64-pc-linux-gnu-genhtml... no
checking for genhtml... /usr/bin/genhtml
checking for js-config... /usr/bin/js-config
checking for mozilla-js >= 1.9.2 ... configure: error: >= 1.9.2 is required
gjs is merged
I have found in configure.ac that :
if js-config binary (which come from spidermonkey) is found JS_PACKAGE var is not set.
So the next check fail because JS_PACKAGE is empty
I don't need spidermonkey, then unmerged it and it works now
The initial problem of setting js-config being autodetected is fixed by just setting JS_CONFIG="". However, while linking, ld picks up the libmozjs.so in /usr/lib/ instead of the one in /usr/lib/xulrunner-devel-*/lib/ .
If I can't figure this out, I'll have to add a blocker for spidermonkey to the ebuild...
This is sort of fixed now, thanks for reporting.
*** Bug 359039 has been marked as a duplicate of this bug. ***