!5 编译时修改所有node模块依赖中硬编码的默认哈希算法为sha512,不使用md4

From: @moonyan 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2023-03-03 13:32:57 +00:00 committed by Gitee
commit 24b39f6198
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
Name: ovirt-engine-ui-extensions
Summary: oVirt UI Extensions
Version: 1.2.6
Release: 1
Release: 2
License: ASL 2.0
URL: http://www.ovirt.org/
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:
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:
yarn build
@ -67,6 +74,9 @@ ln -s "%{_datadir}/%{name}/ansible-playbooks/ovirt-cluster-upgrade.yml" "%{build
%license LICENSE
%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
- upgrade package