From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gMdRB6+MJF8VWAAA0tVLHw (envelope-from ) for ; Fri, 31 Jul 2020 21:27:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sGg5A6+MJF89HwAA1q6Kng (envelope-from ) for ; Fri, 31 Jul 2020 21:27:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 949F09400C3 for ; Fri, 31 Jul 2020 21:27:10 +0000 (UTC) Received: from localhost ([::1]:46068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1cYX-0005Ez-1r for larch@yhetil.org; Fri, 31 Jul 2020 17:27:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1cYQ-0005EU-Qk for guix-patches@gnu.org; Fri, 31 Jul 2020 17:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1cYQ-0003dY-I1 for guix-patches@gnu.org; Fri, 31 Jul 2020 17:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k1cYQ-0007OJ-Az for guix-patches@gnu.org; Fri, 31 Jul 2020 17:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42639] [PATCH] bump Node to 14.6 Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 31 Jul 2020 21:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42639 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: formbi@protonmail.com, 42639@debbugs.gnu.org X-Debbugs-Original-To: Formbi , Formbi via Guix-patches , 42639@debbugs.gnu.org Received: via spool by 42639-submit@debbugs.gnu.org id=B42639.159623081928391 (code B ref 42639); Fri, 31 Jul 2020 21:27:02 +0000 Received: (at 42639) by debbugs.gnu.org; 31 Jul 2020 21:26:59 +0000 Received: from localhost ([127.0.0.1]:38741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1cYM-0007Nl-TA for submit@debbugs.gnu.org; Fri, 31 Jul 2020 17:26:59 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:39078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1cYK-0007NG-Tl for 42639@debbugs.gnu.org; Fri, 31 Jul 2020 17:26:58 -0400 From: Jelle Licht In-Reply-To: References: Date: Fri, 31 Jul 2020 23:26:52 +0200 Message-ID: <87ime31ilf.fsf@jlicht.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=fsfe.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.59 X-TUID: SJ+fbs7jVcQL Hey Formbi, Formbi via Guix-patches via 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