From patchwork Tue Dec 1 13:30:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Schonberg X-Patchwork-Id: 106800 Received: from mail-yx1-f44.google.com (mail-yx1-f44.google.com [74.125.224.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.10855.1796131816938253306 for ; Tue, 01 Dec 2026 05:30:17 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=fT7hvQmy; spf=pass (domain: gmail.com, ip: 74.125.224.44, mailfrom: schonm@gmail.com) Received: by mail-yx1-f44.google.com with SMTP id 956f58d0204a3-67be1e468a8so11343202d50.0 for ; Tue, 01 Dec 2026 05:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796131816; x=1796736616; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=oHwPBfl9IQS5umhR/lOdMUF9W6tcLf7qT14dV+UYX7Y=; b=fT7hvQmyl/DObcacEE/ca7dbPObiRT1DsfBHxGVehK+syxzC4Nr+Ke7cfpSg1cjyvx dr30sJZyFVAaVSt+H0mpYchUmR1HXupfkFf28P8hv5Wyp/MluJR5ZwFQLulvw+XVmpw9 6UV2No8X4c8FZrOaGKzbJfWhUoX/Twiv9WK01L7terjegeGf+QwDxnj/dXOeVFt/MsDy TETHVFcOdn+rGGNFh8xndI/6AeSq/XLtndLutTXG0iRREU6AS+vUCI2uP2oc9nj57mcA Te3kNXSg6h64T2qLE2Ls0w2ga36TO1vDx+qdP0LE5UcOqmkEFFxgrHGHs/gVC/DyZq5Y 6GVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796131816; x=1796736616; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=oHwPBfl9IQS5umhR/lOdMUF9W6tcLf7qT14dV+UYX7Y=; b=Spf0oQF2d3mAy9YfvVCaWKJU97/NLrjAzilRSei79hWyjgCB+RCpvIUIf9C+/rndbS mTRGViBqqD2AEdQCudc+NEN3hoEI2Sa2ce86igGk2fvGTS+wKcmLnN60iJD/z8gi93vi H8nD0P0zlYAFjADflANimiAM/MN76olrPNMTDhHjZdeZNQpSIogtDRCHg6Hd0hd3HUG9 94AK1glYOGzICac72B3ZezAJpdRTk9u55o7Um07ow37xHquRNIU0mpfgs3FoiWgrLbY0 hVlVC4kmBPg+83qcDh6+2j4xXKUsq5QGStvS1Osm5Km6oNAYH5IaA1VHU83eKP9uK6EX X0KQ== X-Gm-Message-State: APuU4Z9j1XauKi+iiId1PDuLP2uCNI4wTzQLf9nFrHQ38UJutjHi7WNv l2p26kluEkwPD+SQ31fp6wKhU/xq3pblN8Gcian6QpipZRewGAFV4eH169hritIO X-Gm-Gg: AZFdTZfEZDCCOvFBJKuV5alRw5kytgZFBXXQlk/1OHWj7OKzU9TuKkMXvUktxkgBNxw AFThV4wjomQ8NERHmk7aqDcXdJlA2BLMxa2hSai9BORbDaO9ndBjVsp5ucfc3bd/h2BcTtt6uRO 363NvMVzVkuzYf20PhJ0qVlLQoC+8fJKyINBxs8X/2Jg5PERjQ8y09ipAdwN/Fg3PxVYVELr0rX C06C6Hd4/IC+xqAx6hMCAVLQcqKIxy8lNIYIUbLCrN8iD4zJGsae47W8r3glhQjPvOKMy3uvCem I8h3bwZe8gMVU979vkUY46NV7L5GrPhgnpRDIX+EoapjF2HMjgliKq7Ozwamol06TYVpyGBYMC/ PaxAKZtMij7pp/mrNfwwg5jEWQZBMeYWPy1XCbLktb0+ZivRz1ZTmxobwwGUoiamgoElafdfAyT OFh1M/Vs1j9Kej4QH1Z2z8JaFKdmOP6nL38Rv8nRYJ/UCAhLS+3C6RBD3SODr9kNkbfCH8LqURB dSdvLLXQ7aniXRLFS+5XwFAL13b2SboTzXFCfpw3YGMXht9jqvdExSvhFELomoEZ9eiXhUCrb/C h7ul7JoyiF8sq7gyf+wHrp8W4gh5swtZmZSrWuSV1D9CzRNJJFO5/6Mn1dL0+9ZZlgTB6swwhFw xXYdMj94bFp3cHKwqAq496PnkATkhgD0zThUMCpBQKah+xYZiVA== X-Received: by 2002:a05:690e:4009:b0:67d:a096:d8b7 with SMTP id 956f58d0204a3-67df42ba074mr18454200d50.3.1796131815624; Tue, 01 Dec 2026 05:30:15 -0800 (PST) Return-Path: Received: from localhost.localdomain ([67.7.74.75]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67df30e4407sm17058840d50.0.2026.12.01.05.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 05:30:15 -0800 (PST) From: Jason Schonberg To: openembedded-devel@lists.openembedded.org Cc: Jason Schonberg Subject: [meta-oe][PATCH] nodejs: upgrade 26.13.1 -> 26.14.0 Date: Tue, 1 Dec 2026 08:30:06 -0500 Message-ID: <20261201133007.1974572-1-schonm@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 13:30:18 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133750 Drop backported V8 patch which is now included in the new version. Changelog: https://github.com/nodejs/node/releases/tag/v26.14.0 Signed-off-by: Jason Schonberg --- ...y-case-equivalents-of-BMP-characters.patch | 235 ------------------ .../oe-npm-cache | 0 ....13.bb => nodejs-oe-cache-native_26.14.bb} | 0 .../{nodejs_26.13.1.bb => nodejs_26.14.0.bb} | 3 +- 4 files changed, 1 insertion(+), 237 deletions(-) delete mode 100644 meta-oe/recipes-devtools/nodejs/nodejs-26/0011-v8-handle-supplementary-case-equivalents-of-BMP-characters.patch rename meta-oe/recipes-devtools/nodejs/{nodejs-oe-cache-26.13 => nodejs-oe-cache-26.14}/oe-npm-cache (100%) rename meta-oe/recipes-devtools/nodejs/{nodejs-oe-cache-native_26.13.bb => nodejs-oe-cache-native_26.14.bb} (100%) rename meta-oe/recipes-devtools/nodejs/{nodejs_26.13.1.bb => nodejs_26.14.0.bb} (98%) diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-26/0011-v8-handle-supplementary-case-equivalents-of-BMP-characters.patch b/meta-oe/recipes-devtools/nodejs/nodejs-26/0011-v8-handle-supplementary-case-equivalents-of-BMP-characters.patch deleted file mode 100644 index a1b1e9d71a..0000000000 --- a/meta-oe/recipes-devtools/nodejs/nodejs-26/0011-v8-handle-supplementary-case-equivalents-of-BMP-characters.patch +++ /dev/null @@ -1,235 +0,0 @@ -From e455d955bd6b7a7549106d1b9d7ae5bb3b9e77b4 Mon Sep 17 00:00:00 2001 -From: Jakob Linke -Date: Fri, 9 Oct 2026 12:41:30 +0200 -Subject: [PATCH] v8: [regexp] Handle supplementary case equivalents of BMP - characters - -Unicode 18 adds U+1DF95, which simple-folds to U+00DF. This creates the -first case-equivalence class spanning BMP and supplementary characters: -{U+00DF, U+1E9E, U+1DF95}. - -Discard supplementary characters from the generator's non-unicode -closures before calling Canonicalize, which requires UTF-16 code units -and otherwise CHECK-fails with ICU 79. Apply the same filtering in -runtime non-unicode closure. - -Generate SupplementaryEquivalentsSet and desugar its BMP characters into -character classes under /iu and /iv, allowing literals to match -surrogate pairs. - -Backreferences with differing UTF-16 character widths remain unsupported -and are tracked in crbug.com/571793821. - -IgnoreSet is unchanged with ICU 78 and with ICU 78.2 patched to upstream -Unicode 18 case data. With the patched data, the generator succeeds, -SupplementaryEquivalentsSet is {U+00DF, U+1E9E}, and regexp tests pass -in release and debug. - -Bug: 571232615, 571668686 -Change-Id: I9eacb273a74c66e17f0cfb1b256e863f2718c130 -Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8548134 -Reviewed-by: Patrick Thier -Commit-Queue: Jakob Linke -Cr-Commit-Position: refs/heads/main@{#110522} - -Fixes the build with system ICU 79.1 (Unicode 18), where -gen-regexp-special-case aborts with "Check failed: ch <= 0xffff". - -This is the V8 change adapted to the RegExpCaseFolding layout of the -V8 13.6 bundled with Node.js 24; the test changes are dropped. - -Upstream-Status: Backport [https://github.com/v8/v8/commit/f607706154eabc4a949628a88b38dbe95cd2274c] -Signed-off-by: Khem Raj ---- - deps/v8/src/regexp/gen-regexp-special-case.cc | 18 ++++++++++ - deps/v8/src/regexp/regexp-parser.cc | 18 +++++++--- - deps/v8/src/regexp/special-case.h | 47 ++++++++++++++++++++++++++- - 3 files changed, 77 insertions(+), 6 deletions(-) - -diff --git a/deps/v8/src/regexp/gen-regexp-special-case.cc b/deps/v8/src/regexp/gen-regexp-special-case.cc -index 86f6b21..98f7097 100644 ---- a/deps/v8/src/regexp/gen-regexp-special-case.cc -+++ b/deps/v8/src/regexp/gen-regexp-special-case.cc -@@ -9,6 +9,7 @@ - - #include "src/base/strings.h" - #include "src/regexp/special-case.h" -+#include "unicode/uchar.h" - - namespace v8 { - namespace internal { -@@ -17,6 +18,19 @@ static const base::uc32 kSurrogateStart = 0xd800; - static const base::uc32 kSurrogateEnd = 0xdfff; - static const base::uc32 kNonBmpStart = 0x10000; - -+// Removes supplementary code points from |set| and returns whether any were -+// present. Since Unicode 18, the case closure of a BMP character can contain -+// supplementary code points (U+1DF95 LATIN SMALL LIGATURE LONG S WITH -+// DESCENDER S case-folds to U+00DF LATIN SMALL LETTER SHARP S). Non-unicode -+// ignoreCase matching compares UTF-16 code units, so a supplementary code -+// point never matches a BMP character and does not take part in Canonicalize. -+bool RemoveSupplementary(icu::UnicodeSet& set) { -+ constexpr UChar32 kFirstSupplementary = static_cast(kNonBmpStart); -+ if (!set.containsSome(kFirstSupplementary, UCHAR_MAX_VALUE)) return false; -+ set.remove(kFirstSupplementary, UCHAR_MAX_VALUE); -+ return true; -+} -+ - // The following code generates "src/regexp/special-case.cc". - void PrintSet(std::ofstream& out, const char* name, - const icu::UnicodeSet& set) { -@@ -51,6 +65,7 @@ void PrintSpecial(std::ofstream& out) { - icu::UnicodeSet current; - icu::UnicodeSet special_add; - icu::UnicodeSet ignore; -+ icu::UnicodeSet supplementary_equivalents; - UErrorCode status = U_ZERO_ERROR; - icu::UnicodeSet upper("[\\p{Lu}]", status); - CHECK(U_SUCCESS(status)); -@@ -63,6 +78,7 @@ void PrintSpecial(std::ofstream& out) { - } - current.set(i, i); - current.closeOver(USET_CASE_INSENSITIVE); -+ if (RemoveSupplementary(current)) supplementary_equivalents.add(i); - - // Check to see if all characters in the case-folding equivalence - // class as defined by UnicodeSet::closeOver all map to the same -@@ -112,6 +128,7 @@ void PrintSpecial(std::ofstream& out) { - UChar32 canonical = RegExpCaseFolding::Canonicalize(c); - current.set(c, c); - current.closeOver(USET_CASE_INSENSITIVE); -+ RemoveSupplementary(current); - current.removeAll(ignore); - for (int32_t j = 0; j < current.getRangeCount(); j++) { - for (UChar32 c2 = current.getRangeStart(j); -@@ -124,6 +141,7 @@ void PrintSpecial(std::ofstream& out) { - - PrintSet(out, "IgnoreSet", ignore); - PrintSet(out, "SpecialAddSet", special_add); -+ PrintSet(out, "SupplementaryEquivalentsSet", supplementary_equivalents); - } - - void WriteHeader(const char* header_filename) { -diff --git a/deps/v8/src/regexp/regexp-parser.cc b/deps/v8/src/regexp/regexp-parser.cc -index 2792cd0..dd883c3 100644 ---- a/deps/v8/src/regexp/regexp-parser.cc -+++ b/deps/v8/src/regexp/regexp-parser.cc -@@ -10,6 +10,7 @@ - #include "src/regexp/regexp-ast.h" - #include "src/regexp/regexp-macro-assembler.h" - #include "src/regexp/regexp.h" -+#include "src/regexp/special-case.h" - #include "src/strings/char-predicates-inl.h" - #include "src/utils/ostreams.h" - #include "src/utils/utils.h" -@@ -156,6 +157,10 @@ void RegExpTextBuilder::FlushText() { - - void RegExpTextBuilder::AddCharacter(base::uc16 c) { - FlushPendingSurrogate(); -+ if (NeedsDesugaringForIgnoreCase(c)) { -+ AddClassRangesForDesugaring(c); -+ return; -+ } - if (characters_ == nullptr) { - characters_ = zone()->New>(4, zone()); - } -@@ -238,15 +243,18 @@ bool RegExpTextBuilder::NeedsDesugaringForUnicode(RegExpClassRanges* cc) { - return false; - } - --// We only use this for characters made of surrogate pairs. All other --// characters outside of character classes are made case independent in the --// code generation. -+// Desugar supplementary characters with case equivalents and BMP characters -+// with supplementary equivalents. Other atoms are folded during code -+// generation. - bool RegExpTextBuilder::NeedsDesugaringForIgnoreCase(base::uc32 c) { - #ifdef V8_INTL_SUPPORT - if (IsUnicodeMode() && ignore_case()) { -+ if (c <= unibrow::Utf16::kMaxNonSurrogateCharCode) { -+ return RegExpCaseFolding::HasSupplementaryEquivalents( -+ static_cast(c)); -+ } - icu::UnicodeSet set(c, c); -- set.closeOver(USET_CASE_INSENSITIVE); -- set.removeAllStrings(); -+ RegExpCaseFolding::CloseOver(set, RegExpCaseFolding::Mode::kUnicode); - return set.size() > 1; - } - // In the case where ICU is not included, we act as if the unicode flag is -diff --git a/deps/v8/src/regexp/special-case.h b/deps/v8/src/regexp/special-case.h -index 753c923..80b88a3 100644 ---- a/deps/v8/src/regexp/special-case.h -+++ b/deps/v8/src/regexp/special-case.h -@@ -7,8 +7,8 @@ - - #ifdef V8_INTL_SUPPORT - #include "src/base/logging.h" -+#include "src/base/strings.h" - #include "src/common/globals.h" -- - #include "unicode/uchar.h" - #include "unicode/uniset.h" - #include "unicode/unistr.h" -@@ -71,9 +71,17 @@ namespace internal { - // another character. Characters that match no other characters in - // their equivalence class are added to IgnoreSet. Characters that - // match at least one other character are added to SpecialAddSet. -+// Supplementary code points are ignored throughout: non-unicode matching -+// compares UTF-16 code units, so they can never match a BMP character. -+// -+// The generator additionally emits SupplementaryEquivalentsSet, the BMP -+// characters whose Unicode case closure contains supplementary code points. -+// This set is used for unicode-mode matching, see HasSupplementaryEquivalents. - - class RegExpCaseFolding final : public AllStatic { - public: -+ enum class Mode { kNonUnicode, kUnicode }; -+ - static const icu::UnicodeSet& IgnoreSet(); - static const icu::UnicodeSet& SpecialAddSet(); - -@@ -108,6 +116,43 @@ class RegExpCaseFolding final : public AllStatic { - // h. Return cu. - return cu; - } -+ -+ // Close a set of characters under case equivalence, preserving its -+ // original members. Non-unicode inputs must be UTF-16 code units. -+ static void CloseOver(icu::UnicodeSet& set, Mode mode) { -+ if (mode == Mode::kUnicode) { -+ set.closeOver(USET_SIMPLE_CASE_INSENSITIVE); -+ return; -+ } -+ DCHECK(!set.containsSome(0x10000, 0x10ffff)); -+ if (IgnoreSet().containsNone(set)) { -+ CloseOverNonUnicode(set); -+ return; -+ } -+ if (IgnoreSet().containsAll(set)) return; -+ // Ignored characters neither contribute nor acquire equivalents, but -+ // must remain in the result if they were explicitly present. -+ icu::UnicodeSet ignored(set); -+ ignored.retainAll(IgnoreSet()); -+ set.removeAll(IgnoreSet()); -+ CloseOverNonUnicode(set); -+ set.addAll(ignored); -+ } -+ -+ // Whether c has supplementary Unicode case equivalents. -+ static bool HasSupplementaryEquivalents(base::uc16 c) { -+ return SupplementaryEquivalentsSet().contains(c); -+ } -+ -+ private: -+ static const icu::UnicodeSet& SupplementaryEquivalentsSet(); -+ -+ // Requires a set containing no IgnoreSet characters. -+ static void CloseOverNonUnicode(icu::UnicodeSet& set) { -+ set.closeOver(USET_SIMPLE_CASE_INSENSITIVE); -+ set.removeAll(IgnoreSet()); -+ set.remove(0x10000, 0x10ffff); -+ } - }; - - } // namespace internal diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-26.13/oe-npm-cache b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-26.14/oe-npm-cache similarity index 100% rename from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-26.13/oe-npm-cache rename to meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-26.14/oe-npm-cache diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_26.13.bb b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_26.14.bb similarity index 100% rename from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_26.13.bb rename to meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_26.14.bb diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_26.13.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_26.14.0.bb similarity index 98% rename from meta-oe/recipes-devtools/nodejs/nodejs_26.13.1.bb rename to meta-oe/recipes-devtools/nodejs/nodejs_26.14.0.bb index 5d968b0f36..183fa59f35 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_26.13.1.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_26.14.0.bb @@ -29,14 +29,13 @@ SRC_URI = "https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ file://0006-deps-disable-io_uring-support-in-libuv.patch \ file://0007-positional-args.patch \ file://0008-custom-env.patch \ - file://0011-v8-handle-supplementary-case-equivalents-of-BMP-characters.patch \ file://0012-v8-Fix-static_assert-in-discarded-constexpr-branches-for-gcc-12.patch \ file://run-ptest \ " SRC_URI:append:class-target = " \ file://0009-Using-native-binaries.patch \ " -SRC_URI[sha256sum] = "a7f6204ff63b6a2cd274d48903285abb86ed53a99070e532d4c2fd787457d9e6" +SRC_URI[sha256sum] = "41986f2c0cca26730f1861865b4f2ef51b15abc16865f564ca20f87010aad622" # Even-numbered majors are the LTS lines UPSTREAM_CHECK_URI = "https://nodejs.org/dist/"