source: archive/js.xml@ 2ecb594c

10.0 10.1 11.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind perl-modules qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 2ecb594c was 2ecb594c, checked in by DJ Lucas <dj@…>, 4 years ago

Archived mozjs-17 and mozjs-24

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

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