fix changelog version error and add sw_64 support
(cherry picked from commit 8f5d326c86b373c08fc03aae9d002b8b31f256d3)
This commit is contained in:
parent
252edd127f
commit
de9e715ea0
1789
3000-add-sw_64-support.patch
Normal file
1789
3000-add-sw_64-support.patch
Normal file
File diff suppressed because it is too large
Load Diff
24
opengauss-server.spec
Executable file → Normal file
24
opengauss-server.spec
Executable file → Normal file
@ -12,7 +12,7 @@
|
||||
|
||||
Name: opengauss
|
||||
Version: 2.1.0
|
||||
Release: 8
|
||||
Release: 9
|
||||
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
|
||||
@ -34,6 +34,7 @@ Patch23: makefile-miniunz.patch
|
||||
Patch40: 0001-orc.patch
|
||||
Patch41: 0002-add-kylinsec-platform.patch
|
||||
|
||||
Patch3000: 3000-add-sw_64-support.patch
|
||||
BuildRequires: cmake gcc gcc-c++ openssl-devel python
|
||||
BuildRequires: cjson lz4-devel protobuf-devel snappy-devel zstd-devel boost-devel
|
||||
BuildRequires: libcgroup-devel libcurl-devel unixODBC-devel jemalloc-devel
|
||||
@ -42,6 +43,9 @@ BuildRequires: bison flex DCF
|
||||
%ifnarch aarch64 %{arm}
|
||||
BuildRequires: numactl-devel
|
||||
%endif
|
||||
%ifarch sw_64
|
||||
BuildRequires: libatomic
|
||||
%endif
|
||||
|
||||
%global _privatelibs lib(cjson|ecpg|z|pg|pq)\\.so*
|
||||
%global __provides_exclude %{_privatelibs}
|
||||
@ -87,6 +91,9 @@ pushd %{orc_name}-%{orc_version}
|
||||
popd
|
||||
|
||||
%patch41 -p1
|
||||
%ifarch sw_64
|
||||
%patch3000 -p1
|
||||
%endif
|
||||
%build
|
||||
########### build cjson ###########
|
||||
build_target=$(pwd)/deps_binarylibs
|
||||
@ -102,12 +109,18 @@ CONFIGURE_EXTRA_FLAG="--64"
|
||||
%ifarch aarch64
|
||||
CONFIGURE_EXTRA_FLAG=""
|
||||
%endif
|
||||
%ifarch sw_64
|
||||
CONFIGURE_EXTRA_FLAG=""
|
||||
%endif
|
||||
./configure ${CONFIGURE_EXTRA_FLAG} --prefix=${build_target}/zlib
|
||||
sed -i '21a CFLAGS += -fPIC' Makefile
|
||||
MAKE_EXTRA_FLAG="-m64"
|
||||
%ifarch aarch64
|
||||
MAKE_EXTRA_FLAG=""
|
||||
%endif
|
||||
%ifarch sw_64
|
||||
MAKE_EXTRA_FLAG=""
|
||||
%endif
|
||||
make CFLAGS="-fPIE -fPIC" SFLAGS="-O2 -fPIC -fstack-protector-strong -Wl,-z,noexecstack -Wl,-z,relro,-z,now ${MAKE_EXTRA_FLAG} -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN" %{?_smp_mflags}
|
||||
make install
|
||||
cd contrib/minizip/
|
||||
@ -155,7 +168,11 @@ popd
|
||||
pushd openGauss-server-%{version}
|
||||
chmod +x ./configure
|
||||
./configure \
|
||||
%ifarch sw_64
|
||||
CC=g++ CFLAGS='-O0' \
|
||||
%else
|
||||
CC=g++ CFLAGS='-O2' \
|
||||
%endif
|
||||
--prefix=%{apppath} \
|
||||
--3rd=${build_target} \
|
||||
--enable-thread-safety \
|
||||
@ -303,7 +320,10 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jun 6 2023 dillon chen<dillon.chen@gmail.com> -2.1.0-8
|
||||
* Fri Aug 18 2023 panchenbo <panchenbo@kylinsec.com.cn> - 2.1.0-9
|
||||
- add sw_64 support
|
||||
|
||||
* Tue Jun 6 2023 dillon chen<dillon.chen@gmail.com> - 2.1.0-8
|
||||
- Fix bugs: #I677QX; add lsof
|
||||
|
||||
* Mon Apr 10 2023 panchenbo <panchenbo@kylinsec.com.cn> - 2.1.0-7
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user