source: general/genlib/nodejs.xml@ b01309e7

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b01309e7 was b01309e7, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Update to ICU-69.1
Fix building WebKitGTK+ with ICU-69.1 (patch from Xi Ruoyao)
Fix building Node.JS with ICU-69.1 (patch from Ken Moffat)

  • Property mode set to 100644
File size: 7.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY nodejs-download-http "https://nodejs.org/dist/v&nodejs-version;/node-v&nodejs-version;.tar.xz">
8 <!ENTITY nodejs-download-ftp " ">
9 <!ENTITY nodejs-md5sum "0483d8d477b33fce65fd8cfbded088ca">
10 <!ENTITY nodejs-size "32 MB">
11 <!ENTITY nodejs-buildsize "727 MB (add 16 MB for tests)">
12 <!ENTITY nodejs-time "11 SBU (using parallelism=4; add 2.0 SBU for tests)">
13 <!-- time might be longer on intel, on AMD the initial LFS SBU is very slow -->
14]>
15
16<sect1 id="nodejs" xreflabel="nodejs-&nodejs-version;">
17 <?dbhtml filename="nodejs.html"?>
18
19 <sect1info>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Node.js-&nodejs-version;</title>
24
25 <indexterm zone="nodejs">
26 <primary sortas="a-nodejs">nodejs</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Node.js</title>
31
32 <para>
33 <application>Node.js</application> is a
34 <application>JavaScript</application> runtime built on
35 <application>Chrome's</application> V8 JavaScript engine.
36 </para>
37
38 &lfs101_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&nodejs-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&nodejs-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &nodejs-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &nodejs-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &nodejs-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &nodejs-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
75 <itemizedlist spacing="compact">
76 <listitem>
77 <para>
78 Required patch:
79 <ulink url="&patch-root;/node-v&nodejs-version;-icu_69-1.patch"/>
80 </para>
81 </listitem>
82 </itemizedlist>
83
84<!--<note>
85 <para>
86 This tarball was created using a BSD version of
87 <application>tar</application> and extracting it with a linux&trade;
88 version will produce harmless warnings about unknown extended header
89 keywords.
90 </para>
91 </note>-->
92
93 <bridgehead renderas="sect3">Node.js Dependencies</bridgehead>
94
95 <bridgehead renderas="sect4">Required</bridgehead>
96 <para role="required">
97 <xref linkend="which"/>
98 </para>
99
100 <bridgehead renderas="sect4">Recommended</bridgehead>
101 <para role="recommended">
102 <xref linkend="c-ares"/>,
103 <xref linkend="icu"/>,
104 <xref linkend="libuv"/>, and
105 <xref linkend="nghttp2"/>
106 </para>
107
108 <bridgehead renderas="sect4">Optional</bridgehead>
109 <para role="optional">
110 <ulink url="https://github.com/nodejs/http-parser">http-parser</ulink> and
111 <ulink url="https://www.npmjs.com/">npm</ulink> (an internal copy of
112 <command>npm</command> will be installed if not present)
113 </para>
114
115 <para condition="html" role="usernotes">
116 User Notes: <ulink url="&blfs-wiki;/nodejs"/>
117 </para>
118
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of Node.js</title>
123
124 <!-- needed for ICU-69.1 -->
125 <para>
126 First, fix the build with system ICU:
127 </para>
128
129<screen><userinput remap="pre">patch -Np1 -i ../node-v&nodejs-version;-icu_69-1.patch</userinput></screen>
130
131 <para>
132 Build <application>Node.js</application> by running the following
133 commands:
134 </para>
135
136<screen><userinput>./configure --prefix=/usr \
137 --shared-cares \
138 --shared-libuv \
139 --shared-openssl \
140 --shared-nghttp2 \
141 --shared-zlib \
142 --with-intl=system-icu &amp;&amp;
143make</userinput></screen>
144
145 <para>
146 To test the results, issue: <command>make test-only</command>.
147 <!--One test, test-dns, is known to fail.-->
148 <!-- When using make check, a module is used that wasn't shipped properly
149 with the 12.16.2 release. See Ticket #13379 for details. We should
150 probably restore "make check" after the next version of Node.js.
151 This new command skips the documentation and lint checks. -renodr-->
152 </para>
153
154 <para>
155 Now, as the <systemitem class="username">root</systemitem> user:
156 </para>
157
158<screen role="root"><userinput>make install &amp;&amp;
159ln -sf node /usr/share/doc/node-&nodejs-version;</userinput></screen>
160 </sect2>
161
162 <sect2 role="commands">
163 <title>Command Explanations</title>
164
165 <para>
166 <parameter>--with-intl=system-icu</parameter>: use the system version
167 of <application>icu</application>. Other values are
168 <option>full-icu</option> (to build a local, full
169 <application>icu</application> library) and <option>small-icu</option>
170 (to build a local, minimal <application>icu</application> library).
171 </para>
172
173 <para>
174 <!-- FIXME : reinstate nghttp2 in this if build is fixed
175 FIXME cont: Seems to be fixed in 12.18.1 -renodr
176 <parameter>\-\-shared-{cares,libuv,nghttp2,openssl,zlib}</parameter>: -->
177 <parameter>--shared-{cares,libuv,nghttp2,openssl,zlib}</parameter>:
178 use the system installed libraries instead of local copies.
179 </para>
180
181 <para>
182 <option>--without-npm</option>: do not build
183 <application>npm</application> (use if you'd like to build a separate
184 <application>npm</application> later).
185 </para>
186
187 <para>
188 <option>--shared-http-parser</option>: use the system
189 installed library instead of a local copy.
190 </para>
191
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Library</segtitle>
200 <segtitle>Installed Directories</segtitle>
201
202 <seglistitem>
203 <seg>
204 node, npm, and npx
205 </seg>
206 <seg>
207 None
208 </seg>
209 <seg>
210 /usr/include/node,
211 /usr/lib/node_modules/npm,
212 /usr/share/doc/{node,node-&nodejs-version;}, and
213 /usr/share/systemtap/tapset
214 </seg>
215 </seglistitem>
216 </segmentedlist>
217
218 <variablelist>
219 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
220 <?dbfo list-presentation="list"?>
221 <?dbhtml list-presentation="table"?>
222
223 <varlistentry id="node">
224 <term><command>node</command></term>
225 <listitem>
226 <para>
227 is the server-side JavaScript runtime
228 </para>
229 <indexterm zone="nodejs node">
230 <primary sortas="b-node">node</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="npm">
236 <term><command>npm</command></term>
237 <listitem>
238 <para>
239 is the <application>Node.js</application> package manager
240 </para>
241 <indexterm zone="nodejs npm">
242 <primary sortas="b-npm">npm</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry>
248 <term>
249 <filename class="directory">/usr/lib/node_modules/npm/</filename>
250 </term>
251 <listitem>
252 <para>
253 is the installation root for Node.js executables and libraries
254 </para>
255 </listitem>
256 </varlistentry>
257
258 </variablelist>
259
260 </sect2>
261
262</sect1>
Note: See TracBrowser for help on using the repository browser.