Andrej Kozemcak 6d6c0b99d3
rocksdb: upgrade 9.10.0 -> 10.10.1
Remove not exist PACKAGECONFIG option `lite`
Add new PACKAGECONFIG option liburing

Changelog:

v10.10.1
  https://github.com/facebook/rocksdb/releases/tag/v10.10.1

  Bugs:
    - Fixed a bug in best-efforts recovery that causes use-after-free crashes when accessing SST files that were cached during the recovery.
    - Fix resumable compaction incorrectly allowing resumption from a truncated range deletion that is not well handled currently.
    - Fixed a bug in PosixRandomFileAccess IO uring submission queue ownership & management. Fix eliminates the false positive 'Bad cqe data' IO errors in PosixRandomFileAccess::MultiRead when interleaved with PosixRandomFileAccess::ReadAsync on the same thread.
    - Fix Windows VS 2022 build errors.

v10.9.1:
  https://github.com/facebook/rocksdb/releases/tag/v10.9.1

v10.8.3:
  https://github.com/facebook/rocksdb/releases/tag/v10.8.3

v10.7.5:
  https://github.com/facebook/rocksdb/releases/tag/v10.7.5

v10.6.2:
  https://github.com/facebook/rocksdb/releases/tag/v10.6.2

v10.5.1:
  https://github.com/facebook/rocksdb/releases/tag/v10.5.1

v10.4.2:
  https://github.com/facebook/rocksdb/releases/tag/v10.4.2

v10.2.1:
  https://github.com/facebook/rocksdb/releases/tag/v10.2.1

v10.1.3:
  https://github.com/facebook/rocksdb/releases/tag/v10.1.3

v10.0.1:
  https://github.com/facebook/rocksdb/releases/tag/v10.0.1

Signed-off-by: Andrej Kozemcak <andrej.kozemcak@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-17 22:02:53 -07:00

81 lines
3.8 KiB
BlitzBasic

SUMMARY = "RocksDB an embeddable, persistent key-value store"
DESCRIPTION = "RocksDB is library that provides an embeddable, persistent key-value store for fast storage."
HOMEPAGE = "http://rocksdb.org/"
LICENSE = "(Apache-2.0 | GPL-2.0-only) & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837"
SRCREV = "4595a5e95ae8525c42e172a054435782b3479c57"
SRCBRANCH = "10.10.fb"
SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH};protocol=https;tag=v${PV} \
file://0001-cmake-Add-check-for-atomic-support.patch \
file://0002-cmake-Use-exported-target-for-bz2.patch \
file://0003-cmake-Do-not-add-msse4.2-mpclmul-on-clang.patch \
file://0004-Implement-support-for-musl-ppc64.patch \
file://0005-Implement-timer-implementation-for-mips-platform.patch \
file://0006-Implement-timer-for-arm-v6.patch \
file://0007-Fix-declaration-scope-of-LE_LOAD32-in-crc32c.patch \
file://static_library_as_option.patch \
file://0001-CMakeLists.txt-Make-the-test-discovery-occur-on-targ.patch \
file://run-ptest \
file://0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch \
file://0001-checkpoint.h-Add-missing-includes-cstdint.patch \
file://0001-Findzstd.cmake-support-pkg-config-based-zstd-detecti.patch \
"
SRC_URI:append:riscv32 = " file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch"
SRC_URI:append:mips = " file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch"
SRC_URI:append:powerpc = " file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch"
SRC_URI:remove:toolchain-clang:riscv32 = "file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch"
LDFLAGS:append:toolchain-clang:x86 = "${@bb.utils.contains_any("TC_CXX_RUNTIME", "gnu", " -latomic", "", d)}"
inherit cmake ptest
PACKAGECONFIG ??= "bzip2 zlib lz4 gflags"
PACKAGECONFIG[bzip2] = "-DWITH_BZ2=ON,-DWITH_BZ2=OFF,bzip2"
PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON,-DWITH_LZ4=OFF,lz4"
PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
PACKAGECONFIG[zstd] = "-DWITH_ZSTD=ON,-DWITH_ZSTD=OFF,zstd"
PACKAGECONFIG[liburing] = "-DWITH_LIBURING=ON,-DWITH_LIBURING=OFF,liburing"
PACKAGECONFIG[gflags] = "-DWITH_GFLAGS=ON,-DWITH_GFLAGS=OFF,gflags"
# Tools and tests currently don't compile on armv5 so we disable them
EXTRA_OECMAKE = "\
-DPORTABLE=ON \
-DWITH_TESTS=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "ON", "OFF", d)} \
-DWITH_BENCHMARK_TOOLS=OFF \
-DWITH_TOOLS=OFF \
-DFAIL_ON_WARNINGS=OFF \
-DROCKSDB_BUILD_STATIC=OFF \
"
CXXFLAGS += "${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Og', '-DXXH_NO_INLINE_HINTS', '', d)}"
CXXFLAGS += "${@bb.utils.contains('TUNE_FEATURES', 'x86-64-v3', '-mpclmul', '', d)}"
do_install:append() {
# Fix for qa check buildpaths
sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/rocksdb/RocksDBTargets.cmake
}
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
# only cover the basic test as all the tests need to take about 6 hours
# time ./run-ptest
# real 356m32.956s
# user 252m32.004s
# sys 178m50.246s
install -m 0755 ${B}/env_basic_test ${D}${PTEST_PATH}/tests/
install -m 0755 ${B}/db_basic_test ${D}${PTEST_PATH}/tests/
install -m 0755 ${B}/agg_merge_test ${D}${PTEST_PATH}/tests/
install -m 0755 ${B}/testutil_test ${D}${PTEST_PATH}/tests/
install -m 0755 ${B}/cache_test ${D}${PTEST_PATH}/tests/
}
# Need toku_time_now() implemented for ppc/musl
# see utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
COMPATIBLE_HOST:libc-musl:powerpc = "null"
COMPATIBLE_HOST:armv5 = 'null'