[
https://issues.apache.org/jira/browse/IMPALA-13742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925281#comment-17925281
]
ASF subversion and git services commented on IMPALA-13742:
----------------------------------------------------------
Commit 856741b1e8371b983da10f23a166f19aac71f1f8 in impala's branch
refs/heads/master from Peter Rozsa
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=856741b1e ]
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]>
> Failed to build RPM packages on CentOS7 and Redhat8
> ---------------------------------------------------
>
> Key: IMPALA-13742
> URL: https://issues.apache.org/jira/browse/IMPALA-13742
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Reporter: Quanlong Huang
> Assignee: Quanlong Huang
> Priority: Critical
> Attachments: build-rpm-log.txt
>
>
> Tried building RPM packages of 4.5.0-RC1 on CentOS7 and Redhat8, they both
> failed by the following error:
> {code:java}
> error: Bad exit status from /var/tmp/rpm-tmp.N5g1ji (%install)
> Bad exit status from /var/tmp/rpm-tmp.N5g1ji (%install)
> ***
> CPackRPM:Debug: -
> /root/apache-impala-4.5.0/package/build/_CPack_Packages/Linux/RPM/rpmbuildimpala.out
> CPackRPM:Debug: *** Building target platforms: x86_64
> Building for target x86_64
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KXuzmz
> Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.N5g1ji
> Compiling
> /root/apache-impala-4.5.0/package/build/_CPack_Packages/Linux/RPM/apache-impala-4.5.0-RELEASE_hive-3.1.3000.7.3.1.0-160-x86_64.el7/opt/impala/shell/install_py3.6/pkg_resources/__init__.py
> ...
> File "/opt/impala/shell/install_py3.6/pkg_resources/__init__.py", line 117
> f"{v} is an invalid version and will not be supported in "
> ^
> SyntaxError: invalid syntax
> Compiling
> /root/apache-impala-4.5.0/package/build/_CPack_Packages/Linux/RPM/apache-impala-4.5.0-RELEASE_hive-3.1.3000.7.3.1.0-160-x86_64.el7/opt/impala/shell/install_py3.6/pkg_resources/_vendor/packaging/_manylinux.py
> ...
> File
> "/opt/impala/shell/install_py3.6/pkg_resources/_vendor/packaging/_manylinux.py",
> line 35
> def __init__(self, file: IO[bytes]) -> None:
> ^
> SyntaxError: invalid syntax{code}
> Full log is attached as build-rpm-log.txt
> CC [~prozsa], [~yx91490]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]