From cd21f8fdb3ca76acc78a5ad20f44ab045a9f9156 Mon Sep 17 00:00:00 2001 From: Kent Russell Date: Mon, 12 Apr 2021 11:18:42 -0400 Subject: [PATCH] CMakeLists: Add python3 to required packages Signed-off-by: Kent Russell Change-Id: I434b24d12e92d2f6a6928b7450e74c3898303a44 [ROCm/rocm_smi_lib commit: b016a8269a7ac0e336bb0c868c8d8e04a90bf6fb] --- projects/rocm-smi-lib/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/rocm-smi-lib/CMakeLists.txt b/projects/rocm-smi-lib/CMakeLists.txt index aa8fc61063..85a647517f 100755 --- a/projects/rocm-smi-lib/CMakeLists.txt +++ b/projects/rocm-smi-lib/CMakeLists.txt @@ -163,6 +163,8 @@ else() endif() set (CPACK_DEBIAN_PACKAGE_PROVIDES "rocm-smi") set (CPACK_DEBIAN_PACKAGE_SUGGESTS "sudo") +set (CPACK_DEBIAN_PACKAGE_DEPENDS "python3") + ## Process the Debian install/remove scripts to update the CPACK variables configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/DEBIAN/postinst.in DEBIAN/postinst @ONLY ) configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/DEBIAN/prerm.in DEBIAN/prerm @ONLY ) @@ -180,6 +182,8 @@ if(CPACK_RPM_PACKAGE_RELEASE) set(CPACK_RPM_PACKAGE_RELEASE_DIST ON) endif() set (CPACK_RPM_PACKAGE_PROVIDES "rocm-smi") +set (CPACK_RPM_PACKAGE_REQUIRES "python3") + # The line below doesn't currently work; it may be this issue: # https://bugzilla.redhat.com/show_bug.cgi?id=1811358