From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +E8ZIcHfbWOUcQAAbAwnHQ (envelope-from ) for ; Fri, 11 Nov 2022 06:38:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wOIJIcHfbWODvgAAauVa8A (envelope-from ) for ; Fri, 11 Nov 2022 06:38:09 +0100 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 2163F292AE for ; Fri, 11 Nov 2022 06:38:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otMjs-0007O0-4I; Fri, 11 Nov 2022 00:38:04 -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 1otMjq-0007Nc-PH for guix-patches@gnu.org; Fri, 11 Nov 2022 00:38:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otMjq-0003QD-GQ for guix-patches@gnu.org; Fri, 11 Nov 2022 00:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otMjq-0003kn-Cg for guix-patches@gnu.org; Fri, 11 Nov 2022 00:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59188] [PATCH 3/4] gnu: node-lts: Update to 18.12.1. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 11 Nov 2022 05:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59188 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59188@debbugs.gnu.org Received: via spool by 59188-submit@debbugs.gnu.org id=B59188.166814507114404 (code B ref 59188); Fri, 11 Nov 2022 05:38:02 +0000 Received: (at 59188) by debbugs.gnu.org; 11 Nov 2022 05:37:51 +0000 Received: from localhost ([127.0.0.1]:44868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otMje-0003kF-L1 for submit@debbugs.gnu.org; Fri, 11 Nov 2022 00:37:51 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:58922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otMjd-0003k3-Ny for 59188@debbugs.gnu.org; Fri, 11 Nov 2022 00:37:50 -0500 Date: Fri, 11 Nov 2022 13:37:22 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1668145064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+BztkIybduMea0BNsVgCDKWEuFtULcDVz6Q0/o0o2QU=; b=veuCQLMO3bDU4ht/iNt82zF/V0gGQ+M5isE8CDU1eWyHeGs73HT2/HhEWjfGekIXc89bww yYLAft2q4JvM93WE2p/JUD+Rg/c93roafHBPqucYzcgdZyZxjyKCttMWoZ/OuNEYmat+Le xjbynz+IVqVGclqT0cq/Oz3Lae2aAfgDx2blhb0AXoORZZuPa7lzpS4NzvmKgF+M8SUhBE XrkRFD0zlLLVZLscpC/6DfzY467XlCpUdlV3Nq7GmPGuwxPc7G5BliM2L8NOS9v13Vyncf X7UiNRi/4AXMAFCTc+rTA8hwDz/ga8NDZxKw9ZSRoTPxSfnk+S/p9Zn0gkj8ag== Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Spamd-Bar: / 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: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668145089; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=+BztkIybduMea0BNsVgCDKWEuFtULcDVz6Q0/o0o2QU=; b=Ws+rBJDIOBabn0/KWjuWUtnOxndSOu8bLWsKQfFI7ys1PgT7P+/hzob6vXO8gUZLNntvth TauMo+UgYXdtUAC0Y772maXlPoUiFjuK6dgQRaced8BXavRyDaPecU+VYELxB1tWgNIR6u 6p26jFlJaL3bcpJcoy41gJMM9P1UNJjsYbKBUEwKkyRp8FS9xUrfmlhj4sguk9X4KtluZH XbS8qktni2jsBSeI6NCnPyQ9ppAxSxf2zFeUBTdrhjKtFggV/EleP3fAYWq/uyOxiB7/cY DDQPKpupWvqkCRxrvCOMEgoibn+s9tWngxKvbgyABIOOqSg/0S3DcplzK8A0Cg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668145089; a=rsa-sha256; cv=none; b=FSWFfyf3kEwt4j+053pdJxBeAX88sOSzE6gjjJmn4AmXDdIexBGtK+1tGGC1RyGpke5/0W rznCXZUpAm5nDGCZ7qddbMNg810U5Y0wUjk1lkh7N4s2q2Ggs5MPxli2BI0st3FHmzMq39 dXvT0m8vBSgM9V15u8Sz4apPN8D3cgOspVNNKL+YZWtkJ/qJCABjy9fYVpX6ZC+D05X1ok Z3PVq5pxR37ght2qLFA5dS+6Q6/ZsZnj2HR7tqhay7F/kQxgjZopYbBIT0YG+bTIoOl2Ll m3+0BLqPkiE4Fc6Tzxcc0XLBbCPR/catpu03+dNb4e+6DvbSAvRdMzUtYhzTsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=veuCQLMO; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -4.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=veuCQLMO; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 2163F292AE X-Spam-Score: -4.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: n8GNn+PwJAwD * gnu/packages/node.scm (node-lts): Update to 18.12.1. [snippet]: Keep file deps/openssl/nodejs-openssl.cnf. [arguments]<#:phases>: Adjust problematic tests to delete accordingly. Patch additional file with hardcoded references to /bin/sh. [native-inputs,inputs]: Replace openssl-1.1 with openssl. --- gnu/packages/node.scm | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 0af0158f45..cae7d3b0ca 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -735,23 +735,28 @@ (define-public llhttp-bootstrap (define-public node-lts (package (inherit node) - (version "14.19.3") + (version "18.12.1") (source (origin (method url-fetch) (uri (string-append "https://nodejs.org/dist/v" version - "/node-v" version ".tar.xz")) + "/node-v" version ".tar.gz")) (sha256 (base32 - "15691j5zhiikyamiwwd7f282g6d9acfhq91nrwx54xya38gmpx2w")) + "11n1h54wgh61inrlqjp0j4fqcz6kl60a3iip7ya90nqdl3fp90ds")) (modules '((guix build utils))) (snippet `(begin + ;; openssl.cnf is required for build. + (for-each delete-file-recursively + (find-files "deps/openssl" + (lambda (file stat) + (if (string-contains file "nodejs-openssl.cnf") + #f #t)))) ;; Remove bundled software, where possible (for-each delete-file-recursively '("deps/cares" "deps/icu-small" "deps/nghttp2" - "deps/openssl" "deps/zlib")) (substitute* "Makefile" ;; Remove references to bundled software. @@ -800,23 +805,31 @@ (define-public node-lts libuv "/lib:" zlib "/lib" "'],")))))) + (add-after 'patch-hardcoded-program-references + 'patch-additional-hardcoded-program-references + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "test/parallel/test-stdin-from-file-spawn.js" + (("'/bin/sh'") (string-append + "'" (search-input-file inputs "/bin/sh") + "'"))))) (replace 'delete-problematic-tests (lambda* (#:key inputs #:allow-other-keys) ;; FIXME: These tests fail in the build container, but they don't ;; seem to be indicative of real problems in practice. (for-each delete-file - '("test/parallel/test-cluster-master-error.js" - "test/parallel/test-cluster-master-kill.js")) + '("test/parallel/test-cluster-primary-error.js" + "test/parallel/test-cluster-primary-kill.js")) ;; These require a DNS resolver. (for-each delete-file '("test/parallel/test-dns.js" - "test/parallel/test-dns-lookupService-promises.js")) + "test/parallel/test-dns-lookupService-promises.js" + "test/parallel/test-net-socket-connect-without-cb.js" + "test/parallel/test-tcp-wrap-listen.js")) ;; These tests require networking. (for-each delete-file - '("test/parallel/test-https-agent-unref-socket.js" - "test/parallel/test-corepack-yarn-install.js")) + '("test/parallel/test-https-agent-unref-socket.js")) ;; This test is timing-sensitive, and fails sporadically on ;; slow, busy, or even very fast machines. @@ -866,7 +879,7 @@ (define-public node-lts icu4c-71 libuv-for-node `(,nghttp2 "lib") - openssl-1.1 + openssl zlib ;; Regular build-time dependencies. perl @@ -883,7 +896,7 @@ (define-public node-lts llhttp-bootstrap brotli `(,nghttp2 "lib") - openssl-1.1 + openssl python-wrapper ;; for node-gyp (supports python3) zlib)))) -- 2.38.1