提交 f1c0e87a 编写于 作者: B Bhuvnesh Chaudhary 提交者: Abhijit Subramanya

Compile ORCA and Xerces using the same toolchain as GPDB on CentOS.

Co-authored-by: NBhuvnesh Chaudhary <bchaudhary@pivotal.io>
Co-authored-by: NAbhijit Subramanya <asubramanya@pivotal.io>
上级 8b84474f
......@@ -175,6 +175,22 @@ function export_gpdb_clients() {
popd
}
function build_xerces()
{
OUTPUT_DIR="gpdb_src/gpAux/ext/${BLD_ARCH}"
mkdir -p xerces_patch/concourse
cp -r orca_src/concourse/xerces-c xerces_patch/concourse
cp -r orca_src/patches/ xerces_patch
/usr/bin/python xerces_patch/concourse/xerces-c/build_xerces.py --output_dir=${OUTPUT_DIR}
rm -rf build
}
function build_and_test_orca()
{
OUTPUT_DIR="gpdb_src/gpAux/ext/${BLD_ARCH}"
orca_src/concourse/build_and_test.py --build_type=RelWithDebInfo --output_dir=${OUTPUT_DIR}
}
function _main() {
# Copy input ext dir; assuming ext doesnt exist
mv gpAux_ext/ext ${GPDB_SRC_PATH}/gpAux
......@@ -182,6 +198,8 @@ function _main() {
case "${TARGET_OS}" in
centos)
prep_env_for_centos
build_xerces
build_and_test_orca
install_deps_for_centos
link_tools_for_centos
;;
......
......@@ -11,6 +11,10 @@ function make_sync_tools() {
# IVYREPO_HOST IVYREPO_REALM IVYREPO_USER IVYREPO_PASSWD
make sync_tools
popd
if [ "${TARGET_OS}" = centos ]; then
mkdir -p orca_src
mv ${GPDB_SRC_PATH}/gpAux/ext/${BLD_ARCH}/gporca*/* orca_src/
fi
}
function _main() {
......
......@@ -8,6 +8,7 @@ inputs:
- name: libquicklz-devel-installer
- name: libsigar-installer
- name: python-tarball
- name: orca_src
outputs:
- name: gpdb_artifacts
run:
......
......@@ -9,6 +9,7 @@ inputs:
outputs:
- name: gpAux_ext
- name: orca_src
run:
path: gpdb_src/concourse/scripts/sync_tools.bash
......
......@@ -87,8 +87,12 @@ sync_tools: opt_write_test
-Divyrepo.user=$(IVYREPO_USER) -Divyrepo.passwd="$(IVYREPO_PASSWD)" -quiet resolve);
ifeq "$(findstring aix,$(BLD_ARCH))" ""
ifeq "$(findstring sles,$(BLD_ARCH))" ""
LD_LIBRARY_PATH='' wget --no-check-certificate -q -O - https://github.com/greenplum-db/gporca/archive/v3.35.0.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH)
else
LD_LIBRARY_PATH='' wget --no-check-certificate -q -O - https://github.com/greenplum-db/gporca/releases/download/v3.35.0/bin_orca_centos5_release.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH)
endif
endif
clean_tools: opt_write_test
@cd releng/make/dependencies; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册