diff --git a/concourse/scripts/compile_gpdb.bash b/concourse/scripts/compile_gpdb.bash index 4f46057857488eaa93f60556e26c195d6f180714..30ae98d2c6a7cc2e4d4cb38f56049ec98514a54d 100755 --- a/concourse/scripts/compile_gpdb.bash +++ b/concourse/scripts/compile_gpdb.bash @@ -182,6 +182,9 @@ function export_gpdb_clients() { mkdir -p bin/ext/gppylib cp ${GREENPLUM_INSTALL_DIR}/lib/python/gppylib/__init__.py ./bin/ext/gppylib cp ${GREENPLUM_INSTALL_DIR}/lib/python/gppylib/gpversion.py ./bin/ext/gppylib + # GPHOME_LOADERS and greenplum_loaders_path.sh are still requried by some users + # So link greenplum_loaders_path.sh to greenplum_clients_path.sh for compatible + ln -sf greenplum_clients_path.sh greenplum_loaders_path.sh chmod -R 755 . tar -czf "${TARBALL}" ./* popd diff --git a/gpAux/client/scripts/greenplum_clients_path.sh b/gpAux/client/scripts/greenplum_clients_path.sh index d062ef7774aa70f48d690d4cc1763d55e58f69be..fe49187d772fe048479105562b9c9a98a0d515f1 100644 --- a/gpAux/client/scripts/greenplum_clients_path.sh +++ b/gpAux/client/scripts/greenplum_clients_path.sh @@ -2,7 +2,10 @@ GPHOME_CLIENTS=`pwd` PATH=${GPHOME_CLIENTS}/bin:${GPHOME_CLIENTS}/ext/python/bin:${PATH} PYTHONPATH=${GPHOME_CLIENTS}/bin/ext:${PYTHONPATH} +# Export GPHOME_LOADERS for GPDB5 compatible +GPHOME_LOADERS=${GPHOME_CLIENTS} export GPHOME_CLIENTS +export GPHOME_LOADERS export PATH export PYTHONPATH