mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 06:52:14 +08:00
3f2db3a638
They only contain a date tag that is nowhere used.
232 lines
6.3 KiB
XML
232 lines
6.3 KiB
XML
<?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 JS2-download-http "http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-&JS2-version;.tar.bz2">
|
|
<!-- <!ENTITY JS2-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/js/mozjs-&JS2-version;.tar.bz2">-->
|
|
<!ENTITY JS2-download-ftp " ">
|
|
<!ENTITY JS2-md5sum "5db79c10e049a2dc117a6e6a3bc78a8e">
|
|
<!ENTITY JS2-size "15 MB">
|
|
<!ENTITY JS2-buildsize "1.8 GB">
|
|
<!ENTITY JS2-time "4.2 SBU (additional 1.6 SBU for the tests)">
|
|
]>
|
|
|
|
<sect1 id="JS2" xreflabel="JS2-&JS2-version;">
|
|
<?dbhtml filename="JS2.html"?>
|
|
|
|
|
|
<title>JS-&JS2-version;</title>
|
|
|
|
<indexterm zone="JS2">
|
|
<primary sortas="a-JS2">JS2</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to JS</title>
|
|
|
|
<para>
|
|
<application>JS</application> is Mozilla's JavaScript engine
|
|
written in C/C++.
|
|
</para>
|
|
|
|
&lfs80_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&JS2-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&JS2-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &JS2-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &JS2-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &JS2-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &JS2-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">JS Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="libffi"/>,
|
|
<xref linkend="nspr"/>,
|
|
<xref linkend="python2"/> 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;/JS2"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of JS</title>
|
|
|
|
<note><para>
|
|
This package can be installed without problems, if you have
|
|
installed <xref linkend="JS"/>. It is necessary to set
|
|
<command>SHELL=/bin/bash</command> if you are working in chroot.
|
|
</para></note>
|
|
|
|
<para>
|
|
Install <application>JS</application> by running the
|
|
following commands:
|
|
</para>
|
|
|
|
<screen><userinput>cd js/src &&
|
|
|
|
sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl &&
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-readline \
|
|
--enable-threadsafe \
|
|
--with-system-ffi \
|
|
--with-system-nspr &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>make check</command>.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem>
|
|
user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
find /usr/include/mozjs-24/ \
|
|
/usr/lib/libmozjs-24.a \
|
|
/usr/lib/pkgconfig/mozjs-24.pc \
|
|
-type f -exec chmod -v 644 {} \;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<command>sed ... config/milestone.pl</command>: Fix an
|
|
issue caused by perl-5.22.0 and later.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>--enable-threadsafe</parameter>: This switch enables
|
|
support for multiple threads.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>--enable-readline</parameter>: This switch enables
|
|
<application>Readline</application> support in JS shell.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>--with-system-ffi</parameter>: This switch forces the
|
|
package to link to the system version of <application>libffi</application>
|
|
instead of using its included, and now old, version.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>--with-system-nspr</parameter>: This switch forces the
|
|
package to link to the system version of <application>NSPR</application>
|
|
instead of using its included, and now old, version.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
js24 and js24-config
|
|
</seg>
|
|
<seg>
|
|
libmozjs-24.a and libmozjs-24.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/mozjs-24
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="js24">
|
|
<term><command>js24</command></term>
|
|
<listitem>
|
|
<para>
|
|
provides a command line interface to the JavaScript engine.
|
|
</para>
|
|
<indexterm zone="JS2 js24">
|
|
<primary sortas="b-js24">js24</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="js24-config">
|
|
<term><command>js24-config</command></term>
|
|
<listitem>
|
|
<para>
|
|
is used to find out <application>JS</application>
|
|
compiler and linker flags.
|
|
</para>
|
|
<indexterm zone="JS2 js24-config">
|
|
<primary sortas="b-js24-config">js24-config</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libmozjs2">
|
|
<term><filename class="libraryfile">libmozjs-24.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains the <application>Mozilla JavaScript</application> API functions.
|
|
</para>
|
|
<indexterm zone="JS2 libmozjs2">
|
|
<primary sortas="c-libmozjs2">libmozjs-24.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|