[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]
Этот коммит содержится в:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user