From a5a437e48a210f5aa986a29747371028d478602d Mon Sep 17 00:00:00 2001 From: Ranjith Ramakrishnan Date: Wed, 1 May 2024 12:54:05 -0700 Subject: [PATCH] SWDEV-449560 - Backward compatibility support for deprected package rocm-clang-ocl rocm-clang-ocl has been deprected from ROCm 6.1 onwards. Uprading ROCm from 6.0 to latest release will result in stale files of rocm-clang-ocl. rocm-core will replaces/obsoletes rocm-clang-ocl package. This will ensure clean removal of the deprecated package Change-Id: Id5c16492273d8a0dcbbd5ac797daaef96c058f5b --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e00ab5bc44..fb1522876a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,6 +192,12 @@ set ( CPACK_RPM_RUNTIME_POST_UNINSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/ if ( DEFINED CPACK_PACKAGING_INSTALL_PREFIX ) set ( CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CPACK_PACKAGING_INSTALL_PREFIX} ${CPACK_PACKAGING_INSTALL_PREFIX}/.info" ) endif ( ) +# Backward compatibility support for deprecated package rocm-clang-ocl +# TODO: To be removed after two releases +set(CPACK_DEBIAN_RUNTIME_PACKAGE_REPLACES "rocm-clang-ocl") +set(CPACK_DEBIAN_RUNTIME_PACKAGE_CONFLICTS "rocm-clang-ocl") + +set(CPACK_RPM_RUNTIME_PACKAGE_OBSOLETES "rocm-clang-ocl") ## Include packaging include ( CPack )