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 |
|
---|
7 | <!ENTITY js38-download-http "&sources-anduin-http;/mozjs/mozjs-&JS38-version;.rc0.tar.bz2">
|
---|
8 | <!ENTITY js38-download-ftp " ">
|
---|
9 | <!ENTITY js38-md5sum "cb602e21f5fc798b88163a3aa4e03e0a">
|
---|
10 | <!ENTITY js38-size "24 MB">
|
---|
11 | <!ENTITY js38-buildsize "896 MB">
|
---|
12 | <!ENTITY js38-time "3.3 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="js38" xreflabel="js38-&JS38-version;">
|
---|
16 | <?dbhtml filename="js38.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>JS-&JS38-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="js38">
|
---|
22 | <primary sortas="a-js38">js38</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to JS</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | <application>JS</application> is Mozilla's JavaScript engine
|
---|
30 | written in C.
|
---|
31 | </para>
|
---|
32 |
|
---|
33 | &lfs82_checked;
|
---|
34 |
|
---|
35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
36 | <itemizedlist spacing="compact">
|
---|
37 | <listitem>
|
---|
38 | <para>
|
---|
39 | Download (HTTP): <ulink url="&js38-download-http;"/>
|
---|
40 | </para>
|
---|
41 | </listitem>
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (FTP): <ulink url="&js38-download-ftp;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download MD5 sum: &js38-md5sum;
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download size: &js38-size;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Estimated disk space required: &js38-buildsize;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated build time: &js38-time;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
70 | <itemizedlist spacing="compact">
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Required patch:
|
---|
74 | <ulink url="&patch-root;/js38-&JS38-version;-upstream_fixes-2.patch"/>
|
---|
75 | </para>
|
---|
76 | </listitem>
|
---|
77 | </itemizedlist>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect3">JS38 Dependencies</bridgehead>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
82 | <para role="required">
|
---|
83 | <xref linkend="autoconf213"/>,
|
---|
84 | <xref linkend="icu"/>,
|
---|
85 | <xref linkend="nspr"/>,
|
---|
86 | <xref linkend="python2"/>, and
|
---|
87 | <xref linkend="zip"/>
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
91 | <para role="optional">
|
---|
92 | <xref linkend="doxygen"/>
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <para condition="html" role="usernotes">
|
---|
96 | User Notes: <ulink url="&blfs-wiki;/js38"/>
|
---|
97 | </para>
|
---|
98 | </sect2>
|
---|
99 |
|
---|
100 | <sect2 role="installation">
|
---|
101 | <title>Installation of JS</title>
|
---|
102 |
|
---|
103 | <warning>
|
---|
104 | <para>The tarball extracts to mozjs-38.0.0, rather than what is
|
---|
105 | listed in the download section.</para>
|
---|
106 | </warning>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | First, apply a patch to fix the build and to prevent segmentation
|
---|
110 | faults.
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <screen><userinput remap="pre">patch -Np1 -i ../js38-&JS38-version;-upstream_fixes-2.patch</userinput></screen>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | Install <application>JS</application> by running the following
|
---|
117 | commands:
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <!-- Spaces are significant in <screen> sections -->
|
---|
121 | <screen><userinput>cd js/src &&
|
---|
122 | autoconf2.13 &&
|
---|
123 |
|
---|
124 | ./configure --prefix=/usr \
|
---|
125 | --with-intl-api \
|
---|
126 | --with-system-zlib \
|
---|
127 | --with-system-ffi \
|
---|
128 | --with-system-nspr \
|
---|
129 | --with-system-icu \
|
---|
130 | --enable-threadsafe \
|
---|
131 | --enable-readline &&
|
---|
132 | make</userinput></screen>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | This package does not come with a working test suite.
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <para>
|
---|
139 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <screen role="root"><userinput>make install &&
|
---|
143 | pushd /usr/include/mozjs-38 &&
|
---|
144 | for link in `find . -type l`; do
|
---|
145 | header=`readlink $link`
|
---|
146 | rm -f $link
|
---|
147 | cp -pv $header $link
|
---|
148 | chmod 644 $link
|
---|
149 | done &&
|
---|
150 | popd &&
|
---|
151 |
|
---|
152 | chown -Rv root.root /usr/include/mozjs-38</userinput></screen>
|
---|
153 |
|
---|
154 | </sect2>
|
---|
155 |
|
---|
156 | <!--Optional section-->
|
---|
157 | <sect2 role="commands">
|
---|
158 | <title>Command Explanations</title>
|
---|
159 |
|
---|
160 | <para>
|
---|
161 | <command>autoconf2.13</command>: This command regenerates the configure
|
---|
162 | script with the changes from the patch.
|
---|
163 | </para>
|
---|
164 |
|
---|
165 | <para>
|
---|
166 | <parameter>--with-*</parameter>: These parameters allow the build system
|
---|
167 | to use system versions of the above libraries. These are required for
|
---|
168 | stability.
|
---|
169 | </para>
|
---|
170 |
|
---|
171 | <para>
|
---|
172 | <parameter>--enable-readline</parameter>: This switch enables Readline
|
---|
173 | support in the JS shell.
|
---|
174 | </para>
|
---|
175 |
|
---|
176 | <para>
|
---|
177 | <parameter>--enable-threadsafe</parameter>: This switch enables support
|
---|
178 | for multiple threads at one time. This increases performance as well as
|
---|
179 | stability.
|
---|
180 | </para>
|
---|
181 |
|
---|
182 | <para>
|
---|
183 | <command>for link in</command>...: This command replaces links to the
|
---|
184 | build directory, with files copied from the build directory.
|
---|
185 | </para>
|
---|
186 | </sect2>
|
---|
187 |
|
---|
188 | <sect2 role="content">
|
---|
189 | <title>Contents</title>
|
---|
190 |
|
---|
191 | <segmentedlist>
|
---|
192 | <segtitle>Installed Programs</segtitle>
|
---|
193 | <segtitle>Installed Libraries)</segtitle>
|
---|
194 | <segtitle>Installed Directories</segtitle>
|
---|
195 |
|
---|
196 | <seglistitem>
|
---|
197 | <seg>
|
---|
198 | js38 and js38-config
|
---|
199 | </seg>
|
---|
200 | <!-- Yes, the static library is required. -->
|
---|
201 | <seg>
|
---|
202 | libmozjs-38.so and libjs_static.ajs
|
---|
203 | </seg>
|
---|
204 | <seg>
|
---|
205 | /usr/include/mozjs-38
|
---|
206 | </seg>
|
---|
207 | </seglistitem>
|
---|
208 | </segmentedlist>
|
---|
209 |
|
---|
210 | <variablelist>
|
---|
211 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
212 | <?dbfo list-presentation="list"?>
|
---|
213 | <?dbhtml list-presentation="table"?>
|
---|
214 |
|
---|
215 | <varlistentry id="js3-js38">
|
---|
216 | <term><command>js38</command></term>
|
---|
217 | <listitem>
|
---|
218 | <para>
|
---|
219 | provides a command line interface to the
|
---|
220 | <application>JavaScript</application> engine.
|
---|
221 | </para>
|
---|
222 | <indexterm zone="js38 js38">
|
---|
223 | <primary sortas="b-js38">js38</primary>
|
---|
224 | </indexterm>
|
---|
225 | </listitem>
|
---|
226 | </varlistentry>
|
---|
227 |
|
---|
228 | <varlistentry id="js38-config">
|
---|
229 | <term><command>js38-config</command></term>
|
---|
230 | <listitem>
|
---|
231 | <para>
|
---|
232 | is used to find the JS compiler and linker flags.
|
---|
233 | </para>
|
---|
234 | <indexterm zone="js38 js38-config">
|
---|
235 | <primary sortas="b-js38-config">js38-config</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | <varlistentry id="libmozjs-38">
|
---|
241 | <term><filename class="libraryfile">libmozjs-38.so</filename></term>
|
---|
242 | <listitem>
|
---|
243 | <para>
|
---|
244 | contains the Mozilla JavaScript API functions.
|
---|
245 | </para>
|
---|
246 | <indexterm zone="js38 libmozjs-38">
|
---|
247 | <primary sortas="c-libmozjs38">libmozjs-38.so</primary>
|
---|
248 | </indexterm>
|
---|
249 | </listitem>
|
---|
250 | </varlistentry>
|
---|
251 | </variablelist>
|
---|
252 | </sect2>
|
---|
253 | </sect1>
|
---|