summarylogtreecommitdiffstats
path: root/lbry-rocksdb.patch
blob: b39a7d21b090979c01f4132c2d09ab543f0fca04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- lbry-rocksdb/Makefile.old	2022-05-22 11:44:08.003333325 +0100
+++ lbry-rocksdb/Makefile	2022-05-22 11:45:08.903333331 +0100
@@ -3,7 +3,7 @@
 JOBS=8
 
 src/rocksdb/librocksdb.a:
-	make \
+	make release \
 		-e EXTRA_CXXFLAGS="-fPIC" \
 		-e EXTRA_CFLAGS="-fPIC" \
 		-C src/rocksdb \
--- lbry-rocksdb/src/rocksdb/Makefile.old	2022-06-29 15:54:00.844381430 +0100
+++ lbry-rocksdb/src/rocksdb/Makefile	2022-06-29 15:43:45.427864765 +0100
@@ -2119,7 +2119,7 @@
 	-rm -rf snappy-$(SNAPPY_VER)
 	tar xvzf snappy-$(SNAPPY_VER).tar.gz
 	mkdir snappy-$(SNAPPY_VER)/build
-	cd snappy-$(SNAPPY_VER)/build && CFLAGS='${JAVA_STATIC_DEPS_CCFLAGS} ${EXTRA_CFLAGS}' CXXFLAGS='${JAVA_STATIC_DEPS_CXXFLAGS} ${EXTRA_CXXFLAGS}' LDFLAGS='${JAVA_STATIC_DEPS_LDFLAGS} ${EXTRA_LDFLAGS}' cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON ${PLATFORM_CMAKE_FLAGS} .. && $(MAKE) ${SNAPPY_MAKE_TARGET}
+	cd snappy-$(SNAPPY_VER)/build && CFLAGS='${JAVA_STATIC_DEPS_CCFLAGS} ${EXTRA_CFLAGS}' CXXFLAGS='${JAVA_STATIC_DEPS_CXXFLAGS} ${EXTRA_CXXFLAGS}' LDFLAGS='${JAVA_STATIC_DEPS_LDFLAGS} ${EXTRA_LDFLAGS}' cmake -DSNAPPY_BUILD_TESTS=0 -DCMAKE_POSITION_INDEPENDENT_CODE=ON ${PLATFORM_CMAKE_FLAGS} .. && $(MAKE) ${SNAPPY_MAKE_TARGET}
 	cp snappy-$(SNAPPY_VER)/build/libsnappy.a .
 
 lz4-$(LZ4_VER).tar.gz:
--- lbry-rocksdb/src/rocksdb/trace_replay/trace_replay.cc.old   2022-05-22 1
+++ lbry-rocksdb/src/rocksdb/trace_replay/trace_replay.cc       2022-05-22 1
@@ -317,7 +317,7 @@
       cf_ids.reserve(multiget_size);
       multiget_keys.reserve(multiget_size);
       for (uint32_t i = 0; i < multiget_size; i++) {
-        uint32_t tmp_cfid;
+        uint32_t tmp_cfid = 0;
         Slice tmp_key;
         GetFixed32(&cfids_payload, &tmp_cfid);
         GetLengthPrefixedSlice(&keys_payload, &tmp_key);