git: 1de8af29e7f0 - main - devel/electron44: Fix crash on self-spawning with ELECTRON_RUN_AS_NODE=1

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Tue, 06 Oct 2026 11:44:45 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1de8af29e7f0f9c0364f8ce4abf5a062a30afd15

commit 1de8af29e7f0f9c0364f8ce4abf5a062a30afd15
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-10-06 11:41:48 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-10-06 11:44:31 +0000

    devel/electron44: Fix crash on self-spawning with ELECTRON_RUN_AS_NODE=1
    
    The crash was due to incorrectly handled crashpad handler, which is
    not supported on FreeBSD. Removing the incorrect patch solved the
    problem.
    
    GitHub Issue: https://github.com/tagattie/FreeBSD-Electron/issues/169
    
    Reported by:    Wenyin Root <ruojiner@hotmail.com> (via GitHub Issue)
---
 devel/electron44/Makefile                              |  1 +
 devel/electron44/files/patch-electron_lib_node_init.ts | 11 -----------
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/devel/electron44/Makefile b/devel/electron44/Makefile
index a848ccf0a571..cbaadc6e511f 100644
--- a/devel/electron44/Makefile
+++ b/devel/electron44/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	electron
 DISTVERSIONPREFIX=	v
 DISTVERSION=	${ELECTRON_VER}
+PORTREVISION=	1
 PULSEMV=	16
 PULSEV=		${PULSEMV}.1
 CATEGORIES=	devel
diff --git a/devel/electron44/files/patch-electron_lib_node_init.ts b/devel/electron44/files/patch-electron_lib_node_init.ts
deleted file mode 100644
index c8f37cbf5766..000000000000
--- a/devel/electron44/files/patch-electron_lib_node_init.ts
+++ /dev/null
@@ -1,11 +0,0 @@
---- electron/lib/node/init.ts.orig	2026-09-15 22:52:01 UTC
-+++ electron/lib/node/init.ts
-@@ -46,7 +46,7 @@ cp.fork = (modulePath, args?, options?: cp.ForkOptions
- // reported too; shell/app/node_main.cc reads these back. Every async spawn goes
- // through ChildProcess.prototype.spawn and every sync one through spawnSync,
- // both with the normalized file and envPairs.
--if (process.platform === 'linux') {
-+if (process.platform === 'linux' || process.platform === 'freebsd') {
-   const { getCrashdumpSignalFD, getCrashpadHandlerPID } = process._linkedBinding('electron_common_crashpad_support');
-   const childProcess = __non_webpack_require__(
-     'internal/child_process'