Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376993 - net-misc/mediatomb[javascript] does not build against dev-lang/spidermonkey-1.8.5
Summary: net-misc/mediatomb[javascript] does not build against dev-lang/spidermonkey-1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 376987
  Show dependency tree
 
Reported: 2011-07-29 20:43 UTC by Ian Stakenvicius (RETIRED)
Modified: 2011-11-17 03:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Stakenvicius (RETIRED) gentoo-dev 2011-07-29 20:43:26 UTC
As stated in the topic.  ./configure fails to find the library;  spidermonkey-1.8.5 provides libmozjs185.so , and also should be queried via pkg-config.  Upstream may have better support.

When spidermonkey-1.8.5 is unmasked, this package will fail to build unless the dependency is updated.

Reproducible: Always
Comment 1 Agostino Sarubbo gentoo-dev 2011-07-30 03:47:27 UTC
Please add always your build log as attachment and emerge --info.
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2011-07-30 04:28:28 UTC
I don't think i emerged this one, i just read through configure.ac et. al..

spidermonkey-1.8.5 does not provide the same lib as earlier versions, it provides libmozjs185.so ... which isn't in the list of libs configure.ac checks for.

Specifically - L953: "AC_CHECK_HEADER(jsapi.h,...."   will succeed, but since mozjs185 is missing from the checks in L993-L1082, it'll fail.  At minimum, an additional "AC_CHECK_LIB(mozjs185,JS_NewObject,..." needs to be added.


HOWEVER, given a look at the code:

src/scripting/script.cc (L520): "glob = JS_NewObject(cx, &global_class, NULL, NULL);"

..this call is invalid in JS_VERSION >= 185 as well; which tells me that the whole codebase will not work with spidermonkey-1.8.5.

This is not a trivial fix; a (rather large) patch or update will be needed from upstream to support spidermonkey-1.8.5.
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2011-11-17 03:49:06 UTC
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.22 2011/04/04 12:19:35 scarabeus Exp $
 
+  17 Nov 2011; Ian Stakenvicius <axs@gentoo.org> mediatomb-0.12.1.ebuild,
+  +files/mediatomb-0.12.1-mozjs185.patch:
+  in-place update to support dev-lang/spidermonkey-1.8.5 for bug 376993
+