From 67726d2c2a66733bc00198a72d37ff6104ca5e8d Mon Sep 17 00:00:00 2001 From: Kent Russell Date: Tue, 28 Jan 2020 15:09:03 -0500 Subject: [PATCH] Fix upgrade for new package name in RPM The name changed and thus will end up throwing errors if an upgrade is done, compared to a plain install Change-Id: Ibc7876a66a414034a00f924cdd750e6a08d6c9cc [ROCm/ROCR-Runtime commit: f2b8965d7b2ec076afd8c592166387a33b530c0c] --- projects/rocr-runtime/hsakmt-dev.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/rocr-runtime/hsakmt-dev.txt b/projects/rocr-runtime/hsakmt-dev.txt index 8a181e8a52..5286fc0f72 100644 --- a/projects/rocr-runtime/hsakmt-dev.txt +++ b/projects/rocr-runtime/hsakmt-dev.txt @@ -76,6 +76,8 @@ set ( CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/RadeonOpenCompute/ROCT-T # RPM package specific variables set ( CPACK_RPM_PACKAGE_DEPENDS "${HSAKMT_PACKAGE} = ${BUILD_VERSION_MAJOR}.${BUILD_VERSION_MINOR}.${BUILD_VERSION_PATCH}" ) +# Since we changed the package name to match RPM specs, take care of older builds that had -dev installed +set ( CPACK_RPM_PACKAGE_OBSOLETES "hsakmt-roct-dev" ) # Create cmake configuration files include(CMakePackageConfigHelpers)