From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EC2SJtdmJ2fbnAAAe85BDQ:P1 (envelope-from ) for ; Sun, 03 Nov 2024 12:04:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id EC2SJtdmJ2fbnAAAe85BDQ (envelope-from ) for ; Sun, 03 Nov 2024 13:04:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=RnJgPec+; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021081301 header.b=h40u2UKe; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=fsfe.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730635479; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZoVObXLv3RlkPH9Rpfuf+whgN12s9da97tKn3QsdX24=; b=N8VW0U69NeE1R74+5dWmqtVa2CRtMLKnWQUjibnV52MEu3RS2NrjfE16d8ehFmrDOzLOjj 5DOAp+4Zr51bzsptkAMRv26KsW9xCguwA4XctEZrK2HmkYAjOftWbaKFdTu4ozhVMeorAC HbCiEsePUndDvtoTOKoYwwBAH6v41ClNtidRoHQunzVTWDNRzM1A3Vr7Q5XmkIiaeJH0jV mlwtkCQvH3SGRyXinB3+cTqWGZkOyHyMd7HIVI2WNiqiEe4WxQv+W5NzlVNLP95F/CGrye Te9VftGbBNaVJrn9b9IsRRflEKIWeQk7qDa+g2eCqDBwW4Kd2M5cELxfdPafJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730635479; a=rsa-sha256; cv=none; b=EikgXA+L+qX1KVCll4uGBMYS9Jurq9xE0w07TYaGAql0foFt7l2pg6QUooXcAK2WEcV2YJ 7E4EchMXW8NzdDB+Y1aIdBqlmlx66/6M/QzShh4fx+cCcXr/zeQwBxce8NxOroHcxMhHV5 YOTJXrp70ou1995zXvpihADxHPwxJ0OxkEWHhDIeKVSMIUHV6jDQAnyZMrEeNZrNGdrn6N iLcrjWm9W8heF+FFjY1T2SFA97uawihRN/VxkuJu3pA632gmX2Uim/T5db6l6UuG7+I1DM 24+khx/C3NSXVWy+03h9YHQZek4yhyhL3hwWWxFRkn9Lj1s0mpDm6z8u+CXPGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=RnJgPec+; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021081301 header.b=h40u2UKe; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=fsfe.org (policy=none) 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 47D6457C8D for ; Sun, 03 Nov 2024 13:04:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7ZKx-0006uE-F2; Sun, 03 Nov 2024 07:04:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7ZKu-0006tU-KT for guix-patches@gnu.org; Sun, 03 Nov 2024 07:04:05 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7ZKu-0003So-CB for guix-patches@gnu.org; Sun, 03 Nov 2024 07:04:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=ZoVObXLv3RlkPH9Rpfuf+whgN12s9da97tKn3QsdX24=; b=RnJgPec++bMVdUxqykRqPKCK9mSAyNe0O4EDyuUO7s2vOtqmK1VwwLlXGmfKkldNzN36aK/J1fDFewE9D+wfXZOJQDGJ1eQKKGELcnjhhfJcs6wOHNNLQgsMTPIVhLU19NcJOUVrynGNNnW2RIec3++Lc5DVNHEk9v6gWwdX6aEQ0AEO0H0bZxLbJF4DvufharBM3rQDdCVQS+ID5wTbzQ188nxM6VMGNmP9NUk5Sri6/pdEx0a2Ye494QnEU0GSCJwWEgfE/KOFd3z18iAw/+OJTOUQnuqehrPzGzSvCwrSMD6I1UX1aqEJs5XzDM7UgojFTXAR0Y0ne/V4UzSXng==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t7ZKu-0004L1-6s for guix-patches@gnu.org; Sun, 03 Nov 2024 07:04:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74187] [PATCH 07/20] gnu: node-lts: Update to 20.18.0 [security fixes]. Resent-From: jlicht@fsfe.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Nov 2024 12:04:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74187 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74187@debbugs.gnu.org Cc: Jelle Licht Received: via spool by 74187-submit@debbugs.gnu.org id=B74187.173063542616572 (code B ref 74187); Sun, 03 Nov 2024 12:04:04 +0000 Received: (at 74187) by debbugs.gnu.org; 3 Nov 2024 12:03:46 +0000 Received: from localhost ([127.0.0.1]:59916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7ZKb-0004JD-S4 for submit@debbugs.gnu.org; Sun, 03 Nov 2024 07:03:46 -0500 Received: from mail2.fsfe.org ([213.95.165.55]:37764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7ZKX-0004IA-R8 for 74187@debbugs.gnu.org; Sun, 03 Nov 2024 07:03:42 -0500 From: jlicht@fsfe.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021081301; t=1730635421; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZoVObXLv3RlkPH9Rpfuf+whgN12s9da97tKn3QsdX24=; b=h40u2UKedfIlalVihpY575lrmZ+SX7G13HtOxXoXwyqIVwDoEkItdqGcxEV+nD/BljPRt9 8jdQV2VbZFFGedSTgFrsl958QWe10v/F5WZx8SDgyV/bNjFBpBHyouTq9PVTx3k7zyzakB hi6VG0en8X0CjTVQjC170W3BzHD+mK8= Date: Sun, 3 Nov 2024 13:03:54 +0100 Message-ID: <30e6dd2b0115cc792626f77a5bcf4827af5ae92f.1730634823.git.jlicht@fsfe.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.72 X-Spam-Score: 1.72 X-Migadu-Queue-Id: 47D6457C8D X-Migadu-Scanner: mx13.migadu.com X-TUID: 8JN/wrdJ4deN From: Jelle Licht * gnu/packages/node.scm (node-lts): Update to 20.18.0. [origin]: Delete bundled brotli, ngtcp2 and uv. [:configure-flags]: Add shared-nghtcp2 flag. Add shared-nghttp3 flag. [#:phases]: Remove tests that fail due to linking to unbundled libuv. [native-inputs]: Replace libuv by libuv-for-node-lts. [inputs]: Replace libuv by libuv-for-node-lts. Add ngtpc2, nghttp3. Change-Id: I932e64f212283b34f0affad65c3d9f92fdea3d79 --- gnu/packages/node.scm | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 36ed22e052..f046f1bad5 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -750,14 +750,14 @@ (define-public llhttp-bootstrap (define-public node-lts (package (inherit node) - (version "18.19.0") + (version "20.18.0") (source (origin (method url-fetch) (uri (string-append "https://nodejs.org/dist/v" version "/node-v" version ".tar.gz")) (sha256 (base32 - "05qc1dgmrms73073n4l36jrcxf6ygqj959d3cngy5qclrg0isk6x")) + "033jb6kf9jq2qlq7ncvbznkd9wi3zppjl0129k989183qn7rz0f0")) (modules '((guix build utils))) (snippet '(begin @@ -768,9 +768,12 @@ (define-public node-lts (not (string-contains file "nodejs-openssl.cnf"))))) ;; Remove bundled software, where possible (for-each delete-file-recursively - '("deps/cares" + '("deps/brotli" + "deps/cares" "deps/icu-small" "deps/nghttp2" + "deps/ngtcp2" + "deps/uv" "deps/zlib")) (substitute* "Makefile" ;; Remove references to bundled software. @@ -786,6 +789,8 @@ (define-public node-lts "--shared-zlib" "--shared-brotli" "--with-intl=system-icu" + "--shared-ngtcp2" + "--shared-nghttp3" ;;Needed for correct snapshot checksums "--v8-enable-snapshot-compression")) ((#:phases phases) @@ -874,7 +879,15 @@ (define-public node-lts ;; TODO: Regenerate certs instead. (for-each delete-file '("test/parallel/test-tls-passphrase.js" - "test/parallel/test-tls-server-verify.js")))) + "test/parallel/test-tls-server-verify.js")) + + ;; These tests fail when linking to upstream libuv. + ;; https://github.com/nodejs/node/commit/3f6addd590 + (for-each delete-file + '("test/parallel/test-process-euid-egid.js" + "test/parallel/test-process-initgroups.js" + "test/parallel/test-process-setgroups.js" + "test/parallel/test-process-uid-gid.js")))) (add-after 'delete-problematic-tests 'replace-llhttp-sources (lambda* (#:key inputs #:allow-other-keys) ;; Replace pre-generated llhttp sources @@ -940,10 +953,11 @@ (define-public node-lts c-ares brotli icu4c - libuv + libuv-for-node-lts `(,nghttp2 "lib") openssl zlib + ; ngtcp2? nghttp3? ;; Regular build-time dependencies. perl pkg-config @@ -955,9 +969,11 @@ (define-public node-lts coreutils c-ares icu4c - libuv + libuv-for-node-lts llhttp-bootstrap brotli + ngtcp2 + nghttp3 `(,nghttp2 "lib") openssl zlib)))) -- 2.46.0