Change hardcoded deafult hash algorithm from legacy md4 to sha512 in node modules code when compile
This commit is contained in:
parent
38b9dee33e
commit
c341ad7a3d
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: cockpit-ovirt
|
Name: cockpit-ovirt
|
||||||
Version: 0.15.0
|
Version: 0.15.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Dashboard for Cockpit based on %{product}
|
Summary: Dashboard for Cockpit based on %{product}
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://gerrit.ovirt.org/gitweb?p=cockpit-ovirt.git;a=summary
|
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: ovirt-hosted-engine-setup >= 2.5.0
|
||||||
Requires: otopi >= 1.9.0
|
Requires: otopi >= 1.9.0
|
||||||
|
|
||||||
Requires: ansible-2.9
|
Requires: ansible
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides a Cockpit dashboard for use with %{product}.
|
This package provides a Cockpit dashboard for use with %{product}.
|
||||||
@ -69,6 +69,14 @@ export PATH="%{_datadir}/ovirt-engine-nodejs-modules/bin:${PATH}"
|
|||||||
%else
|
%else
|
||||||
%configure
|
%configure
|
||||||
%endif
|
%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
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -92,6 +100,10 @@ __EOF__
|
|||||||
%dir %attr(700, root, root) %{_sharedstatedir}/ovirt-hosted-engine-setup/cockpit
|
%dir %attr(700, root, root) %{_sharedstatedir}/ovirt-hosted-engine-setup/cockpit
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Sep 24 2021 wutao <wutao61@huawei.com> - 0.15.0-2
|
||||||
- change ansible to ansible-2.9
|
- change ansible to ansible-2.9
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user