[SWDEV-402336 + SWDEV-398070] Fix RPM install - override macros

Updates:
    * [rocm-smi] RPM installation now overrides macro usage

Change-Id: I2a5ba14670becc178f672182eabe71965a526178
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/rocm_smi_lib commit: b0f2a9d2ef]
Tá an tiomantas seo le fáil i:
Charis Poag tiomanta 2023-06-01 11:58:42 -04:00
1 tuismitheoir 98f1868290
tiomantas b96cc5b897
2 comhad athraithe
+12 -2

Níor tháinig aon chomhaid le do chuardach

+6 -1
Féach ar an gComhad
@@ -35,9 +35,14 @@ do_configureLogrotate() {
size 1M
copytruncate
dateext
dateformat .%Y-%m-%d_%H:%M:%S
dateformat .%%Y-%%m-%%d_%H:%%M:%%S
}
EOF
# Fix for %S argument not found (now we escape with %%)
# issue was RPM build thought we were using macros
# https://gitlab.kitware.com/cmake/cmake/-/issues/22965
# https://rpm-software-management.github.io/rpm/manual/spec.html
sudo sed -i s/%%/%/g /etc/logrotate.d/rocm_smi.conf
# workaround: remove extra 'OURCE' text
# from rocm_smi.conf. Unsure if CMAKE,
# bash, or here document
+6 -1
Féach ar an gComhad
@@ -34,9 +34,14 @@ do_configureLogrotate() {
size 1M
copytruncate
dateext
dateformat .%Y-%m-%d_%H:%M:%S
dateformat .%%Y-%%m-%%d_%H:%%M:%%S
}
EOF
# Fix for %S argument not found (now we escape with %%)
# issue was RPM build thought we were using macros
# https://gitlab.kitware.com/cmake/cmake/-/issues/22965
# https://rpm-software-management.github.io/rpm/manual/spec.html
sudo sed -i s/%%/%/g /etc/logrotate.d/rocm_smi.conf
# workaround: remove extra 'OURCE' text
# from rocm_smi.conf. Unsure if CMAKE,
# bash, or here document