[b889223] | 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 js52-download-http "http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-&JS52-version;.tar.gz">
|
---|
| 8 | <!ENTITY js52-download-ftp "ftp://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-&JS52-version;.tar.gz">
|
---|
| 9 | <!ENTITY js52-md5sum "72bd9a715ed1ab70b2aebe92969f6b63">
|
---|
| 10 | <!ENTITY js52-size "36 MB">
|
---|
| 11 | <!ENTITY js52-buildsize "627 MB">
|
---|
| 12 | <!ENTITY js52-time "6.4 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="js52" xreflabel="js52-&JS52-version;">
|
---|
| 16 | <?dbhtml filename="js52.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>JS-&JS52-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="js52">
|
---|
| 25 | <primary sortas="a-js52">js52</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to JS</title>
|
---|
| 30 |
|
---|
| 31 | <para>
|
---|
| 32 | <application>JS</application> is Mozilla's JavaScript engine
|
---|
[5fff3896] | 33 | written in C. This package is present for GJS and polkit.
|
---|
[b889223] | 34 | </para>
|
---|
| 35 |
|
---|
[38489aa0] | 36 | &lfs84_checked;
|
---|
[b889223] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&js52-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&js52-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &js52-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download size: &js52-size;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated disk space required: &js52-buildsize;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated build time: &js52-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">JS52 Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 75 | <para role="required">
|
---|
| 76 | <xref linkend="autoconf213"/>,
|
---|
| 77 | <xref linkend="icu"/>,
|
---|
| 78 | <xref linkend="nspr"/>,
|
---|
| 79 | <xref linkend="python2"/>,
|
---|
[18f18c2] | 80 | <xref linkend="xorg7-lib"/>, and
|
---|
| 81 | <!-- <xref linkend="yasm"/>, -->
|
---|
[b889223] | 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">
|
---|
| 91 | User Notes: <ulink url="&blfs-wiki;/js52"/>
|
---|
| 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 following
|
---|
| 100 | commands:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
[729e458] | 103 | &shell-env;
|
---|
| 104 |
|
---|
[b889223] | 105 | <screen><userinput>cd js/src &&
|
---|
| 106 |
|
---|
[180ac53] | 107 | grep -rl -- '-Werror=format' |
|
---|
| 108 | xargs sed -i 's/error=format/no-&/' &&
|
---|
| 109 |
|
---|
[b889223] | 110 | ./configure --prefix=/usr \
|
---|
| 111 | --with-intl-api \
|
---|
| 112 | --with-system-zlib \
|
---|
| 113 | --with-system-nspr \
|
---|
| 114 | --with-system-icu \
|
---|
| 115 | --enable-readline &&
|
---|
| 116 | make</userinput></screen>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
| 119 | This package does not come with a working test suite.
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <para>
|
---|
| 123 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[5b62526] | 126 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[b889223] | 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="commands">
|
---|
| 131 | <title>Command Explanations</title>
|
---|
| 132 |
|
---|
[180ac53] | 133 | <para>
|
---|
| 134 | <command>grep -rl ...</command>: Allows building with GCC-9.1.
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
[b889223] | 137 | <para>
|
---|
| 138 | <parameter>--with-*</parameter>: These parameters allow the build system
|
---|
| 139 | to use system versions of the above libriares. These are required for
|
---|
| 140 | stability.
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | <para>
|
---|
| 144 | <parameter>--enable-readline</parameter>: This switch enables Readline
|
---|
| 145 | support in the JS shell.
|
---|
| 146 | </para>
|
---|
[c7918a9] | 147 | <!--
|
---|
[b889223] | 148 | <para>
|
---|
[c7918a9] | 149 | <parameter>- -enable-threadsafe</parameter>: This switch enables support
|
---|
[b889223] | 150 | for multiple threads at one time. This increases performance as well as
|
---|
| 151 | stability.
|
---|
| 152 | </para>
|
---|
[c7918a9] | 153 | -->
|
---|
[b889223] | 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="content">
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
| 159 | <segmentedlist>
|
---|
| 160 | <segtitle>Installed Programs</segtitle>
|
---|
| 161 | <segtitle>Installed Libraries)</segtitle>
|
---|
| 162 | <segtitle>Installed Directories</segtitle>
|
---|
| 163 |
|
---|
| 164 | <seglistitem>
|
---|
| 165 | <seg>
|
---|
| 166 | js52 and js52-config
|
---|
| 167 | </seg>
|
---|
| 168 | <!-- Yes, the static library is required. -->
|
---|
| 169 | <seg>
|
---|
| 170 | libmozjs-52.so and libjs_static.ajs
|
---|
| 171 | </seg>
|
---|
| 172 | <seg>
|
---|
| 173 | /usr/include/mozjs-52
|
---|
| 174 | </seg>
|
---|
| 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
| 177 |
|
---|
| 178 | <variablelist>
|
---|
| 179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 180 | <?dbfo list-presentation="list"?>
|
---|
| 181 | <?dbhtml list-presentation="table"?>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="js5-js52">
|
---|
| 184 | <term><command>js52</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>
|
---|
| 187 | provides a command line interface to the
|
---|
| 188 | <application>JavaScript</application> engine.
|
---|
| 189 | </para>
|
---|
| 190 | <indexterm zone="js52 js52">
|
---|
| 191 | <primary sortas="b-js52">js52</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="js52-config">
|
---|
| 197 | <term><command>js52-config</command></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>
|
---|
| 200 | is used to find the JS compiler and linker flags.
|
---|
| 201 | </para>
|
---|
| 202 | <indexterm zone="js52 js52-config">
|
---|
| 203 | <primary sortas="b-js52-config">js52-config</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="libmozjs-52">
|
---|
| 209 | <term><filename class="libraryfile">libmozjs-52.so</filename></term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>
|
---|
| 212 | contains the Mozilla JavaScript API functions.
|
---|
| 213 | </para>
|
---|
| 214 | <indexterm zone="js52 libmozjs-52">
|
---|
| 215 | <primary sortas="c-libmozjs52">libmozjs-52.so</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 | </variablelist>
|
---|
| 220 | </sect2>
|
---|
| 221 | </sect1>
|
---|