glfs/general/genutils/spidermonkey.xml
Krejzi e1a9f414c1 Mark some packages as 7.2 checked. Part 2 - General Utilities.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10550 af4574ff-66df-0310-9fd7-8a98e5e911e0
2012-08-24 11:31:46 +00:00

202 lines
5.8 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY SpiderMonkey-download-http
"http://ftp.mozilla.org/pub/mozilla.org/js/js185-&spidermonkey-version;.tar.gz">
<!ENTITY SpiderMonkey-download-ftp
"ftp://ftp.mozilla.org/pub/mozilla.org/js/js185-&spidermonkey-version;.tar.gz">
<!ENTITY SpiderMonkey-md5sum "a4574365938222adca0a6bd33329cb32">
<!ENTITY SpiderMonkey-size "5.9 MB">
<!ENTITY SpiderMonkey-buildsize "99 MB">
<!ENTITY SpiderMonkey-time "1.1 SBU">
]>
<sect1 id="SpiderMonkey" xreflabel="SpiderMonkey-&spidermonkey-version;">
<?dbhtml filename="SpiderMonkey.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>SpiderMonkey-&spidermonkey-version;</title>
<indexterm zone="SpiderMonkey">
<primary sortas="a-SpiderMonkey">SpiderMonkey</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to SpiderMonkey</title>
<para>
<application>SpiderMonkey</application> is Mozilla's JavaScript engine
written in C/C++. The most recent standalone source code release implements
JavaScript 1.8.5.
</para>
&lfs72_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&SpiderMonkey-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&SpiderMonkey-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &SpiderMonkey-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &SpiderMonkey-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &SpiderMonkey-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &SpiderMonkey-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">SpiderMonkey Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="nspr"/>,
<xref linkend="python2"/> and
<xref linkend="zip"/>
</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/SpiderMonkey"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of SpiderMonkey</title>
<para>
Install <application>SpiderMonkey</application> by running the
following commands:
</para>
<screen><userinput>cd js/src &amp;&amp;
sed -i 's#s \($(SHLIB_\(ABI\|EXACT\)_VER)\)#s $(notdir \1)#' Makefile.in &amp;&amp;
./configure --prefix=/usr --enable-threadsafe --with-system-nspr &amp;&amp;
make</userinput></screen>
<para>
To test the results, issue: <command>TZ=US/Pacific make check</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem>
user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>sed -i 's#s \($(SHLIB_\(ABI\|EXACT\)_VER)\)#s $(notdir \1)#'
Makefile.in</command>: This sed fixes the symlinks for
<filename>libmozjs185.so</filename> so that they are
relative and not absolute symlinks.
</para>
<para>
<command>TZ=US/Pacific make check</command>: the timezone tests were
written to be executed in Pacific time and to assume an mm/dd/yyyy
date format. The test suite runs in the local timezone, so override
its environment to prevent multiple failures in the
<command>check-date-format-tofte.js</command> tests.
</para>
<para>
<option>--enable-threadsafe</option>: This switch enables
support for multiple threads.
</para>
<para>
<option>--with-system-nspr</option>: This parameter forces the
package to link to the system version of <application>NSPR</application>
instead of using its included, and now old, version.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Program</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
js-config
</seg>
<seg>
libmozjs185-1.0.a and libmozjs185.so
</seg>
<seg>
/usr/include/js
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="js-config">
<term><command>js-config</command></term>
<listitem>
<para>
is used to find out <application>SpiderMonkey</application>
compiler and linker flags.
</para>
<indexterm zone="SpiderMonkey js-config">
<primary sortas="b-js-config">js-config</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libmozjs185">
<term><filename class="libraryfile">libmozjs185.so</filename></term>
<listitem>
<para>
contains the <application>Mozilla JavaScript</application> API functions.
</para>
<indexterm zone="SpiderMonkey libmozjs185">
<primary sortas="c-libmozjs185">libmozjs185.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>