Quanlong Huang has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/22088 )
Change subject: IMPALA-13558: Workaround Python 2 tarfile issue by patching tarfile.py ...................................................................... IMPALA-13558: Workaround Python 2 tarfile issue by patching tarfile.py Ubuntu 20.04 introduced a bug in their Python 2.7's tarfile functionality with 2.7.18-1~20.04.5. See https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/2089071 This breaks the Impala build with a message like "tarfile.ReadError: invalid header". The bug has an attached tarfile.py with a workaround for the issue. This change bootstrap_system.sh and boostrap_build.sh to detect the bad tarfile.py and replace it with the patched tarfile.py. Since this is comparing the hash, this will become a no-op once Ubuntu fixes the issue. Testing: - Ran a build on Ubuntu 20.04 Change-Id: I1d0691611cf53ae6dd1099b97f0aa15b450e0996 Reviewed-on: http://gerrit.cloudera.org:8080/22088 Reviewed-by: Quanlong Huang <huangquanl...@gmail.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> --- M bin/bootstrap_build.sh M bin/bootstrap_system.sh 2 files changed, 32 insertions(+), 0 deletions(-) Approvals: Quanlong Huang: Looks good to me, approved Impala Public Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/22088 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I1d0691611cf53ae6dd1099b97f0aa15b450e0996 Gerrit-Change-Number: 22088 Gerrit-PatchSet: 5 Gerrit-Owner: Joe McDonnell <joemcdonn...@cloudera.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Gerrit-Reviewer: Michael Smith <michael.sm...@cloudera.com> Gerrit-Reviewer: Quanlong Huang <huangquanl...@gmail.com>