[Pkg-javascript-devel] Help: nodejs 16 need node-acorn source to break bootstrapping loop
Pirate Praveen
praveen at onenetbeyond.org
Thu Dec 2 01:02:30 GMT 2021
2021, ഡിസംബർ 1 9:52:45 PM IST, "Jérémy Lal" <kapouer at melix.org>ൽ എഴുതി
>Le mer. 1 déc. 2021 à 16:41, Pirate Praveen <praveen at onenetbeyond.org> a
>écrit :
>
>>
>>
>> 2021, ഡിസംബർ 1 5:18:25 PM IST, "Jérémy Lal" <kapouer at melix.org>ൽ എഴുതി
>> >Hi,
>> >
>> >To work around the bootstrapping issue that is posed by the huge loop
>> >of build-dependencies:
>> >nodejs -> node-acorn -> rollup -> zillion things -> nodejs,
>> >it is possible to make a stage 1 nodejs build that loads node-acorn
>> >*source* files,
>> >instead of the compiled ones.
>>
>> If nodejs 16 can handle acorn source files (ES6) directly, can we just
>> skip the build of acorn ? So we can drop nodejs build dependency.
>>
>
>yes, it can be skipped, for stage 1 build.
>But the configuration options used for that build are not supported by
>upstream
>for anything else than development, and it has a non-negligible impact on
>nodejs initial load time.
>So as soon as node-acorn can be built (by rollup), normal nodejs build must
>be done.
I'm suggesting we ship node-acorn as ES6 source only (remove build steps from current node-acorn itself) if our nodejs can handle it. Rollup might be needed only for compatibility with older nodejs versions which we don't need to support.
>
>>
>> >However, to do that, I wonder what's the best option:
>> >- a new node-acorn-source provides /usr/share/nodejs/node-acorn/src/
>> >and "stage 1 nodejs" depends on it ?
>> >- nodejs source stops dfsg-excluding all of node-acorn from its tarball,
>> >keeps only
>> >the source files and install them for the runtime in
>> >/usr/share/nodejs/node/deps/acorn/acorn/src/
>> >
>> >NB: likewise for node-acorn-walk
>> >
>> >Jérémy
>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
More information about the Pkg-javascript-devel
mailing list