git: 0b5ac4fe4610 - main - devel/electron44: Update to 44.10.2

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Fri, 06 Nov 2026 00:31:15 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0b5ac4fe461008f5016505ff013cdd473329d6e8

commit 0b5ac4fe461008f5016505ff013cdd473329d6e8
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-11-06 00:30:09 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-11-06 00:31:10 +0000

    devel/electron44: Update to 44.10.2
    
    Changelog: https://github.com/electron/electron/releases/tag/v44.10.2
    
    Reported by:    GitHub (watch releases)
---
 devel/electron44/Makefile                          |  2 +-
 devel/electron44/Makefile.version                  |  2 +-
 devel/electron44/distinfo                          | 18 ++++-----
 ...isplay__embedder_skia__output__surface__impl.cc |  4 +-
 ...ird__party_electron__node_src_compile__cache.cc | 45 ++++++++++++++++++++++
 5 files changed, 58 insertions(+), 13 deletions(-)

diff --git a/devel/electron44/Makefile b/devel/electron44/Makefile
index e0ed6f8bc7d5..85d8b7db1e7d 100644
--- a/devel/electron44/Makefile
+++ b/devel/electron44/Makefile
@@ -240,7 +240,7 @@ SNDIO_VARS_OFF=		GN_ARGS+=use_sndio=false
 # See ${WRKSRC}/electron/DEPS for CHROMIUM_VER
 CHROMIUM_VER=			152.0.7977.169
 # See ${WRKSRC}/electron/DEPS for NODE_VER
-NODE_VER=			24.22.1
+NODE_VER=			24.22.2
 # See ${WRKSRC}/electron/DEPS for NAN_VER
 NAN_VER=			675cefebca42410733da8a454c8d9391fcebfbc2
 # See ${WRKSRC}/electron/DEPS for SQUIRREL_MAC_VER
diff --git a/devel/electron44/Makefile.version b/devel/electron44/Makefile.version
index 4cabd15176d5..3224aa6b74cf 100644
--- a/devel/electron44/Makefile.version
+++ b/devel/electron44/Makefile.version
@@ -1,2 +1,2 @@
-ELECTRON_VER=		44.10.1
+ELECTRON_VER=		44.10.2
 ELECTRON_VER_MAJOR=	${ELECTRON_VER:C/\..*//}
diff --git a/devel/electron44/distinfo b/devel/electron44/distinfo
index e8f6ceaddd86..41ef4679b33e 100644
--- a/devel/electron44/distinfo
+++ b/devel/electron44/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1793475953
+TIMESTAMP = 1793865633
 SHA256 (electron/chromium-152.0.7977.169.tar.xz.0) = b610c29c094f329d988cd4929a3da2c354a5334391b6823a505f72b4e7d73735
 SIZE (electron/chromium-152.0.7977.169.tar.xz.0) = 2000000000
 SHA256 (electron/chromium-152.0.7977.169.tar.xz.1) = 2cd28fa241540f260a80e569d035ae2ce477e65033b957b1c382189c682abae1
@@ -421,14 +421,14 @@ SHA256 (electron/rust/crates/zmij-1.0.21.crate) = b8848ee67ecc8aedbaf3e4122217af
 SIZE (electron/rust/crates/zmij-1.0.21.crate) = 26665
 SHA256 (electron/yarn-4.18.0.tgz) = 1a1bc8f7767d284517803535e296f0bbac005274f9c85eeb20e7803220e4d50a
 SIZE (electron/yarn-4.18.0.tgz) = 1331218
-SHA256 (electron/electron44-44.10.1-node-modules-arm64.tar.xz) = a3d042836055c795fe916ca298c9ee5c3778a7dfe816dd9c593118160197d000
-SIZE (electron/electron44-44.10.1-node-modules-arm64.tar.xz) = 72366468
-SHA256 (electron/electron44-44.10.1-node-modules-x64.tar.xz) = cb69fcfca3887d0a813eea35aeb97e07b51745ab2f6097cc83cab1ba1a444734
-SIZE (electron/electron44-44.10.1-node-modules-x64.tar.xz) = 93118359
-SHA256 (electron/electron-electron-v44.10.1_GH0.tar.gz) = e2283522064eaa19f582c1800c23ba49c749969f93a1a28d702f48abd1a4f770
-SIZE (electron/electron-electron-v44.10.1_GH0.tar.gz) = 20916579
-SHA256 (electron/nodejs-node-v24.22.1_GH0.tar.gz) = 1bb091c5a76b69e0a92dda348be35969328cb1e47a8a6049d1642d5038688a52
-SIZE (electron/nodejs-node-v24.22.1_GH0.tar.gz) = 130124976
+SHA256 (electron/electron44-44.10.2-node-modules-arm64.tar.xz) = a3d042836055c795fe916ca298c9ee5c3778a7dfe816dd9c593118160197d000
+SIZE (electron/electron44-44.10.2-node-modules-arm64.tar.xz) = 72366468
+SHA256 (electron/electron44-44.10.2-node-modules-x64.tar.xz) = cb69fcfca3887d0a813eea35aeb97e07b51745ab2f6097cc83cab1ba1a444734
+SIZE (electron/electron44-44.10.2-node-modules-x64.tar.xz) = 93118359
+SHA256 (electron/electron-electron-v44.10.2_GH0.tar.gz) = 3327dc971fc443a6037fb03d51e351ceccaaff26404fcfec47b8f9a3de0db893
+SIZE (electron/electron-electron-v44.10.2_GH0.tar.gz) = 21022967
+SHA256 (electron/nodejs-node-v24.22.2_GH0.tar.gz) = ca2716a7d730b345b1f625cb04b94d8cc6de87cd2adf2d0c15f5fea7cbd5e847
+SIZE (electron/nodejs-node-v24.22.2_GH0.tar.gz) = 130129915
 SHA256 (electron/nodejs-nan-675cefebca42410733da8a454c8d9391fcebfbc2_GH0.tar.gz) = 3983c68f19ed75dd37dc228eab385093ae2533132730f253f0c3d19ff10788e3
 SIZE (electron/nodejs-nan-675cefebca42410733da8a454c8d9391fcebfbc2_GH0.tar.gz) = 111323
 SHA256 (electron/Squirrel-Squirrel.Mac-fffea30e4a339a7f7d69a3391314b72548d209bd_GH0.tar.gz) = 2ff12ef316f27fc73e24ed2ee80c1e9b4ec5065aba2dbb14a1a979335152e92e
diff --git a/devel/electron44/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc b/devel/electron44/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc
index 21bea1adb2b1..55c2be11aa16 100644
--- a/devel/electron44/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc
+++ b/devel/electron44/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc
@@ -1,6 +1,6 @@
---- components/viz/service/display_embedder/skia_output_surface_impl.cc.orig	2026-08-24 20:59:34 UTC
+--- components/viz/service/display_embedder/skia_output_surface_impl.cc.orig	2026-11-05 08:03:22 UTC
 +++ components/viz/service/display_embedder/skia_output_surface_impl.cc
-@@ -1519,7 +1519,7 @@ GrBackendFormat SkiaOutputSurfaceImpl::GetGrBackendFor
+@@ -1509,7 +1509,7 @@ GrBackendFormat SkiaOutputSurfaceImpl::GetGrBackendFor
                                          VK_IMAGE_TILING_OPTIMAL, vk_format,
                                          si_format, image_context->color_space(),
                                          image_context->ycbcr_info());
diff --git a/devel/electron44/files/patch-third__party_electron__node_src_compile__cache.cc b/devel/electron44/files/patch-third__party_electron__node_src_compile__cache.cc
new file mode 100644
index 000000000000..0dafec33e298
--- /dev/null
+++ b/devel/electron44/files/patch-third__party_electron__node_src_compile__cache.cc
@@ -0,0 +1,45 @@
+--- third_party/electron_node/src/compile_cache.cc.orig	2026-10-20 17:54:51 UTC
++++ third_party/electron_node/src/compile_cache.cc
+@@ -44,16 +44,23 @@ uint32_t GetHash(const char* data, size_t size) {
+   return crc32(crc, reinterpret_cast<const Bytef*>(data), size);
+ }
+ 
+-std::string GetCacheVersionTag() {
++std::string GetCacheVersionTag(EnableOption option) {
++  std::string tag = std::string(NODE_VERSION) + '-' + std::string(NODE_ARCH) +
++                    '-' + Uint32ToHex(ScriptCompiler::CachedDataVersionTag());
++#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS
+   // On platforms where uids are available, use different folders for
+   // different users to avoid cache miss due to permission incompatibility.
+   // On platforms where uids are not available, bare with the cache miss.
+   // This should be fine on Windows, as there local directories tend to be
+   // user-specific.
+-  std::string tag = std::string(NODE_VERSION) + '-' + std::string(NODE_ARCH) +
+-                    '-' + Uint32ToHex(ScriptCompiler::CachedDataVersionTag());
+-#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS
+-  tag += '-' + std::to_string(getuid());
++  // A portable cache is meant to be reused wherever the same layout is
++  // found, including by other users (e.g. a cache generated at build time
++  // and shipped read-only with an application), so it is not split by uid:
++  // a user who cannot write to it still reads it, and a failed write is
++  // only a cache miss.
++  if (option != EnableOption::PORTABLE) {
++    tag += '-' + std::to_string(getuid());
++  }
+ #endif
+   return tag;
+ }
+@@ -538,11 +545,12 @@ CompileCacheHandler::CompileCacheHandler(Environment* 
+ // Directory structure:
+ // - Compile cache directory (from NODE_COMPILE_CACHE)
+ //   - $NODE_VERSION-$ARCH-$CACHE_DATA_VERSION_TAG-$UID
++//     ($UID is omitted for a portable cache)
+ //     - $FILENAME_AND_MODULE_TYPE_HASH.cache: a hash of filename + module type
+ CompileCacheEnableResult CompileCacheHandler::Enable(Environment* env,
+                                                      const std::string& dir,
+                                                      EnableOption option) {
+-  std::string cache_tag = GetCacheVersionTag();
++  std::string cache_tag = GetCacheVersionTag(option);
+   std::string absolute_cache_dir_base = PathResolve(env, {dir});
+   std::string cache_dir_with_tag =
+       absolute_cache_dir_base + kPathSeparator + cache_tag;