git: ca95aac97243 - main - www/node22: Update to 22.8.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 08 Sep 2024 18:42:48 UTC
The branch main has been updated by sunpoet:

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

commit ca95aac9724329367d8ba27d335a19e3fad2b6df
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-08 18:17:20 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-08 18:37:05 +0000

    www/node22: Update to 22.8.0
    
    Changes:        https://github.com/nodejs/node/releases
                    https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V22.md
---
 www/node22/Makefile.version                 |  2 +-
 www/node22/distinfo                         |  6 +++---
 www/node22/files/patch-src-compile_cache.cc | 15 +++++++++++++++
 3 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/www/node22/Makefile.version b/www/node22/Makefile.version
index 75760aace2a7..4c5274f76463 100644
--- a/www/node22/Makefile.version
+++ b/www/node22/Makefile.version
@@ -1 +1 @@
-NODEJS_PORTVERSION=	22.6.0
+NODEJS_PORTVERSION=	22.8.0
diff --git a/www/node22/distinfo b/www/node22/distinfo
index ef748a76f350..ecf37777e276 100644
--- a/www/node22/distinfo
+++ b/www/node22/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1723201033
-SHA256 (node-v22.6.0.tar.xz) = 37259d618d5565ca55acc2585045c7e1c5b9965a3d4eb44c0a237fdae84b9d44
-SIZE (node-v22.6.0.tar.xz) = 46900628
+TIMESTAMP = 1725559603
+SHA256 (node-v22.8.0.tar.xz) = f130e82176d1ee0702d99afc1995d0061bf8ed357c38834a32a08c9ef74f1ac7
+SIZE (node-v22.8.0.tar.xz) = 46899840
diff --git a/www/node22/files/patch-src-compile_cache.cc b/www/node22/files/patch-src-compile_cache.cc
new file mode 100644
index 000000000000..007f84cdac69
--- /dev/null
+++ b/www/node22/files/patch-src-compile_cache.cc
@@ -0,0 +1,15 @@
+Obtained from:	https://github.com/nodejs/node/pull/54528
+
+--- src/compile_cache.cc.orig	2024-09-03 03:18:45 UTC
++++ src/compile_cache.cc
+@@ -8,6 +8,10 @@
+ #include "path.h"
+ #include "zlib.h"
+ 
++#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS
++#include <unistd.h>  // getuid
++#endif
++
+ namespace node {
+ std::string Uint32ToHex(uint32_t crc) {
+   std::string str;