source: general/genlib/js38.xml@ 3361e19

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 3361e19 was a02b3b1, checked in by DJ Lucas <dj@…>, 6 years ago

Fix mozjs download link.

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

  • Property mode set to 100644
File size: 6.9 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 "&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 <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 &lfs81_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="nspr"/>,
90 <xref linkend="python2"/>, and
91 <xref linkend="zip"/>
92 </para>
93
94 <bridgehead renderas="sect4">Optional</bridgehead>
95 <para role="optional">
96 <xref linkend="doxygen"/>
97 </para>
98
99 <para condition="html" role="usernotes">
100 User Notes: <ulink url="&blfs-wiki;/js38"/>
101 </para>
102 </sect2>
103
104 <sect2 role="installation">
105 <title>Installation of JS</title>
106
107 <warning>
108 <para>The tarball extracts to mozjs-38.0.0, rather than what is
109 listed in the download section.</para>
110 </warning>
111
112 <para>
113 First, apply a patch to fix the build and to prevent segmentation
114 faults.
115 </para>
116
117<screen><userinput remap="pre">patch -Np1 -i ../js38-&JS38-version;-upstream_fixes-2.patch</userinput></screen>
118
119 <para>
120 Install <application>JS</application> by running the following
121 commands:
122 </para>
123
124<!-- Spaces are significant in <screen> sections -->
125<screen><userinput>cd js/src &amp;&amp;
126autoconf2.13 &amp;&amp;
127
128./configure --prefix=/usr \
129 --with-intl-api \
130 --with-system-zlib \
131 --with-system-ffi \
132 --with-system-nspr \
133 --with-system-icu \
134 --enable-threadsafe \
135 --enable-readline &amp;&amp;
136make</userinput></screen>
137
138 <para>
139 This package does not come with a working test suite.
140 </para>
141
142 <para>
143 Now, as the <systemitem class="username">root</systemitem> user:
144 </para>
145
146<screen role="root"><userinput>make install &amp;&amp;
147pushd /usr/include/mozjs-38 &amp;&amp;
148for link in `find . -type l`; do
149 header=`readlink $link`
150 rm -f $link
151 cp -pv $header $link
152 chmod 644 $link
153done &amp;&amp;
154popd</userinput></screen>
155
156 </sect2>
157
158 <!--Optional section-->
159 <sect2 role="commands">
160 <title>Command Explanations</title>
161
162 <para>
163 <command>autoconf213</command>: This command regenerates the configure
164 script with the changes from the patch.
165 </para>
166
167 <para>
168 <parameter>--with-*</parameter>: These parameters allow the build system
169 to use system versions of the above libriares. These are required for
170 stability.
171 </para>
172
173 <para>
174 <parameter>--enable-readline</parameter>: This switch enables Readline
175 support in the JS shell.
176 </para>
177
178 <para>
179 <parameter>--enable-threadsafe</parameter>: This switch enables support
180 for multiple threads at one time. This increases performance as well as
181 stability.
182 </para>
183
184 <para>
185 <command>for link in</command>...: This command replaces links to the
186 build directory, with files copied from the build directory.
187 </para>
188 </sect2>
189
190 <sect2 role="content">
191 <title>Contents</title>
192
193 <segmentedlist>
194 <segtitle>Installed Programs</segtitle>
195 <segtitle>Installed Libraries)</segtitle>
196 <segtitle>Installed Directories</segtitle>
197
198 <seglistitem>
199 <seg>
200 js38 and js38-config
201 </seg>
202 <!-- Yes, the static library is required. -->
203 <seg>
204 libmozjs-38.so and libjs_static.ajs
205 </seg>
206 <seg>
207 /usr/include/mozjs-38
208 </seg>
209 </seglistitem>
210 </segmentedlist>
211
212 <variablelist>
213 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
214 <?dbfo list-presentation="list"?>
215 <?dbhtml list-presentation="table"?>
216
217 <varlistentry id="js3-js38">
218 <term><command>js38</command></term>
219 <listitem>
220 <para>
221 provides a command line interface to the
222 <application>JavaScript</application> engine.
223 </para>
224 <indexterm zone="js38 js38">
225 <primary sortas="b-js38">js38</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="js38-config">
231 <term><command>js38-config</command></term>
232 <listitem>
233 <para>
234 is used to find the JS compiler and linker flags.
235 </para>
236 <indexterm zone="js38 js38-config">
237 <primary sortas="b-js38-config">js38-config</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="libmozjs-38">
243 <term><filename class="libraryfile">libmozjs-38.so</filename></term>
244 <listitem>
245 <para>
246 contains the Mozilla JavaScript API functions.
247 </para>
248 <indexterm zone="js38 libmozjs-38">
249 <primary sortas="c-libmozjs38">libmozjs-38.so</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253 </variablelist>
254 </sect2>
255</sect1>
Note: See TracBrowser for help on using the repository browser.