source: general/genlib/js2.xml@ 761b96b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 761b96b was e9c856f, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Add new package Mozilla JS-24.2.0: included a note for setting SHELL in chroot and for compatibility with older JS-17.0.0.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12921 af4574ff-66df-0310-9fd7-8a98e5e911e0

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