This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 0aad1a7a2 BIGTOP-4421. Fix build failure of Hadoop and Alluxio due to
node-gyp error. (#1348)
0aad1a7a2 is described below
commit 0aad1a7a2145747e29072448ebfaad7e6fbbb186
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Sun May 18 07:46:46 2025 +0900
BIGTOP-4421. Fix build failure of Hadoop and Alluxio due to node-gyp error.
(#1348)
---
bigtop_toolchain/manifests/python.pp | 32 ++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)
diff --git a/bigtop_toolchain/manifests/python.pp
b/bigtop_toolchain/manifests/python.pp
index a02af79e2..f1d9aaa34 100644
--- a/bigtop_toolchain/manifests/python.pp
+++ b/bigtop_toolchain/manifests/python.pp
@@ -40,20 +40,24 @@ class bigtop_toolchain::python {
ensure => present
}
- if ($architecture in ['aarch64']) {
- case $operatingsystem{
- /(?i:(fedora|ubuntu|debian))/: {
- package { 'python2' :
- ensure => present
- }
- }
- /(?i:(centos|redhat|rocky))/: {
- if (versioncmp($operatingsystemmajrelease, '8') == 0) {
- package { 'python2' :
- ensure => present
- }
- }
- }
+ if ($architecture in ['aarch64', 'ppc64le']) {
+ exec { "download_python2.7":
+ cwd => "/usr/src",
+ command => "/usr/bin/wget
https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz && /usr/bin/mkdir
Python-2.7.18 && /bin/tar -xvzf Python-2.7.18.tgz -C Python-2.7.18
--strip-components=1 && cd Python-2.7.18",
+ creates => "/usr/src/Python-2.7.18",
+ }
+
+ exec { "install_python2.7":
+ cwd => "/usr/src/Python-2.7.18",
+ command => "/usr/src/Python-2.7.18/configure
--prefix=/usr/local/python2.7.18 && /usr/bin/make -j${processors['cores']} &&
/usr/bin/make install -j${processors['cores']}",
+ require => [Exec["download_python2.7"]],
+ timeout => 3000
+ }
+
+ exec { "ln python2.7":
+ cwd => "/usr/bin",
+ command => "/usr/bin/ln -snf /usr/local/python2.7.18/bin/python2.7
python2.7 && /usr/bin/ln -snf python2.7 python2",
+ require => Exec["install_python2.7"],
}
}