From 1c2d5100f6763d269fe3ec8d29d74e5486801f83 Mon Sep 17 00:00:00 2001 From: wangdi Date: Thu, 2 Mar 2023 16:06:15 +0800 Subject: [PATCH] Change hardcoded deafult hash algorithm from legacy md4 to sha512 in node modules code when compile (cherry picked from commit c341ad7a3d42820aefe69c87e9c8dd9c665738c6) --- cockpit-ovirt.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cockpit-ovirt.spec b/cockpit-ovirt.spec index 488c42f..5c7386a 100644 --- a/cockpit-ovirt.spec +++ b/cockpit-ovirt.spec @@ -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 - 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 - 0.15.0-2 - change ansible to ansible-2.9 -- Gitee