source: general/genlib/js2.xml@ 31973174

systemd-13485
Last change on this file since 31973174 was 83f6c770, checked in by DJ Lucas <dj@…>, 8 years ago

Merge Chapter 9 changes from trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16835 af4574ff-66df-0310-9fd7-8a98e5e911e0

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