GNU bug report logs -
#42639
[PATCH] bump Node to 14.6
Previous Next
Reported by: Formbi <formbi <at> protonmail.com>
Date: Fri, 31 Jul 2020 17:12:01 UTC
Severity: normal
Tags: patch
Done: Jelle Licht <jlicht <at> fsfe.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42639 in the body.
You can then email your comments to 42639 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Fri, 31 Jul 2020 17:12:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Formbi <formbi <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 31 Jul 2020 17:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Empty Message
[0002-bump-node-to-14.6.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Fri, 31 Jul 2020 21:27:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 42639 <at> debbugs.gnu.org (full text, mbox):
Hey Formbi,
Formbi via Guix-patches via <guix-patches <at> gnu.org> writes:
> Subject: [PATCH 2/2] bump node to 14.6
Sadly, recent node versions come bundled with generated code based on
the llhttp[1] project. These generated source files can be found in the
deps/llhttp/src directory of the 14.6 release, and the annoying thing is
that upstream uses typescript to generate these C files. See [2] for my
feeble attempt at having upstream take note of this issue to allow for
properly bootstrapping lltthp and subsequently recent versions of node.
There are some alternative typescript implementations that I
unsuccessfully have tried in the past in at least translating the
typescript used in llhttp to normal javascript, which we could then
interpret using our packaged version of node to build the C files that
would allow us to build newer versions of node. The ones I looked at in
some detail are:
- Sucrase [3] but it doesn't support all used typescript constructs
- swc [4] but it actually depends on the normal typescript compiler
I'm sorry I don't have better news to share either. Perhaps some
guile-guru can drop down from their higher spheres of existence and
create a hacky interpreter that translates typescript to
extremely-ugly-yet-correct javascript to help us escape this quagmire.
- Jelle
[1] https://github.com/nodejs/llhttp
[2] https://github.com/nodejs/llhttp/issues/14
[3] https://github.com/alangpierce/sucrase/issues/464
[4] https://github.com/swc-project/swc
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Fri, 31 Jul 2020 21:28:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Fri, 31 Jul 2020 21:34:01 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
oh my bananas, that's bad news :(
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Fri, 31 Jul 2020 21:34:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Fri, 31 Jul 2020 21:38:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 42639 <at> debbugs.gnu.org (full text, mbox):
Jelle Licht <jlicht <at> fsfe.org> writes:
> would allow us to build newer versions of node. The ones I looked at in
> some detail are:
>
> - Sucrase [3] but it doesn't support all used typescript constructs
> - swc [4] but it actually depends on the normal typescript compiler
[snip]
> [4] https://github.com/swc-project/swc
It seems this is not actually the case, but swc still seems to depend on
having a rust nightly compiler available.
- Jelle
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Fri, 31 Jul 2020 21:42:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 42639 <at> debbugs.gnu.org (full text, mbox):
> seems to depend on having a rust nightly compiler available.
we have Rust 1.45.1 in Guix, wouldn't it be sufficient?
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Thu, 06 Aug 2020 22:02:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 42639 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Fri, Jul 31, 2020 at 11:37:24PM +0200, Jelle Licht wrote:
> Jelle Licht <jlicht <at> fsfe.org> writes:
>
> > would allow us to build newer versions of node. The ones I looked at in
> > some detail are:
> >
> > - Sucrase [3] but it doesn't support all used typescript constructs
> > - swc [4] but it actually depends on the normal typescript compiler
> [snip]
> > [4] https://github.com/swc-project/swc
> It seems this is not actually the case, but swc still seems to depend on
> having a rust nightly compiler available.
>
> - Jelle
It seems that a nightly compiler is only used for an optimization flag:
commenting out the -Z thinlto=no line in .cargo/config in swc's repo
made it pass `cargo check' just fine.
Regards,
Jakub Kądziołka
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Thu, 06 Aug 2020 22:54:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 42639 <at> debbugs.gnu.org (full text, mbox):
Jakub Kądziołka <kuba <at> kadziolka.net> writes:
> On Fri, Jul 31, 2020 at 11:37:24PM +0200, Jelle Licht wrote:
>> It seems this is not actually the case, but swc still seems to depend on
>> having a rust nightly compiler available.
>>
>> - Jelle
>
> It seems that a nightly compiler is only used for an optimization flag:
> commenting out the -Z thinlto=no line in .cargo/config in swc's repo
> made it pass `cargo check' just fine.
Indeed it does; does that fix this problem for us? At this stage, I end
up with a library that was built successfully, but no clue how to
continue from here. Either way, progress! ;)
- Jelle
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42639
; Package
guix-patches
.
(Fri, 07 Aug 2020 13:59:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 42639 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Fri, Aug 07, 2020 at 12:53:53AM +0200, Jelle Licht wrote:
> Indeed it does; does that fix this problem for us? At this stage, I end
> up with a library that was built successfully, but no clue how to
> continue from here. Either way, progress! ;)
Hmm, it seems that the main way to use swc is by a wrapper written in
TypeScript (node-swc/src), which is built with neon, also a tool written
in TypeScript. However, it seems that it shouldn't be too hard to invoke
swc with just Rust, with something along the lines of examples/usage.rs
Regards,
Jakub Kądziołka
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Jelle Licht <jlicht <at> fsfe.org>
:
You have taken responsibility.
(Sun, 28 May 2023 21:59:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Formbi <formbi <at> protonmail.com>
:
bug acknowledged by developer.
(Sun, 28 May 2023 21:59:01 GMT)
Full text and
rfc822 format available.
Message #37 received at 42639-done <at> debbugs.gnu.org (full text, mbox):
We now have node <at> 18 on master, and worked around the bootstrapping issue
using a different solution (esbuild). Closing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 26 Jun 2023 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.