[ZOO-Discuss] [ZOO Project Trac] #16: JavaScript package on Ubuntu

ZOO Project Trac zoo-dev at cartography.st
Wed Jan 19 05:53:09 PST 2011


#16: JavaScript package on Ubuntu
-------------------+--------------------------------------------------------
Reporter:  reluc   |       Owner:                       
    Type:  defect  |      Status:  new                  
Priority:  major   |   Component:  zoo-kernel           
 Version:  1.0     |    Keywords:  JS config compilation
-------------------+--------------------------------------------------------
 Since Ubuntu 10.4, there is no more mozjs-dev package. This package was
 based on SpiderMonkey 1.7, the last one publish by Mozilla. But Mozilla
 continue to use and improve SpiderMonkey. The actual version is 1.9.2, and
 when Firefox 4 will be out, SpiderMonkey 2.0 will out too.

 Since Firefox 2 and XulRunner 1.8, SpiderMonkey has not to be published
 alone. SpiderMonkey is in XulRunner development package. This mean that we
 don't need to compile SpiderMonkey on Ubuntu or other Linux system to have
 SpiderMonkey, we jsut have to use Xulrunner-devel package.

 The configure script need to be update to look at the good folder for lib
 and include :
 * libmozjs.so is in /usr/lib/xulrunner-devel.1.9.13/lib
 * jsapi.h is in /usr/lib/xulrunner-devel.1.9.2.13/include

 we can specify --with-js=/usr/lib/xulrunner-devel.1.9.13

 I have to do this changes to have a good configuration script :
 * JS_CPPFLAGS="-I$JSHOME/include/js" --> JS_CPPFLAGS="-I$JSHOME/include"
 * JS_LDFLAGS="-L$JSHOME/lib -ljs -lm" --> JS_LDFLAGS="-L$JSHOME/lib
 -lmozjs -lm"
 * JS_LIB="js" --> JS_LIB="mozjs"
 and update the Makefile :
 * JS_FILE= -- >JS_FILE=service_internal_js.o

-- 
Ticket URL: <http://svn.zoo-project.org/trac/ticket/16>
ZOO Project Trac <http://www.zoo-project.org/>
Open WPS Platform


More information about the Zoo-discuss mailing list