source: general/genlib/js60.xml@ ca90d89

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.1 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 ca90d89 was e3b86fa, checked in by Xi Ruoyao <xry111@…>, 5 years ago

update to js60-60.8.0 (#12386)

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

  • Property mode set to 100644
File size: 6.9 KB
RevLine 
[0191b610]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 js60-download-http "http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-&JS60-version;.tar.bz2">
8 <!ENTITY js60-download-ftp "ftp://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-&JS60-version;.tar.bz2">
[e3b86fa]9 <!ENTITY js60-md5sum "5eda38cc08a3594a3f2c3cc185d4f15b">
[0191b610]10 <!ENTITY js60-size "31 MB">
11 <!ENTITY js60-buildsize "640 MB"> <!-- The buildsize is over 4GB! Actually installed is much smaller. -->
12 <!ENTITY js60-time "6.6 SBU">
13]>
14
15<sect1 id="js60" xreflabel="js60-&JS60-version;">
16 <?dbhtml filename="js60.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>JS-&JS60-version;</title>
24
25 <indexterm zone="js60">
26 <primary sortas="a-js60">js60</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. This package is present for GJS.
35 </para>
36
[7b20b74]37 &lfs84_checked;
[0191b610]38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&js60-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&js60-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &js60-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &js60-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &js60-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &js60-time;
69 </para>
70 </listitem>
71 </itemizedlist>
[e3b86fa]72<!--
[c4ae75ef]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Required patch:
78 <ulink url="&patch-root;/js60-&JS60-version;-security_fix-1.patch"/>
79 </para>
80 </listitem>
81 </itemizedlist>
[e3b86fa]82-->
[0191b610]83 <bridgehead renderas="sect3">JS60 Dependencies</bridgehead>
84
85 <bridgehead renderas="sect4">Required</bridgehead>
86 <para role="required">
87 <xref linkend="autoconf213"/>,
88 <xref linkend="icu"/>,
89 <xref linkend="python2"/>,
90 <xref linkend="xorg7-lib"/>,
[72ee76e]91 <!--<xref linkend="yasm"/>,--> and
[0191b610]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;/js60"/>
102 </para>
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of JS</title>
107
[c4ae75ef]108 <caution>
[e3b86fa]109 <para>If you are upgrading JS60 from a previously installed old version,
110 save all work and exit your GNOME Session if you have one running.
[c4ae75ef]111 Replacing the JS60 binary will cause the GNOME Shell to crash and return
[e3b86fa]112 you to your display manager or TTY. After installing the new version,
[c4ae75ef]113 reinstall <xref linkend="gjs"/>. Polkit is unaffected.</para>
114 </caution>
[e3b86fa]115<!--
[c4ae75ef]116 <para>
117 First, apply a security patch:
118 </para>
119
120<screen><userinput remap="pre">patch -Np1 -i ../js60-&JS60-version;-security_fix-1.patch</userinput></screen>
[e3b86fa]121-->
[0191b610]122 <para>
123 Install <application>JS</application> by running the following
124 commands:
125 </para>
126
127 &shell-env;
128
129<screen><userinput>mkdir mozjs-build &amp;&amp;
[7b20b74]130cd mozjs-build &amp;&amp;
[0191b610]131
132../js/src/configure --prefix=/usr \
[c58eff8]133 --with-intl-api \
134 --with-system-zlib \
135 --with-system-icu \
136 --disable-jemalloc \
137 --enable-readline &amp;&amp;
[0191b610]138make</userinput></screen>
139
140 <para>
141 This package does not come with a working test suite.
142 </para>
143
144 <para>
145 Now, as the <systemitem class="username">root</systemitem> user:
146 </para>
147
148<screen role="root"><userinput>make install</userinput></screen>
149
150 </sect2>
151
152 <sect2 role="commands">
153 <title>Command Explanations</title>
154
155 <para>
156 <parameter>--with-*</parameter>: These parameters allow the build system
157 to use system versions of the above libriares. These are required for
158 stability.
159 </para>
160
161 <para>
162 <parameter>--enable-readline</parameter>: This switch enables Readline
163 support in the JS shell.
164 </para>
165
166 <para>
167 <parameter>--disable-jemalloc</parameter>: This switch disables the
168 internal memory allocator used in JS60. jemalloc causes a conflict with glibc.
169 </para>
170
171 </sect2>
172
173 <sect2 role="content">
174 <title>Contents</title>
175
176 <segmentedlist>
177 <segtitle>Installed Programs</segtitle>
[8e4c989]178 <segtitle>Installed Libraries</segtitle>
[0191b610]179 <segtitle>Installed Directories</segtitle>
180
181 <seglistitem>
182 <seg>
183 js60 and js60-config
184 </seg>
185 <seg>
[c58eff8]186 libmozjs-60.so and libjs_static.ajs <!-- The AJS file doesn't
187 conflict with the one from js52 like originally thought -->
[0191b610]188 </seg>
189 <seg>
190 /usr/include/mozjs-60
191 </seg>
192 </seglistitem>
193 </segmentedlist>
194
195 <variablelist>
196 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
197 <?dbfo list-presentation="list"?>
198 <?dbhtml list-presentation="table"?>
199
200 <varlistentry id="js6-js60">
201 <term><command>js60</command></term>
202 <listitem>
203 <para>
204 provides a command line interface to the
205 <application>JavaScript</application> engine.
206 </para>
207 <indexterm zone="js60 js60">
208 <primary sortas="b-js60">js60</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="js60-config">
214 <term><command>js60-config</command></term>
215 <listitem>
216 <para>
217 is used to find the JS compiler and linker flags.
218 </para>
219 <indexterm zone="js60 js60-config">
220 <primary sortas="b-js60-config">js60-config</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="libmozjs-60">
226 <term><filename class="libraryfile">libmozjs-60.so</filename></term>
227 <listitem>
228 <para>
229 contains the Mozilla JavaScript API functions.
230 </para>
231 <indexterm zone="js60 libmozjs-60">
232 <primary sortas="c-libmozjs60">libmozjs-60.so</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236 </variablelist>
237 </sect2>
238</sect1>
Note: See TracBrowser for help on using the repository browser.