<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 20 oct. 2023 à 10:33, Christopher Obbard <<a href="mailto:chris.obbard@collabora.com">chris.obbard@collabora.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Control: retitle -1 nodejs: cannot bootstrap nodejs<br>
<br>
Hi Jérémy,<br>
<br>
On Fri, 2023-10-20 at 02:25 +0200, Jérémy Lal wrote:<br>
> <a href="https://salsa.debian.org/js-team/nodejs/-/blob/master-" rel="noreferrer" target="_blank">https://salsa.debian.org/js-team/nodejs/-/blob/master-</a><br>
> 18.x/debian/README.source<br>
<br>
Thanks for your suggestion. I actually did follow those instructions to<br>
attempt to build nodejs 18.13.0+dfsg1-1.<br>
<br>
For nodejs 16.15.1+dfsg-1 following those instructions bootstraps the package<br>
just fine, I think because the "externalized builtin" JS files are present in<br>
the packaging.<br>
<br>
I have attached the three patches to debian/ to get _something_ bootstrap for<br>
18x but it still fails with the error "Cannot load externalized builtin" when<br>
trying to launch bootstrapped node.<br></blockquote><div><br></div><div>Maybe the README.source isn't clear enough.</div><div>The node package built at first stage is just good enough to build the second stage.</div><div>It is not feature-complete. Typically you can't run node REPL with it.</div><div>Once you have first stage, you install the resulting deb, and use that as a build-dependency</div><div>to build second stage (which is a normal build).</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I build the package using debuild --no-lintian in a chroot. In the build<br>
system I have no ability to build arch:all packages, just architecture<br>
dependant packages.<br>
<br>
Thanks!<br>
<br>
> Le ven. 20 oct. 2023 à 01:27, Christopher Obbard<br>
> <<a href="mailto:chris.obbard@collabora.com" target="_blank">chris.obbard@collabora.com</a>> a écrit :<br>
> > Source: nodejs<br>
> > Version: 18.13.0+dfsg1-1<br>
> > Severity: important<br>
> > X-Debbugs-Cc: <a href="mailto:chris.obbard@collabora.com" target="_blank">chris.obbard@collabora.com</a><br>
> > <br>
> > Dear Maintainer,<br>
> > <br>
> > Bootstrapping nodejs version 18 FTBFS for me. There seems to be a couple<br>
> > of different issues when bootstrapping:<br>
> > <br>
> > 1) The created node binary fails with an error about the externalized<br>
> > builtins not being found. This renders the binary useless. This also<br>
> > causes an error in the bootstrap process, override_dh_auto_build-arch<br>
> > fails with:<br>
> > <br>
> > Cannot load externalized builtin: "internal/deps/cjs-module-<br>
> > lexer/lexer:/usr/share/nodejs/cjs-module-lexer/lexer.js".<br>
> > 1: 0x7f06454026cc node::Abort() [/mnt/_build/nodejs-<br>
> > 18.13.0+dfsg1/out/Release/libnode.so.108]<br>
> > 2: 0x7f06453e1f1d [/mnt/_build/nodejs-<br>
> > 18.13.0+dfsg1/out/Release/libnode.so.108]<br>
> > 3: 0x7f06453e2069 node::builtins::BuiltinLoader::BuiltinLoader()<br>
> > [/mnt/_build/nodejs-18.13.0+dfsg1/out/Release/libnode.so.108]<br>
> > 4: 0x7f064531db83 [/mnt/_build/nodejs-<br>
> > 18.13.0+dfsg1/out/Release/libnode.so.108]<br>
> > 5: 0x7f064782947e [/lib64/ld-linux-x86-64.so.2]<br>
> > 6: 0x7f0647829568 [/lib64/ld-linux-x86-64.so.2]<br>
> > 7: 0x7f06478432ca [/lib64/ld-linux-x86-64.so.2]<br>
> > Aborted (core dumped)<br>
> > <br>
> > <br>
> > 2) dh_install fails with:<br>
> > <br>
> > dh_install: warning: Cannot find (any matches for)<br>
> > "./<@(node_builtin_shareable_builtins)" (tried in ., debian/tmp)<br>
> > dh_install: warning: nodejs missing files:<br>
> > ./<@(node_builtin_shareable_builtins)<br>
> > dh_install: error: missing files, aborting<br>
> > <br>
> > <br>
> > I have a couple of patches which works around these issues and can create<br>
> > a bootstrapped nodejs (I can share my patches if that is useful); but the<br>
> > created binary is useless due to the "Cannot load externalized builtin"<br>
> > error.<br>
> > <br>
> > Thanks!<br>
> > <br>
> > -- System Information:<br>
> > Debian Release: trixie/sid<br>
> > APT prefers unstable<br>
> > APT policy: (500, 'unstable'), (1, 'experimental')<br>
> > Architecture: amd64 (x86_64)<br>
> > <br>
> > Kernel: Linux 6.5.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)<br>
> > Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),<br>
> > LANGUAGE=en_GB:en<br>
> > Shell: /bin/sh linked to /usr/bin/dash<br>
> > Init: systemd (via /run/systemd/system)<br>
> > LSM: AppArmor: enabled<br>
> > <br>
<br>
Thanks!<br>
<br>
Chris<br>
</blockquote></div></div>