[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]
Этот коммит содержится в:
Charis Poag
2023-05-31 10:41:44 -05:00
родитель 98f1868290
Коммит b96cc5b897
2 изменённых файлов: 12 добавлений и 2 удалений
+6 -1
Просмотреть файл
@@ -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
Просмотреть файл
@@ -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