Author: renodr
Date: Mon Sep 18 17:15:32 2017
New Revision: 19251

Log:
Add mozjs-52

Added:
   trunk/BOOK/general/genlib/js52.xml
      - copied, changed from r19249, trunk/BOOK/general/genlib/js38.xml
Modified:
   trunk/BOOK/general/genlib/genlib.xml
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/packages.ent

Modified: trunk/BOOK/general/genlib/genlib.xml
==============================================================================
--- trunk/BOOK/general/genlib/genlib.xml        Mon Sep 18 16:56:18 2017        
(r19250)
+++ trunk/BOOK/general/genlib/genlib.xml        Mon Sep 18 17:15:32 2017        
(r19251)
@@ -67,6 +67,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="gsl.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="icu.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="js38.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="js52.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="json-c.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="json-glib.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="keyutils.xml"/>

Copied and modified: trunk/BOOK/general/genlib/js52.xml (from r19249, 
trunk/BOOK/general/genlib/js38.xml)
==============================================================================
--- trunk/BOOK/general/genlib/js38.xml  Mon Sep 18 12:32:04 2017        
(r19249, copy source)
+++ trunk/BOOK/general/genlib/js52.xml  Mon Sep 18 17:15:32 2017        (r19251)
@@ -4,26 +4,26 @@
   <!ENTITY % general-entities SYSTEM "../../general.ent">
   %general-entities;
 
-  <!ENTITY js38-download-http 
"https://people.mozilla.org/~sstangl/mozjs-&JS38-version;.rc0.tar.bz2";>
-  <!ENTITY js38-download-ftp  " ">
-  <!ENTITY js38-md5sum        "cb602e21f5fc798b88163a3aa4e03e0a">
-  <!ENTITY js38-size          "24 MB">
-  <!ENTITY js38-buildsize     "896 MB">
-  <!ENTITY js38-time          "3.3 SBU">
+  <!ENTITY js52-download-http 
"http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-&JS52-version;.tar.gz";>
+  <!ENTITY js52-download-ftp  
"ftp://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-&JS52-version;.tar.gz";>
+  <!ENTITY js52-md5sum        "72bd9a715ed1ab70b2aebe92969f6b63">
+  <!ENTITY js52-size          "36 MB">
+  <!ENTITY js52-buildsize     "627 MB">
+  <!ENTITY js52-time          "6.4 SBU">
 ]>
 
-<sect1 id="js38" xreflabel="js38-&JS38-version;">
-  <?dbhtml filename="js38.html"?>
+<sect1 id="js52" xreflabel="js52-&JS52-version;">
+  <?dbhtml filename="js52.html"?>
 
   <sect1info>
     <othername>$LastChangedBy$</othername>
     <date>$Date$</date>
   </sect1info>
 
-  <title>JS-&JS38-version;</title>
+  <title>JS-&JS52-version;</title>
 
-  <indexterm zone="js38">
-    <primary sortas="a-js38">js38</primary>
+  <indexterm zone="js52">
+    <primary sortas="a-js52">js52</primary>
   </indexterm>
 
   <sect2 role="package">
@@ -31,7 +31,7 @@
 
     <para>
       <application>JS</application> is Mozilla's JavaScript engine
-      written in C.
+      written in C. This package is present for GJS.
     </para>
 
     &lfs81_checked;
@@ -40,55 +40,46 @@
     <itemizedlist spacing="compact">
       <listitem>
         <para>
-          Download (HTTP): <ulink url="&js38-download-http;"/>
+          Download (HTTP): <ulink url="&js52-download-http;"/>
         </para>
       </listitem>
       <listitem>
         <para>
-          Download (FTP): <ulink url="&js38-download-ftp;"/>
+          Download (FTP): <ulink url="&js52-download-ftp;"/>
         </para>
       </listitem>
       <listitem>
         <para>
-          Download MD5 sum: &js38-md5sum;
+          Download MD5 sum: &js52-md5sum;
         </para>
       </listitem>
       <listitem>
         <para>
-          Download size: &js38-size;
+          Download size: &js52-size;
         </para>
       </listitem>
       <listitem>
         <para>
-          Estimated disk space required: &js38-buildsize;
+          Estimated disk space required: &js52-buildsize;
         </para>
       </listitem>
       <listitem>
         <para>
-          Estimated build time: &js38-time;
+          Estimated build time: &js52-time;
         </para>
       </listitem>
     </itemizedlist>
 
-    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
-    <itemizedlist spacing="compact">
-      <listitem>
-        <para>
-          Required patch:
-          <ulink 
url="&patch-root;/js38-&JS38-version;-upstream_fixes-2.patch"/>
-        </para>
-      </listitem>
-    </itemizedlist>
-
-    <bridgehead renderas="sect3">JS38 Dependencies</bridgehead>
+    <bridgehead renderas="sect3">JS52 Dependencies</bridgehead>
 
     <bridgehead renderas="sect4">Required</bridgehead>
     <para role="required">
       <xref linkend="autoconf213"/>,
       <xref linkend="icu"/>,
-      <xref linkend="libffi"/>,
       <xref linkend="nspr"/>,
-      <xref linkend="python2"/>, and
+      <xref linkend="python2"/>,
+      <xref linkend="xorg7-lib"/>,
+      <xref linkend="yasm"/>, and
       <xref linkend="zip"/>
     </para>
 
@@ -98,38 +89,23 @@
     </para>
 
     <para condition="html" role="usernotes">
-      User Notes: <ulink url="&blfs-wiki;/js38"/>
+      User Notes: <ulink url="&blfs-wiki;/js52"/>
     </para>
   </sect2>
 
   <sect2 role="installation">
     <title>Installation of JS</title>
 
-    <warning>
-      <para>The tarball extracts to mozjs-38.0.0, rather than what is
-      listed in the download section.</para>
-    </warning>
-
-    <para>
-      First, apply a patch to fix the build and to prevent segmentation
-      faults.
-    </para>
-
-<screen><userinput remap="pre">patch -Np1 -i 
../js38-&JS38-version;-upstream_fixes-2.patch</userinput></screen>
-
     <para>
       Install <application>JS</application> by running the following
       commands:
     </para>
 
-<!-- Spaces are significant in <screen> sections -->
 <screen><userinput>cd js/src &amp;&amp;
-autoconf2.13 &amp;&amp;
 
 ./configure --prefix=/usr       \
             --with-intl-api     \
             --with-system-zlib  \
-            --with-system-ffi   \
             --with-system-nspr  \
             --with-system-icu   \
             --enable-threadsafe \
@@ -144,28 +120,14 @@
       Now, as the <systemitem class="username">root</systemitem> user:
     </para>
 
-<screen role="root"><userinput>make install &amp;&amp;
-pushd /usr/include/mozjs-38 &amp;&amp;
-for link in `find . -type l`; do
-    header=`readlink $link`
-    rm -f $link
-    cp -pv $header $link
-    chmod 644 $link
-done &amp;&amp;
-popd</userinput></screen>
+<screen role="root"><userinput>make install &amp;&amp;</userinput></screen>
 
   </sect2>
 
-  <!--Optional section-->
   <sect2 role="commands">
     <title>Command Explanations</title>
 
     <para>
-      <command>autoconf213</command>: This command regenerates the configure
-      script with the changes from the patch.
-    </para>
-
-    <para>
       <parameter>--with-*</parameter>: These parameters allow the build system
       to use system versions of the above libriares. These are required for
       stability.
@@ -182,10 +144,6 @@
       stability.
     </para>
 
-    <para>
-      <command>for link in</command>...: This command replaces links to the
-      build directory, with files copied from the build directory.
-    </para>
   </sect2>
 
   <sect2 role="content">
@@ -198,14 +156,14 @@
 
       <seglistitem>
         <seg>
-          js38 and js38-config
+          js52 and js52-config
         </seg>
         <!-- Yes, the static library is required. -->
         <seg>
-          libmozjs-38.so and libjs_static.ajs
+          libmozjs-52.so and libjs_static.ajs
         </seg>
         <seg>
-          /usr/include/mozjs-38
+          /usr/include/mozjs-52
         </seg>
       </seglistitem>
     </segmentedlist>
@@ -215,39 +173,39 @@
       <?dbfo list-presentation="list"?>
       <?dbhtml list-presentation="table"?>
 
-      <varlistentry id="js3-js38">
-        <term><command>js38</command></term>
+      <varlistentry id="js5-js52">
+        <term><command>js52</command></term>
         <listitem>
           <para>
             provides a command line interface to the
             <application>JavaScript</application> engine.
           </para>
-          <indexterm zone="js38 js38">
-            <primary sortas="b-js38">js38</primary>
+          <indexterm zone="js52 js52">
+            <primary sortas="b-js52">js52</primary>
           </indexterm>
         </listitem>
       </varlistentry>
 
-      <varlistentry id="js38-config">
-        <term><command>js38-config</command></term>
+      <varlistentry id="js52-config">
+        <term><command>js52-config</command></term>
         <listitem>
           <para>
             is used to find the JS compiler and linker flags.
           </para>
-          <indexterm zone="js38 js38-config">
-            <primary sortas="b-js38-config">js38-config</primary>
+          <indexterm zone="js52 js52-config">
+            <primary sortas="b-js52-config">js52-config</primary>
           </indexterm>
         </listitem>
       </varlistentry>
 
-      <varlistentry id="libmozjs-38">
-        <term><filename class="libraryfile">libmozjs-38.so</filename></term>
+      <varlistentry id="libmozjs-52">
+        <term><filename class="libraryfile">libmozjs-52.so</filename></term>
         <listitem>
           <para>
             contains the Mozilla JavaScript API functions.
           </para>
-          <indexterm zone="js38 libmozjs-38">
-            <primary sortas="c-libmozjs38">libmozjs-38.so</primary>
+          <indexterm zone="js52 libmozjs-52">
+            <primary sortas="c-libmozjs52">libmozjs-52.so</primary>
           </indexterm>
         </listitem>
       </varlistentry>

Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       Mon Sep 18 16:56:18 
2017        (r19250)
+++ trunk/BOOK/introduction/welcome/changelog.xml       Mon Sep 18 17:15:32 
2017        (r19251)
@@ -56,6 +56,10 @@
           <para>[renodr] - Add libidn2. Fixes
           <ulink url="&blfs-ticket-root;9045">#9045</ulink>.</para>
         </listitem>
+        <listitem>
+          <para>[renodr] - Add mozjs-52. Fixes
+          <ulink url="&blfs-ticket-root;9770">#9770</ulink>.</para>
+        </listitem>
       </itemizedlist>
     </listitem>
 

Modified: trunk/BOOK/packages.ent
==============================================================================
--- trunk/BOOK/packages.ent     Mon Sep 18 16:56:18 2017        (r19250)
+++ trunk/BOOK/packages.ent     Mon Sep 18 17:15:32 2017        (r19251)
@@ -118,6 +118,7 @@
 <!ENTITY JS-version                   "17.0.0">
 <!ENTITY JS2-version                  "24.2.0">
 <!ENTITY JS38-version                 "38.2.1">
+<!ENTITY JS52-version                 "52.2.1gnome1">
 <!ENTITY json-c-version               "0.12.1">
 <!ENTITY json-glib-version            "1.2.8">
 <!ENTITY keyutils-version             "1.5.10">
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to