pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
jitsi-meet: Catch up with npm->node, crypto deprecations
Module Name: pkgsrc-wip
Committed By: Greg Troxel <gdt%lexort.com@localhost>
Pushed By: gdt
Date: Sun Mar 2 11:16:07 2025 -0500
Changeset: 0b1331b6fb9584eeda9056ed196a447c32dddd77
Modified Files:
jitsi-meet/Makefile
Added Files:
jitsi-meet/patches/patch-webpack.config.js
Log Message:
jitsi-meet: Catch up with npm->node, crypto deprecations
npm has been folded into nodejs. BUILD_DEPEND on nodejs instead, and
pick nodejs22 as the standard approach.
nodejs has deprecated md4. Deal with this by using sha256 instead.
This package builds, but has not been tested. That seems better than
not building.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0b1331b6fb9584eeda9056ed196a447c32dddd77
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
jitsi-meet/Makefile | 3 ++-
jitsi-meet/patches/patch-webpack.config.js | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diffs:
diff --git a/jitsi-meet/Makefile b/jitsi-meet/Makefile
index dd4c2a01f1..481576d394 100644
--- a/jitsi-meet/Makefile
+++ b/jitsi-meet/Makefile
@@ -3,11 +3,12 @@
.include "../../chat/jitsi-meet/Makefile.common"
PKGNAME= ${GITHUB_PROJECT}-${JITSI_MEET_VERSION}
+PKGREVISION= 1
USE_LANGUAGES+= c++
USE_TOOLS+= gmake tar
-TOOL_DEPENDS+= npm-[0-9]*:../../lang/npm
+TOOL_DEPENDS+= nodejs>=18:../../lang/nodejs22
BUILD_TARGET= compile
INSTALL_TARGET= deploy source-package
diff --git a/jitsi-meet/patches/patch-webpack.config.js b/jitsi-meet/patches/patch-webpack.config.js
new file mode 100644
index 0000000000..b072724421
--- /dev/null
+++ b/jitsi-meet/patches/patch-webpack.config.js
@@ -0,0 +1,20 @@
+$NetBSD$
+
+Attempt to work around default hash of md4 in older webpack, because it
+is deprecated in non-ancient node.
+
+Not reported upstream because surely they have addressed this.
+
+--- webpack.config.js.orig 2025-03-02 15:59:55.022078818 +0000
++++ webpack.config.js
+@@ -7,6 +7,10 @@ const process = require('process');
+ const webpack = require('webpack');
+ const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
+
++const crypto = require("crypto");
++const crypto_orig_createHash = crypto.createHash;
++crypto.createHash = algorithm => crypto_orig_createHash(algorithm == "md4" ? "sha256" : algorithm);
++
+ /**
+ * The URL of the Jitsi Meet deployment to be proxy to in the context of
+ * development with webpack-dev-server.
Home |
Main Index |
Thread Index |
Old Index