提交 274c5411 编写于 作者: C Chris Hajas

Remove references to Conan and depends directory.

With the ORCA source in the GPDB repo, there is no use for Conan or the
depends directory anymore. Also, the gpbackup conan file was stale and wasn't
being used/supported.
上级 45719ddd
top_builddir=../
INSTALL_DIR=@prefix@
CONAN_CMD=CONAN_USER_HOME=@abs_builddir@ @CONAN@
MKDIR_P=@MKDIR_P@
INSTALL=@INSTALL@
-include ../src/Makefile.global
.PHONY: clean distclean orca
default: orca
.conan/conan.conf:
${CONAN_CMD} remote add gpdb-oss https://api.bintray.com/conan/greenplum-db/gpdb-oss;
orca: conanfile_orca.txt .conan/conan.conf
${CONAN_CMD} install --build=missing conanfile_orca.txt
@echo
@echo "==================================================================="
@echo "Orca can now be installed on the local system using \"make install\""
@echo "and be used as any normal system library"
@echo
@echo "If you'd rather compile GPDB using ORCA in it's current location and then"
@echo "install ORCA into the gpdb installation location then first run the top"
@echo "level configure as follows:"
@echo "LD_LIBRARY_PATH=@abs_builddir@/build/lib ./configure \\ "
@echo " --with-libraries=@abs_builddir@/build/lib \\ "
@echo " --with-includes=@abs_builddir@/build/include "
@echo
@echo "Then run \"make\"".
@echo "Then run \"LD_LIBRARY_PATH=@abs_builddir@/build/lib make install\""
@echo
@echo "These steps should work on both MacOS and Linux"
clean:
rm -rf build .conan
rm -f conanenv.txt \
conan_imports_manifest.txt \
conanbuildinfo* \
conaninfo.txt \
distclean: clean
rm -f config.cache config.log config.status Makefile
@rm -rf autom4te.cache/
install_local: orca
${MKDIR_P} ${INSTALL_DIR}
cp -R build/* ${INSTALL_DIR}
install: orca
cp -R --preserve=links build/* $(prefix)
## Setting up Conan
Conan requires python 2.7 or higher to run. To install Conan run the command:
```
pip install conan
```
This will install all the required python packages to use Conan on your system. Once Conan is installed, please add the Greenplum remote Conan repository. This is where we are hosting the packages and the pre-build binaries for GPDB and associated projects. Anonymous access is supported for package downloading and to configure access please run the command:
```
conan remote add <REMOTE_NAME> https://api.bintray.com/conan/greenplum-db/gpdb-oss
```
## Using Conan
The simplest way to run Conan is to run the command `conan install --build=missing` from this directory. It will read the conanfile.txt and copy the dependent files into the directory structure rooted here.
Some packages may have pre-built binaries for specific operating system (e.g ORCA 2.32.0 has binaries built for Linux). If you are trying to install on a system and run into problems with `conan install` and see an error similar too:
WARN: Can't find a 'gpxerces/v3.1.2-p1@gpdb/stable' package for the specified options and settings:
- Settings: arch=x86_64, build_type=Release, compiler=apple-clang, compiler.libcxx=libc++, compiler.version=8.1, os=Macos
- Options: shared=True
ERROR: Missing prebuilt package for 'gpxerces/v3.1.2-p1@gpdb/stable'
Try to build it from sources with "--build gpxerces"
Or read "http://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package"
This may be because the binaries do not exist for your system and the package is not configured to build automatically if it is missing (add the `--build=missing` flag).
Conan will **not** install files into standard locations such as `/usr/local` nor will it interaction with autoconf or GNU make in any way at this time. You will need to either install these files into an appropriate location in your files system such as `/usr/local/lib` or else update the `CFLAGS` variable to pass to configure:
```
CFLAGS="-I./depends/include" LDFLAGS="-L./depends/lib" ./configure
```
Afterwards you will need to either install the libraries in a standard location or update the `LD_LIBARARY_PATH` (or similar) so the gpdb binaries can find the libraries
## Contributing
We are tracking the package definitions in a separate [Conan github repository](http://github.com/greenplum-db/conan). Instructions on how you can contribute and update dependencies can be found there.
\ No newline at end of file
[requires]
gpbackup/1.0.2@gpdb/stable
[imports]
bin, * -> gpbackup/bin
[requires]
orca/v3.97.0@gpdb/stable
[imports]
include, * -> build/include
lib, * -> build/lib
此差异已折叠。
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([GPDB Dependencies], [1.0.0-alpha.0], [bugs@greenplum.org])
AC_CONFIG_AUX_DIR(../config)
AC_PREFIX_DEFAULT(/usr/local)
# Checks for programs.
AC_PROG_MKDIR_P
AC_PROG_INSTALL
## Check for Conan - C/C++ Package manager
AC_CHECK_PROGS(CONAN, conan)
if test -z "$CONAN"; then
AC_MSG_ERROR([Conan not found. Please run 'pip install conan'])
fi
## Check for CMake - needed to build ORCA
AC_CHECK_PROGS(CMAKE, cmake)
if test -z "$CMAKE"; then
AC_MSG_ERROR([CMake 3.1 or later is needed to build ORCA.])
fi
cmake_version=`$CMAKE --version 2>/dev/null | sed q | awk '{print $3}'`
AS_VERSION_COMPARE("$cmake_version", 3.1,
AC_MSG_ERROR([CMake 3.1 or later is needed to build ORCA]),,)
# Checks for libraries.
AC_CHECK_LIB(xerces-c, strnicmp, [],
[AC_MSG_ERROR([Library xerces-c 3.1.x or later is required to build ORCA])]
)
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_PROG_CXX()
if test -z "$CXX"; then
AC_MSG_ERROR([A C++ compiler is needed to build ORCA])
fi
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册