@@ -69,9 +69,10 @@ set( CPACK_GENERATOR "TGZ;DEB;RPM" CACHE STRING "package types to be produced "
6969set( LICENSE_FILE " ${CMAKE_CURRENT_SOURCE_DIR} /copyright " CACHE PATH " Path to License File in source dir " )
7070set( BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR} )
7171set( EXTENDED_PACKAGE_DESCRIPTION
72- " ROCM-CORE is a package which can be used to get ROCm release version , get ROCm install path information etc.
73- It is also important to note that ROCM-CORE takes the role as a base component on which all of ROCm can depend,
74- to make it easy to remove all of ROCm with a package manager. " CACHE STRING " Debian Package Extended Description ")
72+ " ROCM-CORE package helps to get ROCm release version ,get install path .
73+ It is also important to note that ROCM-CORE takes the role as a base
74+ component on which all of ROCm can depend, to make it easy to remove
75+ all of ROCm with a package manager. " )
7576
7677set( BUILD_ENABLE_LINTIAN_OVERRIDES OFF CACHE BOOL " Enable/Disable Lintian Overrides " )
7778set( BUILD_DEBIAN_PKGING_FLAG OFF CACHE BOOL " Internal Status Flag to indicate Debian Packaging Build " )
@@ -141,7 +142,7 @@ if(BUILD_SHARED_LIBS)
141142 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /rocm-core
142143 COMPONENT CORE_RUNTIME )
143144
144- install ( FILES ${CMAKE_CURRENT_SOURCE_DIR} /runpath_to_rpath.py
145+ install ( PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR} /runpath_to_rpath.py
145146 DESTINATION ${CMAKE_INSTALL_LIBEXECDIR} /rocm-core
146147 COMPONENT CORE_RUNTIME )
147148 install ( FILES ${BUILD_DIR} /rocmmod
@@ -263,10 +264,14 @@ endif()
263264message(STATUS " Using CPACK_RPM_PACKAGE_RELEASE: ${CPACK_RPM_PACKAGE_RELEASE} ")
264265set ( CPACK_RPM_FILE_NAME " RPM-DEFAULT " )
265266
267+ # Debian Lintian Fix - Add Dependency for Python Script delivered
268+ set( DEB_DEPENDS_STRING " python3, libc6 (>= 2.34 )" )
269+
266270# Debian package specific variables
267271set ( CPACK_DEBIAN_PACKAGE_DEPENDS ${DEB_DEPENDS_STRING} )
268272set ( CPACK_DEBIAN_PACKAGE_HOMEPAGE " https://github.com/ROCm/rocm-core " )
269273set ( CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA " ${BUILD_DIR} /postinst;${BUILD_DIR}/prerm " )
274+ set ( CPACK_DEBIAN_CORE_RUNTIME_PACKAGE_DEPENDS ${DEB_DEPENDS_STRING} )
270275set ( CPACK_DEBIAN_CORE_ASAN_PACKAGE_DEPENDS ${CORE_TARGET} )
271276set ( CPACK_DEBIAN_CORE_RUNTIME_PACKAGE_CONTROL_EXTRA " ${CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA} " )
272277set ( CPACK_DEBIAN_CORE_STATIC_PACKAGE_CONTROL_EXTRA " ${CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA} " )
0 commit comments