Changeset 5028839f


Ignore:
Timestamp:
09/17/2023 04:55:11 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
2adc3b67
Parents:
3f65573
Message:

Rename js102 to spidermonkey

Files:
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • general/genlib/genlib.xml

    r3f65573 r5028839f  
    7878  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="intel-gmmlib.xml"/>
    7979  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="jansson.xml"/>
    80 <!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js91.xml"/>-->
    81   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="js102.xml"/>
    8280  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="json-c.xml"/>
    8381  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="json-glib.xml"/>
     
    159157  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qca.xml"/>
    160158<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qjson.xml"/>-->
     159  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="spidermonkey.xml"/>
    161160  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="talloc.xml"/>
    162161  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="telepathy-glib.xml"/>
  • general/genlib/spidermonkey.xml

    r3f65573 r5028839f  
    55  %general-entities;
    66
    7 <!-- for when firefox and js91 use same version
    8   <!ENTITY ff91-version       "&firefox-version;">
    9   and when they are on different versions - keep this for when
    10   we have moved to next firefox-esr (ff-91) and JS  has not moved
    11   <!ENTITY ff91-version       "&JS91-version;"> -->
    12 
    13 <!--<!ENTITY ff102-version       "&firefox-version;">-->
    14   <!ENTITY js102-download-http "&mozilla-http;/firefox/releases/&JS102-version;esr/source/firefox-&JS102-version;esr.source.tar.xz">
    15   <!ENTITY js102-download-ftp  " ">
    16   <!ENTITY js102-md5sum        "466e1dbe2a2eb23eceeb8986568e59c7">
    17   <!ENTITY js102-size          "464 MB">
    18   <!ENTITY js102-buildsize     "3.3 GB (39 MB installed after removing 34MB static lib)">
    19   <!ENTITY js102-time          "2.0 SBU (with parallelism=4)">
     7  <!ENTITY spidermonkey-download-http "&mozilla-http;/firefox/releases/&spidermonkey-version;esr/source/firefox-&spidermonkey-version;esr.source.tar.xz">
     8  <!ENTITY spidermonkey-download-ftp  " ">
     9  <!ENTITY spidermonkey-md5sum        "466e1dbe2a2eb23eceeb8986568e59c7">
     10  <!ENTITY spidermonkey-size          "464 MB">
     11  <!ENTITY spidermonkey-buildsize     "3.3 GB (39 MB installed after removing 34MB static lib)">
     12  <!ENTITY spidermonkey-time          "2.0 SBU (with parallelism=4)">
    2013]>
    2114
    22 <sect1 id="js102" xreflabel="JS-&JS102-version;">
    23   <?dbhtml filename="js102.html"?>
    24 
    25 
    26   <title>JS-&JS102-version;</title>
    27 
    28   <indexterm zone="js102">
    29     <primary sortas="a-js102">js102</primary>
     15<sect1 id="spidermonkey" xreflabel="SpiderMonkey from Firefox-&spidermonkey-version;">
     16  <?dbhtml filename="spidermonkey.html"?>
     17
     18
     19  <title>SpiderMonkey from Firefox-&spidermonkey-version;</title>
     20
     21  <indexterm zone="spidermonkey">
     22    <primary sortas="a-spidermonkey">SpiderMonkey</primary>
    3023  </indexterm>
    3124
    3225  <sect2 role="package">
    33     <title>Introduction to JS</title>
    34 
    35     <para>
    36       <application>JS</application> (also known as
    37       <application>SpiderMonkey</application>) is Mozilla's JavaScript and
     26    <title>Introduction to SpiderMonkey</title>
     27
     28    <para>
     29      <application>SpiderMonkey</application> is Mozilla's JavaScript and
    3830      WebAssembly Engine, written in C++ and Rust.
    39       In BLFS, the source code of JS is taken from Firefox.
     31      In BLFS, the source code of SpiderMonkey is taken from Firefox.
    4032    </para>
    4133
     
    4840      <listitem>
    4941        <para>
    50           Download (HTTP): <ulink url="&js102-download-http;"/>
    51         </para>
    52       </listitem>
    53       <listitem>
    54         <para>
    55           Download (FTP): <ulink url="&js102-download-ftp;"/>
    56         </para>
    57       </listitem>
    58       <listitem>
    59         <para>
    60           Download MD5 sum: &js102-md5sum;
    61         </para>
    62       </listitem>
    63       <listitem>
    64         <para>
    65           Download size: &js102-size;
    66         </para>
    67       </listitem>
    68       <listitem>
    69         <para>
    70           Estimated disk space required: &js102-buildsize;
    71         </para>
    72       </listitem>
    73       <listitem>
    74         <para>
    75           Estimated build time: &js102-time;
     42          Download (HTTP): <ulink url="&spidermonkey-download-http;"/>
     43        </para>
     44      </listitem>
     45      <listitem>
     46        <para>
     47          Download (FTP): <ulink url="&spidermonkey-download-ftp;"/>
     48        </para>
     49      </listitem>
     50      <listitem>
     51        <para>
     52          Download MD5 sum: &spidermonkey-md5sum;
     53        </para>
     54      </listitem>
     55      <listitem>
     56        <para>
     57          Download size: &spidermonkey-size;
     58        </para>
     59      </listitem>
     60      <listitem>
     61        <para>
     62          Estimated disk space required: &spidermonkey-buildsize;
     63        </para>
     64      </listitem>
     65      <listitem>
     66        <para>
     67          Estimated build time: &spidermonkey-time;
    7668        </para>
    7769      </listitem>
     
    8880    </itemizedlist>
    8981-->
    90     <bridgehead renderas="sect3">JS102 Dependencies</bridgehead>
     82    <bridgehead renderas="sect3">SpiderMonkey Dependencies</bridgehead>
    9183
    9284    <bridgehead renderas="sect4">Required</bridgehead>
     
    124116
    125117  <sect2 role="installation">
    126     <title>Installation of JS</title>
     118    <title>Installation of SpiderMonkey</title>
    127119
    128120    <note>
    129121      <para>
    130         Unlike most other packages in BLFS, the instructions below require you
    131         to untar <filename>firefox-&JS102-version;esr.tar.xz</filename> and
    132         change into the <filename>firefox-&JS102-version;</filename> folder.
     122        Unlike most other packages in BLFS, the instructions below require
     123        you to untar
     124        <filename>firefox-&spidermonkey-version;esr.tar.xz</filename> and
     125        change into the <filename>firefox-&spidermonkey-version;</filename>
     126        folder.
    133127      </para>
    134128
     
    157151
    158152    <para>
    159       Install <application>JS</application> by running the following
     153      Install <application>SpiderMonkey</application> by running the following
    160154      commands:
    161155    </para>
     
    187181
    188182    <para>
    189       To run the JS test suite, issue:
     183      To run the SpiderMonkey test suite, issue:
    190184      <command>make -C js/src check-jstests
    191185      JSTESTS_EXTRA_ARGS="--timeout 300 --wpt=disabled"</command>.
     
    205199      <para>
    206200        An issue in the installation process causes any running program which
    207         links to JS102 shared library (for example, GNOME Shell) to crash if
    208         JS102 is upgraded or reinstalled.  To work around this issue, remove
    209         the old version of the JS102 shared library before installation:
    210       </para>
    211 
    212 <screen role="root"><userinput>rm -fv /usr/lib/libmozjs-102.so</userinput></screen>
     201        links to SpiderMonkey shared library (for example, GNOME Shell) to
     202        crash if SpiderMonkey is reinstalled, or upgraded or downgraded
     203        without a change of the the major version number
     204        (&spidermonkey-major; in &spidermonkey-version;).  To work around
     205        this issue, remove the old version of the SpiderMonkey shared
     206        library before installation:
     207      </para>
     208
     209<screen role="root"><userinput>rm -fv /usr/lib/libmozjs-&spidermonkey-major;.so</userinput></screen>
    213210    </caution>
    214211
     
    219216<screen role="root"><userinput>make install &amp;&amp;
    220217rm -v /usr/lib/libjs_static.ajs &amp;&amp;
    221 sed -i '/@NSPR_CFLAGS@/d' /usr/bin/js102-config</userinput></screen>
     218sed -i '/@NSPR_CFLAGS@/d' /usr/bin/js&spidermonkey-major;-config</userinput></screen>
    222219
    223220  </sect2>
     
    247244    <para>
    248245      <parameter>--enable-readline</parameter>: This switch enables Readline
    249       support in the JS shell.
     246      support in the SpiderMonkey command line interface.
    250247    </para>
    251248
    252249    <para>
    253250      <parameter>--disable-jemalloc</parameter>: This switch disables the
    254       internal memory allocator used in JS102. jemalloc is only intended for
    255       the Firefox browser environment. For other applications using JS102,
    256       the application may crash as items allocated in the jemalloc allocator
    257       are freed on the system (glibc) allocator.
     251      internal memory allocator used in SpiderMonkey. jemalloc is only
     252      intended for the Firefox browser environment. For other applications
     253      using SpiderMonkey, the application may crash as items allocated in
     254      the jemalloc allocator are freed on the system (glibc) allocator.
    258255    </para>
    259256
     
    261258      <parameter>--disable-debug-symbols</parameter>: Don't generate debug
    262259      symbols since they are very large and most users won't need it. Remove
    263       it if you want to debug JS102.
     260      it if you want to debug SpiderMonkey.
    264261    </para>
    265262
     
    270267
    271268    <para>
    272       <command>sed -i '/@NSPR_CFLAGS@/d' /usr/bin/js102-config</command>:
    273       Prevent <command>js102-config</command> from using buggy CFLAGS.
     269      <command>sed -i '/@NSPR_CFLAGS@/d'
     270      /usr/bin/js&spidermonkey-major;-config</command>:
     271      Prevent <command>js&spidermonkey-major;-config</command> from using
     272      buggy CFLAGS.
    274273    </para>
    275274
     
    294293      Use it if you are building this package on a 32-bit system with
    295294      GCC (if Clang is not installed or GCC is explicitly specified).
    296       Note that this will cause JS to crash on a processor without SSE2
    297       capability.  If you are running the system on such an old processor,
    298       Clang is strictly needed.  This setting is not needed on 64-bit
    299       systems because all 64-bit x86 processors support SSE2 and the 64-bit
    300       compilers (both Clang and GCC) use SSE2 by default.
     295      Note that this will cause SpiderMonkey to crash on a processor without
     296      SSE2 capability.  If you are running the system on such an old
     297      processor, Clang is strictly needed.  This setting is not needed on
     298      64-bit systems because all 64-bit x86 processors support SSE2 and the
     299      64-bit compilers (both Clang and GCC) use SSE2 by default.
    301300    </para>
    302301  </sect2>
     
    312311      <seglistitem>
    313312        <seg>
    314           js102 and js102-config
     313          js&spidermonkey-major; and js&spidermonkey-major;-config
    315314        </seg>
    316315        <seg>
    317           libmozjs-102.so
     316          libmozjs-&spidermonkey-major;.so
    318317        </seg>
    319318        <seg>
    320           /usr/include/mozjs-102
     319          /usr/include/mozjs-&spidermonkey-major;
    321320        </seg>
    322321      </seglistitem>
     
    328327      <?dbhtml list-presentation="table"?>
    329328
    330       <varlistentry id="js102-js102">
    331         <term><command>js102</command></term>
     329      <varlistentry id="js&spidermonkey-major;">
     330        <term><command>js&spidermonkey-major;</command></term>
    332331        <listitem>
    333332          <para>
     
    335334            <application>JavaScript</application> engine
    336335          </para>
    337           <indexterm zone="js102 js102">
    338             <primary sortas="b-js102">js102</primary>
     336          <indexterm zone="spidermonkey js&spidermonkey-major;">
     337            <primary sortas="b-js&spidermonkey-major;">
     338              js&spidermonkey-major;
     339            </primary>
    339340          </indexterm>
    340341        </listitem>
    341342      </varlistentry>
    342343
    343       <varlistentry id="js102-config">
    344         <term><command>js102-config</command></term>
     344      <varlistentry id="js&spidermonkey-major;-config">
     345        <term><command>js&spidermonkey-major;-config</command></term>
    345346        <listitem>
    346347          <para>
    347             is used to find the JS compiler and linker flags
     348            is used to find the SpiderMonkey compiler and linker flags
    348349          </para>
    349           <indexterm zone="js102 js102-config">
    350             <primary sortas="b-js102-config">js102-config</primary>
     350          <indexterm zone="spidermonkey js&spidermonkey-major;-config">
     351            <primary sortas="b-js&spidermonkey-major;-config">i
     352              js&spidermonkey-major;-config
     353            </primary>
    351354          </indexterm>
    352355        </listitem>
    353356      </varlistentry>
    354357
    355       <varlistentry id="libmozjs-102">
    356         <term><filename class="libraryfile">libmozjs-102.so</filename></term>
     358      <varlistentry id="libmozjs-&spidermonkey-major;">
     359        <term>
     360          <filename class="libraryfile">
     361            libmozjs-&spidermonkey-major;.so
     362          </filename>
     363        </term>
    357364        <listitem>
    358365          <para>
    359366            contains the Mozilla JavaScript API functions
    360367          </para>
    361           <indexterm zone="js102 libmozjs-102">
    362             <primary sortas="c-libmozjs102">libmozjs-102.so</primary>
     368          <indexterm zone="spidermonkey libmozjs-&spidermonkey-major;">
     369            <primary sortas="c-libmozjs&spidermonkey-major;">
     370              libmozjs-&spidermonkey-major;.so
     371            </primary>
    363372          </indexterm>
    364373        </listitem>
  • gnome/platform/gjs.xml

    r3f65573 r5028839f  
    7474      <xref linkend="dbus"/>,
    7575      <xref linkend="gobject-introspection"/>, and
    76       <xref linkend="js102"/>
     76      <xref linkend="spidermonkey"/>
    7777    </para>
    7878
  • packages.ent

    r3f65573 r5028839f  
    118118<!ENTITY intel-gmmlib-version         "22.3.11">
    119119<!ENTITY jansson-version              "2.14">
    120 <!ENTITY JS102-version                "102.15.0">
    121120<!ENTITY json-c-version               "0.17">
    122121<!ENTITY json-glib-version            "1.6.6">
     
    183182<!ENTITY pth-version                  "2.0.7">
    184183<!ENTITY qca-version                  "2.3.7">
     184<!ENTITY spidermonkey-major           "102">
     185<!ENTITY spidermonkey-version         "&spidermonkey-major;.15.0">
    185186<!ENTITY talloc-version               "2.4.1">
    186187<!ENTITY telepathy-glib-version       "0.24.2">
  • postlfs/security/polkit.xml

    r3f65573 r5028839f  
    131131    <para role="optional">
    132132      <xref linkend="gtk-doc"/>,
    133       <xref linkend="js102"/> (can be used in place of duktape), and
    134       <xref linkend="python-dbusmock"/> (for tests)
     133      <xref linkend="python-dbusmock"/>, and
     134      <xref linkend="spidermonkey"/> (can be used in place of duktape)
    135135    </para>
    136136
     
    183183
    184184    <para>
    185       If using <xref linkend="js102"/>, make the following change (see Command
    186       Explanations below for more information):
     185      If using <xref linkend="spidermonkey"/>, make the following change
     186      (see Command Explanations below for more information):
    187187    </para>
    188188
     
    273273    <para>
    274274      <option>-Djs_engine=mozjs</option>: This switch allows using the
    275       <xref linkend="js102"/> JavaScript engine instead of the
     275      <xref linkend="spidermonkey"/> JavaScript engine instead of the
    276276      <xref linkend='duktape'/> JavaScript engine.
    277277    </para>
Note: See TracChangeset for help on using the changeset viewer.