<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 9 déc. 2023 à 16:27, Bo YU <<a href="mailto:tsu.yubo@gmail.com">tsu.yubo@gmail.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">Source: nodejs<br>
Followup-For: Bug #1057697<br>
Version: 18.19.0+dfsg-6<br>
Tags: patch<br>
<br>
>>It seems we need to merge the patch[0] from #1054259 to finish the first<br>
>>stage for bootstraping nodejs on any arches if based on 18.19.0.<br>
<br>
>>From my side it's like this.<br>
<br>
>Right, I overlooked those patches - because I only read the first one, which was very wrong.<br>
>The actual fixes those patches were proposing are now applied.<br>
<br>
>However now I'm a bit worried that this is all in vain, because nodejs unconditionally requires cjs-module-lexer,<br>
>so one cannot execute anything without it (that wasn't the case when only acorn was an external builtin).<br>
^<br>
(Copied txt from #1054259)<br>
<br>
To be honest, I do not understand the first patch from #1054259.  <br>
Based on past bootstrap riscv64 experiences, I easily bootstrap nodejs<br>
for loong64 following the debian/README.source.<br>
<br>
Just for your convenience, I attach the debdiff for bootstrap nodejs for<br>
loong64 after finishing the first stage bootstrap.</blockquote><div><br></div><div>Good news, the first stage build now works pretty well,</div><div>meaning it produces a nodejs binary that can be useful.</div><div>It even pass most of its testsuite, except of course everything that needs</div><div>- the command line repl (acorn)</div><div>- fetch (undici)</div><div>- commonjs modules (cjs-module-lexer)</div><div><br></div><div>It is on current master-18.x branch, and i double-checked it builds fine.</div><div><br></div><div>Jérémy</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div>