source: general/genlib/js.xml@ 8b7f5b9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 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 8b7f5b9 was 8b7f5b9, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Add a sed to fix js-17 and js-24 build issues when perl-5.22 is installed.
Thanks to Chris Staub for the report.

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