Skip to content

Commit 16287a1

Browse files
committed
Backward compatibility support for old package name
SWDEV-364318: Hipfort pacakge name changed to hipfort-devel/dev. The package is not providing the old name. Due to this package upgrade is not happening.Added backward compatibility
1 parent 0dcaa7d commit 16287a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/bin)
138138

139139
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hip-rocclr (>= 3.5.0)")
140140
set(CPACK_RPM_PACKAGE_REQUIRES "hip-rocclr >= 3.5.0")
141+
# Package name changed from hipfort to hipfort-devel/dev
142+
# Backward compatibility support for old package name
143+
set(CPACK_DEBIAN_PACKAGE_PROVIDES "hipfort")
144+
set(CPACK_DEBIAN_PACKAGE_REPLACES "hipfort")
145+
set(CPACK_DEBIAN_PACKAGE_CONFLICTS "hipfort")
146+
set(CPACK_RPM_PACKAGE_PROVIDES "hipfort")
147+
set(CPACK_RPM_PACKAGE_OBSOLETES "hipfort")
148+
141149
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
142150
if(NOT CPACK_PACKAGING_INSTALL_PREFIX)
143151
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

0 commit comments

Comments
 (0)