source: general/genlib/js38.xml@ 46c7ad6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 lazarus lxqt 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 46c7ad6 was 46c7ad6, checked in by Douglas R. Reno <renodr@…>, 7 years ago

Mozjs38 adjustments. Static library is still needed.

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

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