This is an automated email from the ASF dual-hosted git repository.

stigahuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 856741b1e8371b983da10f23a166f19aac71f1f8
Author: Peter Rozsa <[email protected]>
AuthorDate: Fri Feb 7 15:55:40 2025 +0100

    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 <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 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"

Reply via email to