!9 编译时修改所有node模块依赖中硬编码的默认哈希算法为sha512,不使用md4
From: @crrs666 Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
789b945ec3
@ -11,7 +11,7 @@
|
||||
|
||||
Name: cockpit-ovirt
|
||||
Version: 0.15.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Dashboard for Cockpit based on %{product}
|
||||
License: ASL 2.0
|
||||
URL: https://gerrit.ovirt.org/gitweb?p=cockpit-ovirt.git;a=summary
|
||||
@ -37,7 +37,7 @@ Requires: cockpit-storaged
|
||||
Requires: ovirt-hosted-engine-setup >= 2.5.0
|
||||
Requires: otopi >= 1.9.0
|
||||
|
||||
Requires: ansible-2.9
|
||||
Requires: ansible
|
||||
|
||||
%description
|
||||
This package provides a Cockpit dashboard for use with %{product}.
|
||||
@ -69,6 +69,14 @@ export PATH="%{_datadir}/ovirt-engine-nodejs-modules/bin:${PATH}"
|
||||
%else
|
||||
%configure
|
||||
%endif
|
||||
|
||||
# Change hardcoded deafult hash algorithm from legacy md4 to sha512
|
||||
sed -i 's/md4/sha512/g' dashboard/node_modules/webpack/lib/*.js
|
||||
sed -i 's/md4/sha512/g' dashboard/node_modules/webpack/lib/optimize/*.js
|
||||
sed -i 's/md4/sha512/g' dashboard/node_modules/terser-webpack-plugin/dist/index.js
|
||||
sed -i 's/md4/sha512/g' dashboard/node_modules/copy-webpack-plugin/dist/postProcessPattern.js
|
||||
sed -i 's/md4/sha512/g' dashboard/node_modules/babel-loader/lib/cache.js
|
||||
|
||||
make
|
||||
|
||||
%install
|
||||
@ -92,6 +100,10 @@ __EOF__
|
||||
%dir %attr(700, root, root) %{_sharedstatedir}/ovirt-hosted-engine-setup/cockpit
|
||||
|
||||
%changelog
|
||||
* Thu Mar 02 2023 wangdi <wangdi@kylinos.cn> - 0.15.0-3
|
||||
- Change hardcoded deafult hash algorithm from legacy md4 to sha512
|
||||
- Change dependecy from ansible-2.9 to ansible since ansible version has bumped to 2.9
|
||||
|
||||
* Fri Sep 24 2021 wutao <wutao61@huawei.com> - 0.15.0-2
|
||||
- change ansible to ansible-2.9
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user