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 JS-download-http "http://ftp.mozilla.org/pub/mozilla.org/js/mozjs&JS-version;.tar.gz">
|
---|
8 | <!-- <!ENTITY JS-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/js/mozjs&JS-version;.tar.gz">-->
|
---|
9 | <!ENTITY JS-download-ftp " ">
|
---|
10 | <!ENTITY JS-md5sum "20b6f8f1140ef6e47daa3b16965c9202">
|
---|
11 | <!ENTITY JS-size "6.5 MB">
|
---|
12 | <!ENTITY JS-buildsize "1.2 GB">
|
---|
13 | <!ENTITY JS-time "5.0 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="JS" xreflabel="JS-&JS-version;">
|
---|
17 | <?dbhtml filename="js.html"?>
|
---|
18 |
|
---|
19 |
|
---|
20 | <title>JS-&JS-version;</title>
|
---|
21 |
|
---|
22 | <indexterm zone="JS">
|
---|
23 | <primary sortas="a-JS">JS</primary>
|
---|
24 | </indexterm>
|
---|
25 |
|
---|
26 | <sect2 role="package">
|
---|
27 | <title>Introduction to JS</title>
|
---|
28 |
|
---|
29 | <para>
|
---|
30 | <application>JS</application> is Mozilla's JavaScript engine
|
---|
31 | written in C/C++.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs80_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&JS-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&JS-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &JS-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &JS-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &JS-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &JS-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">JS Dependencies</bridgehead>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
73 | <para role="required">
|
---|
74 | <xref linkend="libffi"/>,
|
---|
75 | <xref linkend="nspr"/>,
|
---|
76 | <xref linkend="python2"/> and
|
---|
77 | <xref linkend="zip"/>
|
---|
78 | </para>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
81 | <para role="optional">
|
---|
82 | <xref linkend="doxygen"/>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <para condition="html" role="usernotes">User Notes:
|
---|
86 | <ulink url="&blfs-wiki;/JS"/>
|
---|
87 | </para>
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of JS</title>
|
---|
92 |
|
---|
93 | <para>
|
---|
94 | Install <application>JS</application> by running the
|
---|
95 | following commands:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen><userinput>cd js/src &&
|
---|
99 |
|
---|
100 | sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl &&
|
---|
101 |
|
---|
102 | ./configure --prefix=/usr \
|
---|
103 | --enable-readline \
|
---|
104 | --enable-threadsafe \
|
---|
105 | --with-system-ffi \
|
---|
106 | --with-system-nspr &&
|
---|
107 | make</userinput></screen>
|
---|
108 |
|
---|
109 | <para>
|
---|
110 | To test the results, issue: <command>make check</command>.
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <para>
|
---|
114 | Now, as the <systemitem class="username">root</systemitem>
|
---|
115 | user:
|
---|
116 | </para>
|
---|
117 |
|
---|
118 | <screen role="root"><userinput>make install &&
|
---|
119 |
|
---|
120 | find /usr/include/js-17.0/ \
|
---|
121 | /usr/lib/libmozjs-17.0.a \
|
---|
122 | /usr/lib/pkgconfig/mozjs-17.0.pc \
|
---|
123 | -type f -exec chmod -v 644 {} \;</userinput></screen>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="commands">
|
---|
128 | <title>Command Explanations</title>
|
---|
129 |
|
---|
130 | <para>
|
---|
131 | <command>sed ... config/milestone.pl</command>: Fix an
|
---|
132 | issue caused by perl-5.22.0 and later.
|
---|
133 | </para>
|
---|
134 |
|
---|
135 | <para>
|
---|
136 | <parameter>--enable-threadsafe</parameter>: This switch enables
|
---|
137 | support for multiple threads.
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | <parameter>--enable-readline</parameter>: This switch enables
|
---|
142 | <application>Readline</application> support in JS shell.
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <para>
|
---|
146 | <parameter>--with-system-ffi</parameter>: This switch forces the
|
---|
147 | package to link to the system version of <application>libffi</application>
|
---|
148 | instead of using its included, and now old, version.
|
---|
149 | </para>
|
---|
150 |
|
---|
151 | <para>
|
---|
152 | <parameter>--with-system-nspr</parameter>: This switch forces the
|
---|
153 | package to link to the system version of <application>NSPR</application>
|
---|
154 | instead of using its included, and now old, version.
|
---|
155 | </para>
|
---|
156 |
|
---|
157 | </sect2>
|
---|
158 |
|
---|
159 | <sect2 role="content">
|
---|
160 | <title>Contents</title>
|
---|
161 |
|
---|
162 | <segmentedlist>
|
---|
163 | <segtitle>Installed Programs</segtitle>
|
---|
164 | <segtitle>Installed Libraries</segtitle>
|
---|
165 | <segtitle>Installed Directory</segtitle>
|
---|
166 |
|
---|
167 | <seglistitem>
|
---|
168 | <seg>
|
---|
169 | js17 and js17-config
|
---|
170 | </seg>
|
---|
171 | <seg>
|
---|
172 | libmozjs-17.0.a and libmozjs-17.0.so
|
---|
173 | </seg>
|
---|
174 | <seg>
|
---|
175 | /usr/include/js-17.0
|
---|
176 | </seg>
|
---|
177 | </seglistitem>
|
---|
178 | </segmentedlist>
|
---|
179 |
|
---|
180 | <variablelist>
|
---|
181 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
182 | <?dbfo list-presentation="list"?>
|
---|
183 | <?dbhtml list-presentation="table"?>
|
---|
184 |
|
---|
185 | <varlistentry id="js17">
|
---|
186 | <term><command>js17</command></term>
|
---|
187 | <listitem>
|
---|
188 | <para>
|
---|
189 | provides a command line interface to the JavaScript engine.
|
---|
190 | </para>
|
---|
191 | <indexterm zone="JS js17">
|
---|
192 | <primary sortas="b-js17">js17</primary>
|
---|
193 | </indexterm>
|
---|
194 | </listitem>
|
---|
195 | </varlistentry>
|
---|
196 |
|
---|
197 | <varlistentry id="js17-config">
|
---|
198 | <term><command>js17-config</command></term>
|
---|
199 | <listitem>
|
---|
200 | <para>
|
---|
201 | is used to find out <application>JS</application>
|
---|
202 | compiler and linker flags.
|
---|
203 | </para>
|
---|
204 | <indexterm zone="JS js17-config">
|
---|
205 | <primary sortas="b-js17-config">js17-config</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="libmozjs">
|
---|
211 | <term><filename class="libraryfile">libmozjs-17.0.so</filename></term>
|
---|
212 | <listitem>
|
---|
213 | <para>
|
---|
214 | contains the <application>Mozilla JavaScript</application> API functions.
|
---|
215 | </para>
|
---|
216 | <indexterm zone="JS libmozjs">
|
---|
217 | <primary sortas="c-libmozjs">libmozjs-17.0.so</primary>
|
---|
218 | </indexterm>
|
---|
219 | </listitem>
|
---|
220 | </varlistentry>
|
---|
221 |
|
---|
222 | </variablelist>
|
---|
223 |
|
---|
224 | </sect2>
|
---|
225 |
|
---|
226 | </sect1>
|
---|