File: README.source

package info (click to toggle)
nodejs 20.19.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 219,072 kB
  • sloc: cpp: 1,277,408; javascript: 565,332; ansic: 129,476; python: 58,536; sh: 3,841; makefile: 2,725; asm: 1,732; perl: 248; lisp: 222; xml: 42
file content (31 lines) | stat: -rw-r--r-- 1,569 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Bootstrap a new arch: two-staged build
--------------------------------------

 Nodejs build-depends on several other nodejs arch-independent modules for:
 - building documentation (not crucial)
 - tolerant javascript parser and AST walker for cli REPL (acorn)
 - fetch implementation using a webassembly http parser (undici)

 Those modules may already be in the archive, or not;
 1. They have been built from some other architecture.
    They naturally depend on nodejs, so one cannot install them to bootstrap nodejs.
    However one can install them alongside a first stage build of nodejs to get
    a fully working repl.
    Build nodejs once, install modules and nodejs, rebuild nodejs.
 2. They are not available in the archive.
    They must be built using a first stage build of nodejs:
    Build nodejs once, build modules, install modules and nodejs, rebuild nodejs.
 
 In both cases, one must build nodejs twice using:

 - First using build profiles:
   $ apt --build-profiles=nodoc,nocheck,pkg.nodejs.nobuiltin,noautodbgsym build-dep nodejs
   $ dpkg-buildpackage --build=any --build-profiles=nodoc,nocheck,pkg.nodejs.nobuiltin,noautodbgsym
   Or, just
   $ sbuild --arch-any --no-arch-all --profiles=nodoc,nocheck,pkg.nodejs.nobuiltin,noautodbgsym
 - install produced nodejs debian package
 - optionally (case 2), build the missing modules, install them
 - Second without profiles, using the previously created debian packages
   (either install them or use sbuild --extra-packages)

 -- Jérémy Lal <kapouer@melix.org>  Mon, 16 May 2022 11:47:13 +0200