qa: patch rocksdb the right way

quote from patch(1)

>       but usually just
>
>       patch -pnum <patchfile

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2018-11-15 13:02:59 +08:00
parent 2dc0f86227
commit 60dc1c2a32

View File

@ -73,7 +73,7 @@ git clone https://github.com/facebook/rocksdb.git --depth 1
# compile code
cd rocksdb
patch -p1 $(dirname $0)/0001-cmake-add-Findrados.cmake-and-use-it.patch
patch -p1 <$(dirname $0)/0001-cmake-add-Findrados.cmake-and-use-it.patch
mkdir build && cd build && cmake -DWITH_LIBRADOS=ON -DWITH_SNAPPY=ON -DWITH_GFLAGS=OFF -DFAIL_ON_WARNINGS=OFF ..
make rocksdb_env_librados_test -j8