From 73c16500c4115b42192dbb27faa087abfce2e8ff Mon Sep 17 00:00:00 2001 From: Ranjith Ramakrishnan Date: Wed, 5 Jul 2023 15:36:56 -0700 Subject: [PATCH] SWDEV-408360 - Disable RPM spec autoreq field rather than disabling autoreqprov field In hip-runtime-amd RPM package the autoreqprov field was disabled. So the package provides list will not have any libraries Other packages that depends on hip libraries will be having the reported issue. Disable the RPM autoreq field alone, so that the package provides list will have libraries Change-Id: I40c30d01ea137867bdb64c2509c1fc86827c09dd [ROCm/clr commit: 19f43aa273c6bbfcad73c069bb052a57bd735956] --- projects/clr/hipamd/packaging/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/packaging/CMakeLists.txt b/projects/clr/hipamd/packaging/CMakeLists.txt index 956eb8d24a..e6d725b675 100644 --- a/projects/clr/hipamd/packaging/CMakeLists.txt +++ b/projects/clr/hipamd/packaging/CMakeLists.txt @@ -145,7 +145,11 @@ if (CPACK_RPM_PACKAGE_RELEASE MATCHES "local" ) #DEBUG SYMBOL pacaking require SOURCE_DIR to be small set(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX ${CPACK_INSTALL_PREFIX}) endif() -set(CPACK_RPM_PACKAGE_AUTOREQPROV " no") + +# Eventhough hip-runtime package has libraries,it was not in the package provides list, +# since CPACK_RPM_PACKAGE_AUTOREQPROV was set to "no". +# Use AUTOREQ,(rather than AUTOREQPROV) so that package will also provides the libraries +set(CPACK_RPM_PACKAGE_AUTOREQ " no") set(CPACK_RPM_FILE_NAME "RPM-DEFAULT") set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")