You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by gu...@apache.org on 2023/08/02 06:43:11 UTC

[bigtop] branch openEuler-support updated: add support for gpdb (#1149)

This is an automated email from the ASF dual-hosted git repository.

guyuqi pushed a commit to branch openEuler-support
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/openEuler-support by this push:
     new 24f835a45 add support for gpdb (#1149)
24f835a45 is described below

commit 24f835a4518d178132a52c769442f057f8197b33
Author: MacChen01 <ch...@163.com>
AuthorDate: Wed Aug 2 14:43:05 2023 +0800

    add support for gpdb (#1149)
---
 bigtop-packages/src/common/gpdb/do-component-configure | 8 ++++++++
 bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec           | 6 ++++++
 2 files changed, 14 insertions(+)

diff --git a/bigtop-packages/src/common/gpdb/do-component-configure b/bigtop-packages/src/common/gpdb/do-component-configure
index 51355b661..adedc4bd7 100644
--- a/bigtop-packages/src/common/gpdb/do-component-configure
+++ b/bigtop-packages/src/common/gpdb/do-component-configure
@@ -16,4 +16,12 @@
 
 set -ex
 
+#specify the verion of python for openEuler
+. /etc/os-release
+OS="$ID"
+if [ "${OS}" = "openEuler" ]; then
+  sed -i 's|python setup.py build|python2 setup.py build|g'  gpMgmt/bin/Makefile
+  sed -i 's|python gpconfig_modules|python2 gpconfig_modules|g' gpMgmt/bin/Makefile
+fi
+
 ./configure --prefix=$1 --with-python --with-libxml --with-gssapi --disable-orca CFLAGS='-fcommon -Wno-implicit-fallthrough'
diff --git a/bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec b/bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec
index 708534e52..72559c03e 100644
--- a/bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec
+++ b/bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec
@@ -43,7 +43,13 @@ Source2: install_gpdb.sh
 Source3: do-component-configure
 #BIGTOP_PATCH_FILES
 AutoReqProv: %{autorequire}
+
+#python2 be compiled manually and install, not installed by rpm in openEuler
+%if 0%{?openEuler}
+Requires: bigtop-utils >= 0.7, gcc, libffi-devel, make, openssl-devel
+%else
 Requires: bigtop-utils >= 0.7, gcc, libffi-devel, make, openssl-devel, python2-devel
+%endif
 
 %description
 gpdb