Skip to content

Commit 8d6e25f

Browse files
committed
bump(main/librocksdb): 11.14.0
Update librocksdb to 11.14.0 (_SOVERSION=11) now that its sole reverse dependency (pikiwidb) bundles rocksdb 8.11.3. Update env-fs_posix.cc.patch and toku_time.h.patch for 11.14.0 and drop the pikiwidb-specific RTTI flag and internal header copy workaround. Fixes #23902. Assisted-by: Gemini
1 parent d032235 commit 8d6e25f

3 files changed

Lines changed: 5 additions & 25 deletions

File tree

‎packages/librocksdb/build.sh‎

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,26 @@ TERMUX_PKG_DESCRIPTION="A persistent key-value store for flash and RAM storage"
33
TERMUX_PKG_LICENSE="GPL-2.0, Apache-2.0, BSD 3-Clause"
44
TERMUX_PKG_LICENSE_FILE="COPYING, LICENSE.Apache, LICENSE.leveldb"
55
TERMUX_PKG_MAINTAINER="@termux"
6-
TERMUX_PKG_VERSION="8.11.3"
7-
TERMUX_PKG_REVISION=3
6+
TERMUX_PKG_VERSION="11.14.0"
87
TERMUX_PKG_SRCURL="https://github.com/facebook/rocksdb/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz"
9-
TERMUX_PKG_SHA256=3b51d1d907ea13fab430bf052618610994f08cd8ed0b1341c3e89fe02e199f8e
8+
TERMUX_PKG_SHA256=a3a87c445afaa04f4ba3b3d748c2034f1d63a70ae21bcd02c072f7b30e79f5ae
109
TERMUX_PKG_AUTO_UPDATE=true
1110
TERMUX_PKG_DEPENDS="gflags, libc++, libsnappy"
1211
TERMUX_PKG_BUILD_DEPENDS="gflags-static"
13-
# -DUSE_RTTI=ON is necessary to prevent build error
14-
# in reverse dependency pikiwidb:
15-
# ld.lld: error: undefined symbol: typeinfo for rocksdb::Customizable
16-
# -DWITH_SNAPPY=ON is necessary to prevent runtime error
17-
# in reverse dependency pikiwidb:
18-
# open kv db failed, Invalid argument: Compression type Snappy is not linked with the binary.
1912
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
2013
-DFAIL_ON_WARNINGS=OFF
2114
-DPORTABLE=1
22-
-DUSE_RTTI=ON
2315
-DWITH_SNAPPY=ON
2416
"
2517

2618
termux_step_post_get_source() {
2719
# Do not forget to bump revision of reverse dependencies and rebuild them
2820
# after SOVERSION is changed.
29-
# in particular, check pikiwidb which might be limited to a specific range of librocksdb
30-
# versions, and might have build errors if librocksdb is bumped beyond those versions.
31-
local _SOVERSION=8
21+
local _SOVERSION=11
3222

3323
local v=$(grep -E "ROCKSDB_MAJOR.[0-9]" include/rocksdb/version.h | \
3424
cut -d ' ' -f 3)
3525
if [ "${v}" != "${_SOVERSION}" ]; then
3626
termux_error_exit "SOVERSION guard check failed."
3727
fi
3828
}
39-
40-
termux_step_pre_configure() {
41-
# needed to prevent error "'file/file_util.h' file not found"
42-
# in reverse dependency pikiwidb
43-
local dir
44-
for dir in file options port trace_replay monitoring util; do
45-
mkdir -p "$TERMUX_PKG_SRCDIR/include/rocksdb/$dir"
46-
cp "$TERMUX_PKG_SRCDIR/$dir"/*.h "$TERMUX_PKG_SRCDIR/include/rocksdb/$dir/"
47-
done
48-
}

‎packages/librocksdb/env-fs_posix.cc.patch‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/env/fs_posix.cc
22
+++ b/env/fs_posix.cc
3-
@@ -905,8 +905,8 @@
3+
@@ -959,8 +959,8 @@
44
if (env && env[0] != '\0') {
55
*result = env;
66
} else {

‎packages/librocksdb/toku_time.h.patch‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
+++ b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
33
@@ -131,6 +131,10 @@
44
uint64_t result;
5-
__asm __volatile__("mrs %[rt], cntvct_el0" : [ rt ] "=r"(result));
5+
__asm __volatile__("mrs %[rt], cntvct_el0" : [rt] "=r"(result));
66
return result;
77
+#elif defined(__arm__)
88
+ uint32_t lo, hi;

0 commit comments

Comments
 (0)