This is an automated email from the ASF dual-hosted git repository.
sekikn 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 0f67454a7 BIGTOP-4067. Fix build failure of Python 2.7 on Rocky Linux
9. (#1240)
0f67454a7 is described below
commit 0f67454a7b71f54b6098ef44cb459e656853a0d7
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Thu Feb 29 12:36:03 2024 +0900
BIGTOP-4067. Fix build failure of Python 2.7 on Rocky Linux 9. (#1240)
---
bigtop_toolchain/manifests/packages.pp | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/bigtop_toolchain/manifests/packages.pp
b/bigtop_toolchain/manifests/packages.pp
index a2004bec8..0b7c0600a 100644
--- a/bigtop_toolchain/manifests/packages.pp
+++ b/bigtop_toolchain/manifests/packages.pp
@@ -412,11 +412,23 @@ class bigtop_toolchain::packages {
creates => "/usr/src/Python-2.7.14",
}
- exec { "install_python2.7":
- cwd => "/usr/src/Python-2.7.14",
- command => "/usr/src/Python-2.7.14/configure
--prefix=/usr/local/python2.7.14 --enable-optimizations && /usr/bin/make -j8 &&
/usr/bin/make install -j8",
- require => [Exec["download_python2.7"]],
- timeout => 3000
+ case $operatingsystem {
+ 'openEuler': {
+ exec { "install_python2.7":
+ cwd => "/usr/src/Python-2.7.14",
+ command => "/usr/src/Python-2.7.14/configure
--prefix=/usr/local/python2.7.14 --enable-optimizations && /usr/bin/make -j8 &&
/usr/bin/make install -j8",
+ require => [Exec["download_python2.7"]],
+ timeout => 3000
+ }
+ }
+ default: {
+ exec { "install_python2.7":
+ cwd => "/usr/src/Python-2.7.14",
+ command => "/usr/src/Python-2.7.14/configure
--prefix=/usr/local/python2.7.14 && /usr/bin/make -j8 && /usr/bin/make install
-j8",
+ require => [Exec["download_python2.7"]],
+ timeout => 3000
+ }
+ }
}
exec { "ln python2.7":