source: archive/js38.xml@ 227b44ff

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 227b44ff was 6d03f3e, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to polkit-0.114.
Archived js38.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20093 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 &lfs82_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 &amp;&amp;
155
156chown -Rv root.root /usr/include/mozjs-38</userinput></screen>
157
158 </sect2>
159
160 <!--Optional section-->
161 <sect2 role="commands">
162 <title>Command Explanations</title>
163
164 <para>
165 <command>autoconf2.13</command>: This command regenerates the configure
166 script with the changes from the patch.
167 </para>
168
169 <para>
170 <parameter>--with-*</parameter>: These parameters allow the build system
171 to use system versions of the above libraries. These are required for
172 stability.
173 </para>
174
175 <para>
176 <parameter>--enable-readline</parameter>: This switch enables Readline
177 support in the JS shell.
178 </para>
179
180 <para>
181 <parameter>--enable-threadsafe</parameter>: This switch enables support
182 for multiple threads at one time. This increases performance as well as
183 stability.
184 </para>
185
186 <para>
187 <command>for link in</command>...: This command replaces links to the
188 build directory, with files copied from the build directory.
189 </para>
190 </sect2>
191
192 <sect2 role="content">
193 <title>Contents</title>
194
195 <segmentedlist>
196 <segtitle>Installed Programs</segtitle>
197 <segtitle>Installed Libraries)</segtitle>
198 <segtitle>Installed Directories</segtitle>
199
200 <seglistitem>
201 <seg>
202 js38 and js38-config
203 </seg>
204 <!-- Yes, the static library is required. -->
205 <seg>
206 libmozjs-38.so and libjs_static.ajs
207 </seg>
208 <seg>
209 /usr/include/mozjs-38
210 </seg>
211 </seglistitem>
212 </segmentedlist>
213
214 <variablelist>
215 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
216 <?dbfo list-presentation="list"?>
217 <?dbhtml list-presentation="table"?>
218
219 <varlistentry id="js3-js38">
220 <term><command>js38</command></term>
221 <listitem>
222 <para>
223 provides a command line interface to the
224 <application>JavaScript</application> engine.
225 </para>
226 <indexterm zone="js38 js38">
227 <primary sortas="b-js38">js38</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="js38-config">
233 <term><command>js38-config</command></term>
234 <listitem>
235 <para>
236 is used to find the JS compiler and linker flags.
237 </para>
238 <indexterm zone="js38 js38-config">
239 <primary sortas="b-js38-config">js38-config</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="libmozjs-38">
245 <term><filename class="libraryfile">libmozjs-38.so</filename></term>
246 <listitem>
247 <para>
248 contains the Mozilla JavaScript API functions.
249 </para>
250 <indexterm zone="js38 libmozjs-38">
251 <primary sortas="c-libmozjs38">libmozjs-38.so</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255 </variablelist>
256 </sect2>
257</sect1>
Note: See TracBrowser for help on using the repository browser.