From f1f0680f8b37ff8df9343c723de6521faf631c14 Mon Sep 17 00:00:00 2001 From: Peter Rozsa Date: Fri, 7 Feb 2025 15:55:40 +0100 Subject: [PATCH] IMPALA-13742: Force python3 for CPack This patch adds a global override for CPack to use python3. Change-Id: Id9a0400d6c4cfb1b13ccf33c8ed4d5bf2a9c513b Reviewed-on: http://gerrit.cloudera.org:8080/22464 Reviewed-by: Impala Public Jenkins Tested-by: Impala Public Jenkins --- package/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/package/CMakeLists.txt b/package/CMakeLists.txt index 0a2195e06..d264718ee 100644 --- a/package/CMakeLists.txt +++ b/package/CMakeLists.txt @@ -128,6 +128,7 @@ endif() set(CPACK_PACKAGING_INSTALL_PREFIX "/opt") set(CPACK_PACKAGE_INSTALL_DIRECTORY "impala") +set(CPACK_RPM_SPEC_MORE_DEFINE "%global __python %{__python3}") execute_process( COMMAND bash -c "${CMAKE_SOURCE_DIR}/docker/install_os_packages.sh --dry-run | tail -n1"