[Pkg-javascript-devel] Bug#1054259: Bug#1054259: nodejs: cannot bootstrap nodejs

Christopher Obbard chris.obbard at collabora.com
Fri Oct 20 09:31:08 BST 2023


Control: retitle -1 nodejs: cannot bootstrap nodejs

Hi Jérémy,

On Fri, 2023-10-20 at 02:25 +0200, Jérémy Lal wrote:
> https://salsa.debian.org/js-team/nodejs/-/blob/master-
> 18.x/debian/README.source

Thanks for your suggestion. I actually did follow those instructions to
attempt to build nodejs 18.13.0+dfsg1-1.

For nodejs 16.15.1+dfsg-1 following those instructions bootstraps the package
just fine, I think because the "externalized builtin" JS files are present in
the packaging.

I have attached the three patches to debian/ to get _something_ bootstrap for
18x but it still fails with the error "Cannot load externalized builtin" when
trying to launch bootstrapped node.

I build the package using debuild --no-lintian in a chroot. In the build
system I have no ability to build arch:all packages, just architecture
dependant packages.

Thanks!

> Le ven. 20 oct. 2023 à 01:27, Christopher Obbard
> <chris.obbard at collabora.com> a écrit :
> > Source: nodejs
> > Version: 18.13.0+dfsg1-1
> > Severity: important
> > X-Debbugs-Cc: chris.obbard at collabora.com
> > 
> > Dear Maintainer,
> > 
> > Bootstrapping nodejs version 18 FTBFS for me. There seems to be a couple
> > of different issues when bootstrapping:
> > 
> > 1) The created node binary fails with an error about the externalized
> > builtins not being found. This renders the binary useless. This also
> > causes an error in the bootstrap process, override_dh_auto_build-arch
> > fails with:
> > 
> >     Cannot load externalized builtin: "internal/deps/cjs-module-
> > lexer/lexer:/usr/share/nodejs/cjs-module-lexer/lexer.js".
> >      1: 0x7f06454026cc node::Abort() [/mnt/_build/nodejs-
> > 18.13.0+dfsg1/out/Release/libnode.so.108]
> >      2: 0x7f06453e1f1d  [/mnt/_build/nodejs-
> > 18.13.0+dfsg1/out/Release/libnode.so.108]
> >      3: 0x7f06453e2069 node::builtins::BuiltinLoader::BuiltinLoader()
> > [/mnt/_build/nodejs-18.13.0+dfsg1/out/Release/libnode.so.108]
> >      4: 0x7f064531db83  [/mnt/_build/nodejs-
> > 18.13.0+dfsg1/out/Release/libnode.so.108]
> >      5: 0x7f064782947e  [/lib64/ld-linux-x86-64.so.2]
> >      6: 0x7f0647829568  [/lib64/ld-linux-x86-64.so.2]
> >      7: 0x7f06478432ca  [/lib64/ld-linux-x86-64.so.2]
> >     Aborted (core dumped)
> > 
> > 
> > 2) dh_install fails with:
> > 
> >     dh_install: warning: Cannot find (any matches for)
> > "./<@(node_builtin_shareable_builtins)" (tried in ., debian/tmp)
> >     dh_install: warning: nodejs missing files:
> > ./<@(node_builtin_shareable_builtins)
> >     dh_install: error: missing files, aborting
> > 
> > 
> > I have a couple of patches which works around these issues and can create
> > a bootstrapped nodejs (I can share my patches if that is useful); but the
> > created binary is useless due to the "Cannot load externalized builtin"
> > error.
> > 
> > Thanks!
> > 
> > -- System Information:
> > Debian Release: trixie/sid
> >   APT prefers unstable
> >   APT policy: (500, 'unstable'), (1, 'experimental')
> > Architecture: amd64 (x86_64)
> > 
> > Kernel: Linux 6.5.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
> > Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
> > LANGUAGE=en_GB:en
> > Shell: /bin/sh linked to /usr/bin/dash
> > Init: systemd (via /run/systemd/system)
> > LSM: AppArmor: enabled
> > 

Thanks!

Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Set-build-profiles-to-bootstrap-nodejs.patch
Type: text/x-patch
Size: 5063 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20231020/725116e5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-HACK-bootstrap-Don-t-attempt-to-install-bash-complet.patch
Type: text/x-patch
Size: 2262 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20231020/725116e5/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-HACK-bootstrap-Don-t-attempt-to-install-node_builtin.patch
Type: text/x-patch
Size: 1511 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20231020/725116e5/attachment-0002.bin>


More information about the Pkg-javascript-devel mailing list