%general-entities; ]> $LastChangedBy$ $Date$ JS-&JS38-version; js38 Introduction to JS JS is Mozilla's JavaScript engine written in C. &lfs80_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &js38-md5sum; Download size: &js38-size; Estimated disk space required: &js38-buildsize; Estimated build time: &js38-time; Additional Downloads Required patch: JS38 Dependencies Required , , , , , and Optional User Notes: Installation of JS The tarball extracts to mozjs-38.0.0, rather than what is listed in the download section. First, apply a patch to fix the build and to prevent segmentation faults. patch -Np1 -i ../js38-&JS38-version;-upstream_fixes-2.patch Install JS by running the following commands: cd js/src && autoconf2.13 && sed -i 's|\^\[:space:\]|^\[\[:space:\]\]|g' configure && ./configure --prefix=/usr \ --with-intl-api \ --with-system-zlib \ --with-system-ffi \ --with-system-nspr \ --with-system-icu \ --enable-threadsafe \ --enable-readline && make This package does not come with a working test suite. Now, as the root user: make install Command Explanations autoconf213: This command regenerates the configure script with the changes from the patch. sed -i ... configure: This command allows the configure script to function with sed 4.4. --with-*: These parameters allow the build system to use system versions of the above libriares. These are required for stability. --enable-readline: This switch enables Readline support in the JS shell. --enable-threadsafe: This switch enables support for multiple threads at one time. This increases performance as well as stability. Contents Installed Programs Installed Libraries) Installed Directories js38 and js38-config libmozjs-38.so and libjs_static.ajs /usr/include/mozjs-38 Short Descriptions js38 provides a command line interface to the JavaScript engine. js38 js38-config is used to find the JS compiler and linker flags. js38-config libmozjs-38.so contains the Mozilla JavaScript API functions. libmozjs-38.so