hyperledger/indy-plenum

Problems with Rocksdb

pSchlarb opened this issue · 5 comments

Plenums 3rd parties dependencies use a build of rocksdb from evernym. (https://github.com/evernym/rocksdb)

The built of rocksdb from evernym is not declaring its dependencies such as:
libgflags-dev
libsnappy-dev
zlib1g-dev
libbz2-dev
liblz4-dev
libgflags-dev

References:

function build_rocksdb_deb {
VERSION=$1
VERSION_TAG="rocksdb-$VERSION"
git clone https://github.com/evernym/rocksdb.git /tmp/rocksdb
cd /tmp/rocksdb
git checkout $VERSION_TAG
sed -i 's/-m rocksdb@fb.com/-m "Hyperledger <hyperledger-indy@lists.hyperledger.org>"/g' \
./build_tools/make_package.sh
PORTABLE=1 EXTRA_CFLAGS="-fPIC" EXTRA_CXXFLAGS="-fPIC" ./build_tools/make_package.sh $VERSION
# Install it in the system as it is needed by python-rocksdb.
make install
cd -
cp /tmp/rocksdb/package/rocksdb_${VERSION}_amd64.deb $OUTPUT_PATH
rm -rf /tmp/rocksdb
}

When upgrading, investigate using an official package. One that already defines the dependencies properly, hopefully.

The other issue we have to the Python wrapper being used for rocksdb is out of date, and there seems to be a fracturing of replacement wrappers for it.

@WadeBarnes should we close this issue, since we have a working workaround for the moment?
Or should it stay open as a reminder for the rocksdb upgrades?

It should stay open. Thanks @pSchlarb

alright got it