From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AA0BB13835A for ; Sun, 9 May 2021 14:29:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87927E0636; Sun, 9 May 2021 14:29:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 62642E0636 for ; Sun, 9 May 2021 14:29:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A8CA340C7F for ; Sun, 9 May 2021 14:29:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CBA9C59C for ; Sun, 9 May 2021 14:29:01 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1620570513.a52b28a758d244f86e4609bd5936b7a1023a34d6.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/files/, net-libs/nodejs/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/nodejs/files/nodejs-16.1.0-test-repl-history-navigation.patch net-libs/nodejs/nodejs-16.1.0.ebuild X-VCS-Directories: net-libs/nodejs/ net-libs/nodejs/files/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: a52b28a758d244f86e4609bd5936b7a1023a34d6 X-VCS-Branch: master Date: Sun, 9 May 2021 14:29:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 76af2ebf-35c7-4786-9e2c-4cc1fec30696 X-Archives-Hash: d4b854d1a8052752e78eae0a24c34b0e commit: a52b28a758d244f86e4609bd5936b7a1023a34d6 Author: Marek Szuba gentoo org> AuthorDate: Sun May 9 12:24:29 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Sun May 9 14:28:33 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a52b28a7 net-libs/nodejs-16.1.0: Backport upstream fix for test-repl-history-navigation Signed-off-by: Marek Szuba gentoo.org> ...odejs-16.1.0-test-repl-history-navigation.patch | 56 ++++++++++++++++++++++ net-libs/nodejs/nodejs-16.1.0.ebuild | 5 +- 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/net-libs/nodejs/files/nodejs-16.1.0-test-repl-history-navigation.patch b/net-libs/nodejs/files/nodejs-16.1.0-test-repl-history-navigation.patch new file mode 100644 index 00000000000..724541a870d --- /dev/null +++ b/net-libs/nodejs/files/nodejs-16.1.0-test-repl-history-navigation.patch @@ -0,0 +1,56 @@ +From 7c8a60851c459ea18afbfc54bfc8cf7394ea56c3 Mon Sep 17 00:00:00 2001 +From: Antoine du Hamel +Date: Thu, 6 May 2021 12:00:07 +0200 +Subject: [PATCH] test,repl: fix tests when inspector is disabled + +Fixes: https://github.com/nodejs/node/issues/38558 + +PR-URL: https://github.com/nodejs/node/pull/38564 +Reviewed-By: Anna Henningsen +Reviewed-By: James M Snell +Reviewed-By: Rich Trott +--- + test/parallel/test-repl-history-navigation.js | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/test/parallel/test-repl-history-navigation.js b/test/parallel/test-repl-history-navigation.js +index df4f0390a69c..527cf235bddd 100644 +--- a/test/parallel/test-repl-history-navigation.js ++++ b/test/parallel/test-repl-history-navigation.js +@@ -559,14 +559,14 @@ const tests = [ + env: { NODE_REPL_HISTORY: defaultHistoryPath }, + test: ['const util = {}', ENTER, + 'ut', RIGHT, ENTER], +- expected: common.hasIntl && common.hasCrypto ? [ ++ expected: [ + prompt, ...'const util = {}', + 'undefined\n', +- prompt, ...'ut', ' // il', '\n// {}', +- 'il', '\n// {}', ++ prompt, ...'ut', ...(prev ? [' // il', '\n// {}', ++ 'il', '\n// {}'] : [' // il', 'il']), + '{}\n', + prompt, +- ] : [], ++ ], + clean: false + }, + { +@@ -577,7 +577,7 @@ const tests = [ + 'globalThis.util = {}', ENTER, + 'ut', RIGHT, ENTER, + 'Reflect.defineProperty(globalThis, "util", utilDesc)', ENTER], +- expected: common.hasIntl && common.hasCrypto ? [ ++ expected: [ + prompt, ...'const utilDesc = ' + + 'Reflect.getOwnPropertyDescriptor(globalThis, "util")', + 'undefined\n', +@@ -588,7 +588,7 @@ const tests = [ + prompt, ...'Reflect.defineProperty(globalThis, "util", utilDesc)', + 'true\n', + prompt, +- ] : [], ++ ], + clean: false + }, + ]; diff --git a/net-libs/nodejs/nodejs-16.1.0.ebuild b/net-libs/nodejs/nodejs-16.1.0.ebuild index 61ddcf50edb..f3079de1131 100644 --- a/net-libs/nodejs/nodejs-16.1.0.ebuild +++ b/net-libs/nodejs/nodejs-16.1.0.ebuild @@ -42,6 +42,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/${PN}-12.22.1-uvwasi_shared_libuv.patch "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch + "${FILESDIR}"/${PN}-16.1.0-test-repl-history-navigation.patch ) S="${WORKDIR}/node-v${PV}" @@ -70,10 +71,6 @@ src_prepare() { export V=1 export BUILDTYPE=Release - # See https://github.com/nodejs/node/issues/38558 - # FIXME: temporary, until we have figured out why that one single test fails. - rm -f test/parallel/test-repl-history-navigation.js - # fix compilation on Darwin # https://code.google.com/p/gyp/issues/detail?id=260 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die