From 3511db2a56ac28ba9232e2f786154e21612e2896 Mon Sep 17 00:00:00 2001 From: xiewenhao Date: Wed, 30 Mar 2022 17:39:05 +0800 Subject: [PATCH] add kylinsec platform --- 0002-add-kylinsec-platform.patch | 32 ++++++++++++++++++++++++++++++++ opengauss-server.spec | 7 ++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0002-add-kylinsec-platform.patch diff --git a/0002-add-kylinsec-platform.patch b/0002-add-kylinsec-platform.patch new file mode 100644 index 0000000..522dbff --- /dev/null +++ b/0002-add-kylinsec-platform.patch @@ -0,0 +1,32 @@ +From 02f0141586b12ca76582550a22894134e28c7962 Mon Sep 17 00:00:00 2001 +From: xiewenhao +Date: Wed, 30 Mar 2022 17:32:43 +0800 +Subject: [PATCH 2/2] add kylinsec platform + +--- + openGauss-server-2.1.0/src/get_PlatForm_str.sh | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/openGauss-server-2.1.0/src/get_PlatForm_str.sh b/openGauss-server-2.1.0/src/get_PlatForm_str.sh +index 9fff29a..3f222cd 100755 +--- a/openGauss-server-2.1.0/src/get_PlatForm_str.sh ++++ b/openGauss-server-2.1.0/src/get_PlatForm_str.sh +@@ -135,6 +135,15 @@ then + plat_form_str=kylin_"$cpu_bit" + fi + ++################################################################################## ++# kylinsec platform ++# the result form like this: kylinsec_aarch64 ++################################################################################## ++if [ "$kernel"x = "kylinsec"x ] ++then ++ plat_form_str=kylinsec_"$cpu_bit" ++fi ++ + ################################################################################## + # ubuntu platform + # the result form like this: ubuntu_x86_64 +-- +2.18.1 + diff --git a/opengauss-server.spec b/opengauss-server.spec index f414ffd..0e3e7cf 100755 --- a/opengauss-server.spec +++ b/opengauss-server.spec @@ -12,7 +12,7 @@ Name: opengauss Version: 2.1.0 -Release: 5 +Release: 6 Summary: openGauss is an open source relational database management system License: MulanPSL-2.0 and MIT and BSD and zlib and TCL and Apache-2.0 and BSL-1.0 URL: https://gitee.com/opengauss/openGauss-server @@ -32,6 +32,7 @@ Patch21: 0002-zlib.patch Patch22: 0003-zlib.patch Patch23: makefile-miniunz.patch Patch40: 0001-orc.patch +Patch41: 0002-add-kylinsec-platform.patch BuildRequires: cmake gcc gcc-c++ openssl-devel python BuildRequires: cjson lz4-devel protobuf-devel snappy-devel zstd-devel boost-devel @@ -85,6 +86,7 @@ pushd %{orc_name}-%{orc_version} %patch40 -p1 popd +%patch41 -p1 %build ########### build cjson ########### build_target=$(pwd)/deps_binarylibs @@ -301,6 +303,9 @@ fi %changelog +* Wed Mar 30 2022 xiewenhao - 2.1.0-6 +- add kylinsec platform + * Sat Mar 12 2022 zhangxubo - 2.1.0-5 - Fix bugs: #I4VDYQ #I4V624 #I4UOUU #I4TCDB #I4TCB8 -- Gitee