2018-09-09 01:41:32 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY js60-download-http "http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-&JS60-version;.tar.bz2">
|
|
|
|
<!ENTITY js60-download-ftp "ftp://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-&JS60-version;.tar.bz2">
|
|
|
|
<!ENTITY js60-md5sum "202f71313e53d9b92e7c578107541539">
|
|
|
|
<!ENTITY js60-size "31 MB">
|
|
|
|
<!ENTITY js60-buildsize "640 MB"> <!-- The buildsize is over 4GB! Actually installed is much smaller. -->
|
|
|
|
<!ENTITY js60-time "6.6 SBU">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="js60" xreflabel="js60-&JS60-version;">
|
|
|
|
<?dbhtml filename="js60.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>JS-&JS60-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="js60">
|
|
|
|
<primary sortas="a-js60">js60</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to JS</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<application>JS</application> is Mozilla's JavaScript engine
|
|
|
|
written in C. This package is present for GJS.
|
|
|
|
</para>
|
|
|
|
|
2019-02-17 11:14:14 +08:00
|
|
|
&lfs84_checked;
|
2018-09-09 01:41:32 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&js60-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&js60-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &js60-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &js60-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &js60-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &js60-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">JS60 Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="autoconf213"/>,
|
|
|
|
<xref linkend="icu"/>,
|
|
|
|
<xref linkend="nspr"/>,
|
|
|
|
<xref linkend="python2"/>,
|
|
|
|
<xref linkend="xorg7-lib"/>,
|
|
|
|
<xref linkend="yasm"/>, and
|
|
|
|
<xref linkend="zip"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="doxygen"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/js60"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of JS</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>JS</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
&shell-env;
|
|
|
|
|
|
|
|
<screen><userinput>mkdir mozjs-build &&
|
2019-02-17 11:14:14 +08:00
|
|
|
cd mozjs-build &&
|
2018-09-09 01:41:32 +08:00
|
|
|
|
|
|
|
../js/src/configure --prefix=/usr \
|
|
|
|
--with-intl-api \
|
|
|
|
--with-system-zlib \
|
|
|
|
--with-system-nspr \
|
|
|
|
--with-system-icu \
|
2018-10-04 08:40:05 +08:00
|
|
|
--disable-jemalloc \
|
2018-09-09 01:41:32 +08:00
|
|
|
--enable-readline &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This package does not come with a working test suite.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>--with-*</parameter>: These parameters allow the build system
|
|
|
|
to use system versions of the above libriares. These are required for
|
|
|
|
stability.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>--enable-readline</parameter>: This switch enables Readline
|
|
|
|
support in the JS shell.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>--disable-jemalloc</parameter>: This switch disables the
|
|
|
|
internal memory allocator used in JS60. jemalloc causes a conflict with glibc.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries)</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
js60 and js60-config
|
|
|
|
</seg>
|
|
|
|
<!-- Yes, the static library is required. -->
|
|
|
|
<seg>
|
|
|
|
libmozjs-60.so and libjs_static.ajs <!-- These two may conflict, can't
|
|
|
|
verify without a rebuild unfortunately :-( -->
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/mozjs-60
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="js6-js60">
|
|
|
|
<term><command>js60</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
provides a command line interface to the
|
|
|
|
<application>JavaScript</application> engine.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="js60 js60">
|
|
|
|
<primary sortas="b-js60">js60</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="js60-config">
|
|
|
|
<term><command>js60-config</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to find the JS compiler and linker flags.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="js60 js60-config">
|
|
|
|
<primary sortas="b-js60-config">js60-config</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libmozjs-60">
|
|
|
|
<term><filename class="libraryfile">libmozjs-60.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
contains the Mozilla JavaScript API functions.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="js60 libmozjs-60">
|
|
|
|
<primary sortas="c-libmozjs60">libmozjs-60.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|