!5 编译时修改所有node模块依赖中硬编码的默认哈希算法为sha512,不使用md4
From: @moonyan Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
24b39f6198
@ -1,7 +1,7 @@
|
|||||||
Name: ovirt-engine-ui-extensions
|
Name: ovirt-engine-ui-extensions
|
||||||
Summary: oVirt UI Extensions
|
Summary: oVirt UI Extensions
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 1
|
Release: 2
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://www.ovirt.org/
|
URL: http://www.ovirt.org/
|
||||||
Source: ovirt-engine-ui-extensions-1.2.6.tar.gz
|
Source: ovirt-engine-ui-extensions-1.2.6.tar.gz
|
||||||
@ -35,6 +35,13 @@ Extensions include:
|
|||||||
# Set up Node.js environment with dependencies linked to ./node_modules:
|
# Set up Node.js environment with dependencies linked to ./node_modules:
|
||||||
source %{_datadir}/ovirt-engine-nodejs-modules/setup-env.sh
|
source %{_datadir}/ovirt-engine-nodejs-modules/setup-env.sh
|
||||||
|
|
||||||
|
# Change hardcoded deafult hash algorithm from legacy md4 to sha512
|
||||||
|
sed -i 's/md4/sha512/g' node_modules/webpack/lib/*.js
|
||||||
|
sed -i 's/md4/sha512/g' node_modules/webpack/lib/optimize/*.js
|
||||||
|
sed -i 's/md4/sha512/g' node_modules/copy-webpack-plugin/dist/*.js
|
||||||
|
sed -i 's/md4/sha512/g' node_modules/terser-webpack-plugin/dist/*.js
|
||||||
|
sed -i 's/md4/sha512/g' node_modules/babel-loader/lib/*.js
|
||||||
|
|
||||||
# Build the application:
|
# Build the application:
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
@ -67,6 +74,9 @@ ln -s "%{_datadir}/%{name}/ansible-playbooks/ovirt-cluster-upgrade.yml" "%{build
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 3 2023 yanjianqing<yanjianqing@kylinos.cn> -1.2.6-2
|
||||||
|
- Change hardcoded deafult hash algorithm from legacy md4 to sha512
|
||||||
|
|
||||||
* Tue Jul 6 2021 kymayl<mayilin@kylinos.cn> - 1.2.6-1
|
* Tue Jul 6 2021 kymayl<mayilin@kylinos.cn> - 1.2.6-1
|
||||||
- upgrade package
|
- upgrade package
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user