File: README.source

package info (click to toggle)
nodejs 24.11.1%2Bdfsg%2B~cs24.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 252,928 kB
  • sloc: cpp: 1,728,964; javascript: 473,397; ansic: 113,512; python: 60,329; sh: 4,344; makefile: 3,026; asm: 1,728; pascal: 1,562; perl: 494; lisp: 222; xml: 39
file content (31 lines) | stat: -rw-r--r-- 1,569 bytes parent folder | download | duplicates (4)
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