Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Package not found: openSUSE:Slowroll:Build:2/multipath-tools
openSUSE:Factory
nodejs-electron
electron-16-webpack-fix-openssl-3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File electron-16-webpack-fix-openssl-3.patch of Package nodejs-electron
Index: electron-16.0.9/electron/build/webpack/webpack.config.base.js =================================================================== --- electron-16.0.9.orig/electron/build/webpack/webpack.config.base.js 2022-02-16 16:41:24.767092075 +0100 +++ electron-16.0.9/electron/build/webpack/webpack.config.base.js 2022-02-17 11:10:51.379512377 +0100 @@ -1,5 +1,12 @@ const fs = require('node:fs'); const path = require('node:path'); + +// HACK: OpenSSL 3 does not support md4 any more, but webpack hardcodes it all +// over the place: https://github.com/webpack/webpack/issues/13572 +const crypto = require("crypto"); +const crypto_orig_createHash = crypto.createHash; +crypto.createHash = algorithm => crypto_orig_createHash(algorithm == "md4" ? "sha256" : algorithm); + const webpack = require('webpack'); const TerserPlugin = require('terser-webpack-plugin'); const WrapperPlugin = require('wrapper-webpack-plugin');
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor