Quanlong Huang created IMPALA-13742:
---------------------------------------
Summary: 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
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)