[37f746a8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[d615263] | 7 | <!ENTITY SpiderMonkey-download-http
|
---|
| 8 | "http://ftp.mozilla.org/pub/mozilla.org/js/js185-&spidermonkey-version;.tar.gz">
|
---|
| 9 | <!ENTITY SpiderMonkey-download-ftp
|
---|
| 10 | "ftp://ftp.mozilla.org/pub/mozilla.org/js/js185-&spidermonkey-version;.tar.gz">
|
---|
[37f746a8] | 11 | <!ENTITY SpiderMonkey-md5sum "a4574365938222adca0a6bd33329cb32">
|
---|
| 12 | <!ENTITY SpiderMonkey-size "5.9 MB">
|
---|
| 13 | <!ENTITY SpiderMonkey-buildsize "99 MB">
|
---|
| 14 | <!ENTITY SpiderMonkey-time "1.1 SBU">
|
---|
| 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="SpiderMonkey" xreflabel="SpiderMonkey-&spidermonkey-version;">
|
---|
| 18 | <?dbhtml filename="SpiderMonkey.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>SpiderMonkey-&spidermonkey-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="SpiderMonkey">
|
---|
| 28 | <primary sortas="a-SpiderMonkey">SpiderMonkey</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to SpiderMonkey</title>
|
---|
| 33 |
|
---|
| 34 | <para><application>SpiderMonkey</application> is Mozilla's JavaScript engine
|
---|
| 35 | written in C/C++. The most recent standalone source code release implements
|
---|
| 36 | JavaScript 1.8.5.</para>
|
---|
| 37 |
|
---|
| 38 | &lfs70_built;
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[d615263] | 43 | <para>Download (HTTP):
|
---|
| 44 | <ulink url="&SpiderMonkey-download-http;"/></para>
|
---|
[37f746a8] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (FTP): <ulink url="&SpiderMonkey-download-ftp;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download MD5 sum: &SpiderMonkey-md5sum;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download size: &SpiderMonkey-size;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated disk space required: &SpiderMonkey-buildsize;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated build time: &SpiderMonkey-time;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | </itemizedlist>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect3">SpiderMonkey Dependencies</bridgehead>
|
---|
| 64 |
|
---|
| 65 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 66 | <para role="required"><xref linkend="nspr"/>,
|
---|
[4716d52] | 67 | <xref linkend="python2"/> and
|
---|
[37f746a8] | 68 | <xref linkend="zip"/></para>
|
---|
| 69 |
|
---|
| 70 | <para condition="html" role="usernotes">User Notes:
|
---|
| 71 | <ulink url="&blfs-wiki;/SpiderMonkey"/></para>
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2 role="installation">
|
---|
| 75 | <title>Installation of SpiderMonkey</title>
|
---|
| 76 |
|
---|
[d615263] | 77 | <para>Install <application>SpiderMonkey</application> by running the
|
---|
| 78 | following commands:</para>
|
---|
[37f746a8] | 79 |
|
---|
[d615263] | 80 | <screen><userinput>cd js/src &&
|
---|
| 81 | sed -i 's#s \($(SHLIB_\(ABI\|EXACT\)_VER)\)#s $(notdir \1)#' Makefile.in &&
|
---|
| 82 | ./configure --prefix=/usr --enable-threadsafe --with-system-nspr &&
|
---|
[37f746a8] | 83 | make</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 86 |
|
---|
[d615263] | 87 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 88 | user:</para>
|
---|
[37f746a8] | 89 |
|
---|
| 90 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="commands">
|
---|
| 94 | <title>Command Explanations</title>
|
---|
| 95 |
|
---|
[d615263] | 96 | <para><command>sed -i 's#s \($(SHLIB_\(ABI\|EXACT\)_VER)\)#s $(notdir \1)#'
|
---|
| 97 | Makefile.in</command>: This sed fixes
|
---|
| 98 | the symlinks for <filename>libmozjs185.so</filename> so that they are
|
---|
| 99 | relative and not absolute symlinks.</para>
|
---|
[37f746a8] | 100 |
|
---|
[d615263] | 101 | <para><parameter>--enable-threadsafe</parameter>: This switch enables
|
---|
| 102 | support for multiple threads.</para>
|
---|
[37f746a8] | 103 |
|
---|
| 104 | <para><parameter>--with-system-nspr</parameter>: This parameter forces the
|
---|
| 105 | package to link to the system version of <application>nspr</application>
|
---|
| 106 | instead of using its included, and now old, version.</para>
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="content">
|
---|
| 110 | <title>Contents</title>
|
---|
| 111 |
|
---|
| 112 | <segmentedlist>
|
---|
| 113 | <segtitle>Installed Program</segtitle>
|
---|
| 114 | <segtitle>Installed Libraries</segtitle>
|
---|
| 115 | <segtitle>Installed Directory</segtitle>
|
---|
| 116 |
|
---|
| 117 | <seglistitem>
|
---|
| 118 | <seg>js-config</seg>
|
---|
| 119 | <seg>libmozjs185-1.0.a and libmozjs185.so</seg>
|
---|
| 120 | <seg>/usr/include/js</seg>
|
---|
| 121 | </seglistitem>
|
---|
| 122 | </segmentedlist>
|
---|
| 123 |
|
---|
| 124 | <variablelist>
|
---|
| 125 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 126 | <?dbfo list-presentation="list"?>
|
---|
| 127 | <?dbhtml list-presentation="table"?>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="js-config">
|
---|
| 130 | <term><command>js-config</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>does this .....</para>
|
---|
| 133 | <indexterm zone="SpiderMonkey js-config">
|
---|
| 134 | <primary sortas="b-js-config">js-config</primary>
|
---|
| 135 | </indexterm>
|
---|
| 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
| 139 | <varlistentry id="libmozjs185-1">
|
---|
[d615263] | 140 | <term><filename class="libraryfile">libmozjs185-1.0.a</filename></term>
|
---|
[37f746a8] | 141 | <listitem>
|
---|
| 142 | <para>contains functions that .....</para>
|
---|
| 143 | <indexterm zone="SpiderMonkey libmozjs185-1">
|
---|
| 144 | <primary sortas="c-libmozjs185-1">libmozjs185-1.0.a</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="libmozjs185">
|
---|
[d615263] | 150 | <term><filename class="libraryfile">libmozjs185.so</filename></term>
|
---|
[37f746a8] | 151 | <listitem>
|
---|
| 152 | <para>contains functions that .....</para>
|
---|
| 153 | <indexterm zone="SpiderMonkey libmozjs185">
|
---|
| 154 | <primary sortas="c-libmozjs185">libmozjs185.so</primary>
|
---|
| 155 | </indexterm>
|
---|
| 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
| 158 | </variablelist>
|
---|
| 159 | </sect2>
|
---|
| 160 | </sect1>
|
---|