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