package/rocksdb: bump to version 6.20.3
PATCH 1/1 package/rocksdb: bump to version 6.20.3
- Refresh first patch
- Add BR2_PACKAGE_ROCKSDB_ARCH_SUPPORTS due to toku_time.h which has been added in version 6.16.3 by
https://github.com/facebook/rocksdb/commit/98236fb10ecdbe6e7e8ef5cfb11e1f11dcb72f84
and contains the following blob:
#if defined(__x86_64__) || defined(__i386__)
uint32_t lo, hi;
__asm__ __volatile__("rdtsc" : "=a"(lo), "=d"(hi)); return (uint64_t)hi << 32 | lo;
#elif defined(__aarch64__)
uint64_t result;
__asm __volatile__("mrs %[rt], cntvct_el0" : [ rt ] "=r"(result)); return result;
#elif defined(__powerpc__)
return __ppc_get_timebase();
#else
#error No timer implementation for this platform
#endif
- Also drop second patch and disable build on powerpc as it seems that upstream is not really testing powerpc (patch not merged after more than one year + build failure with uclibc/musl only fixed on ppc64:
https://github.com/facebook/rocksdb/commit/24b7ebee80ab282e073fd541d5b807d4a0bbbfab)
- Update hash of README.md (change not related to license:
https://github.com/facebook/rocksdb/commit/f4ade82ad29790b1e0d99188e0b26e5b805c7243)
As a side effect, this will remove the autobuilder failures on arm, powerpc and m68k
https://github.com/facebook/rocksdb/blob/v6.20.3/HISTORY.md
Fixes:
- http://autobuild.buildroot.org/results/059ebe270e6e7c23e40060c4cf0112c4cd72b0e7
- http://autobuild.buildroot.org/results/f007412f29ab2e03a6904e2f548e77654abde6de
- http://autobuild.buildroot.org/results/83505f78fcb4d925779177411d830bea127b6800
--- ...ls-build_detect_platform-fix-C-tests.patch | 96 +- ...patiblity-fix-CRC32-C-implementation.patch | 3787 ----------------- package/rocksdb/Config.in | 10 + package/rocksdb/rocksdb.hash | 4 +- package/rocksdb/rocksdb.mk | 2 +- 5 files changed, 61 insertions(+), 3838 deletions(-) delete mode 100644 package/rocksdb/0002-POWER7-8-compatiblity-fix-CRC32-C-implementation.patch
package/rocksdb/0001-build_tools-build_detect_platform-fix-C-tests.patch +48 -48
@@ -27,8 +27,8 @@ index 2535d8124..64a0ae76c 100755 PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -lpthread -lrt -ldl" if test $ROCKSDB_USE_IO_URING; then # check for liburing -- $CXX $CFLAGS -x c++ - -luring -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -luring -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -luring -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -luring -o test.o 2>/dev/null <<EOF #include <liburing.h> int main() { struct io_uring ring;
@@ -36,8 +36,8 @@ index 2535d8124..64a0ae76c 100755 else if ! test $ROCKSDB_DISABLE_FALLOCATE; then # Test whether fallocate is available -- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <fcntl.h> #include <linux/falloc.h> int main() {
@@ -45,8 +45,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_SNAPPY; then # Test whether Snappy library is installed # http://code.google.com/p/snappy/ -- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <snappy.h> int main() {} EOF
@@ -54,8 +54,8 @@ index 2535d8124..64a0ae76c 100755 # Test whether gflags library is installed # http://gflags.github.io/gflags/ # check if the namespace is gflags -- if $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null << EOF -+ if $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null << EOF +- if $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null << EOF ++ if $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null << EOF #include <gflags/gflags.h> using namespace GFLAGS_NAMESPACE; int main() {}
@@ -63,8 +63,8 @@ index 2535d8124..64a0ae76c 100755 COMMON_FLAGS="$COMMON_FLAGS -DGFLAGS=1" PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -lgflags" # check if namespace is gflags -- elif $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null << EOF -+ elif $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null << EOF +- elif $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null << EOF ++ elif $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null << EOF #include <gflags/gflags.h> using namespace gflags; int main() {}
@@ -72,8 +72,8 @@ index 2535d8124..64a0ae76c 100755 COMMON_FLAGS="$COMMON_FLAGS -DGFLAGS=1 -DGFLAGS_NAMESPACE=gflags" PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -lgflags" # check if namespace is google -- elif $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null << EOF -+ elif $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null << EOF +- elif $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null << EOF ++ elif $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null << EOF #include <gflags/gflags.h> using namespace google; int main() {}
@@ -81,8 +81,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_ZLIB; then # Test whether zlib library is installed -- $CXX $CFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS $COMMON_FLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <zlib.h> int main() {} EOF
@@ -90,8 +90,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_BZIP; then # Test whether bzip library is installed -- $CXX $CFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS $COMMON_FLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <bzlib.h> int main() {} EOF
@@ -99,8 +99,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_LZ4; then # Test whether lz4 library is installed -- $CXX $CFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS $COMMON_FLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <lz4.h> #include <lz4hc.h> int main() {}
@@ -108,8 +108,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_ZSTD; then # Test whether zstd library is installed -- $CXX $CFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS $COMMON_FLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <zstd.h> int main() {} EOF
@@ -117,8 +117,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_NUMA; then # Test whether numa is available -- $CXX $CFLAGS -x c++ - -o /dev/null -lnuma 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o -lnuma 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null -lnuma 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o -lnuma 2>/dev/null <<EOF #include <numa.h> #include <numaif.h> int main() {}
@@ -126,8 +126,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_TBB; then # Test whether tbb is available -- $CXX $CFLAGS $LDFLAGS -x c++ - -o /dev/null -ltbb 2>/dev/null <<EOF -+ $CXX $CFLAGS $LDFLAGS -x c++ - -o test.o -ltbb 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS $LDFLAGS -x c++ - -o /dev/null -ltbb 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS $LDFLAGS -x c++ - -o test.o -ltbb 2>/dev/null <<EOF #include <tbb/tbb.h> int main() {} EOF
@@ -135,8 +135,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_JEMALLOC; then # Test whether jemalloc is available -- if echo 'int main() {}' | $CXX $CFLAGS -x c++ - -o /dev/null -ljemalloc \ -+ if echo 'int main() {}' | $CXX $CFLAGS -x c++ - -o test.o -ljemalloc \ +- if echo 'int main() {}' | $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null -ljemalloc \ ++ if echo 'int main() {}' | $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o -ljemalloc \ 2>/dev/null; then # This will enable some preprocessor identifiers in the Makefile JEMALLOC=1
@@ -144,8 +144,8 @@ index 2535d8124..64a0ae76c 100755 fi if ! test $JEMALLOC && ! test $ROCKSDB_DISABLE_TCMALLOC; then # jemalloc is not available. Let's try tcmalloc -- if echo 'int main() {}' | $CXX $CFLAGS -x c++ - -o /dev/null \ -+ if echo 'int main() {}' | $CXX $CFLAGS -x c++ - -o test.o \ +- if echo 'int main() {}' | $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null \ ++ if echo 'int main() {}' | $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o \ -ltcmalloc 2>/dev/null; then PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -ltcmalloc" JAVA_LDFLAGS="$JAVA_LDFLAGS -ltcmalloc"
@@ -153,8 +153,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_MALLOC_USABLE_SIZE; then # Test whether malloc_usable_size is available -- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <malloc.h> int main() { size_t res = malloc_usable_size(0);
@@ -162,8 +162,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_MEMKIND; then # Test whether memkind library is installed -- $CXX $CFLAGS $COMMON_FLAGS -lmemkind -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS $COMMON_FLAGS -lmemkind -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -lmemkind -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS $COMMON_FLAGS -lmemkind -x c++ - -o test.o 2>/dev/null <<EOF #include <memkind.h> int main() { memkind_malloc(MEMKIND_DAX_KMEM, 1024);
@@ -171,8 +171,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_PTHREAD_MUTEX_ADAPTIVE_NP; then # Test whether PTHREAD_MUTEX_ADAPTIVE_NP mutex type is available -- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <pthread.h> int main() { int x = PTHREAD_MUTEX_ADAPTIVE_NP;
@@ -180,8 +180,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_BACKTRACE; then # Test whether backtrace is available -- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <execinfo.h> int main() { void* frames[1];
@@ -189,8 +189,8 @@ index 2535d8124..64a0ae76c 100755 COMMON_FLAGS="$COMMON_FLAGS -DROCKSDB_BACKTRACE" else # Test whether execinfo library is installed -- $CXX $CFLAGS -lexecinfo -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -lexecinfo -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -lexecinfo -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -lexecinfo -x c++ - -o test.o 2>/dev/null <<EOF #include <execinfo.h> int main() { void* frames[1];
@@ -198,8 +198,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_PG; then # Test if -pg is supported -- $CXX $CFLAGS -pg -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -pg -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -pg -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -pg -x c++ - -o test.o 2>/dev/null <<EOF int main() { return 0; }
@@ -207,8 +207,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_SYNC_FILE_RANGE; then # Test whether sync_file_range is supported for compatibility with an old glibc -- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <fcntl.h> int main() { int fd = open("/dev/null", 0);
@@ -216,8 +216,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_SCHED_GETCPU; then # Test whether sched_getcpu is supported -- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <sched.h> int main() { int cpuid = sched_getcpu();
@@ -225,8 +225,8 @@ index 2535d8124..64a0ae76c 100755 if ! test $ROCKSDB_DISABLE_AUXV_GETAUXVAL; then # Test whether getauxval is supported -- $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o 2>/dev/null <<EOF #include <sys/auxv.h> int main() { uint64_t auxv = getauxval(AT_HWCAP);
@@ -243,8 +243,8 @@ index 2535d8124..64a0ae76c 100755 # -Wshorten-64-to-32 breaks compilation on FreeBSD i386 if ! [ "$TARGET_OS" = FreeBSD -a "$TARGET_ARCHITECTURE" = i386 ]; then # Test whether -Wshorten-64-to-32 is available -- $CXX $CFLAGS -x c++ - -o /dev/null -Wshorten-64-to-32 2>/dev/null <<EOF -+ $CXX $CFLAGS -x c++ - -o test.o -Wshorten-64-to-32 2>/dev/null <<EOF +- $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null -Wshorten-64-to-32 2>/dev/null <<EOF ++ $CXX $PLATFORM_CXXFLAGS -x c++ - -o test.o -Wshorten-64-to-32 2>/dev/null <<EOF int main() {} EOF if [ "$?" = 0 ]; then
package/rocksdb/0002-POWER7-8-compatiblity-fix-CRC32-C-implementation.patch deleted +0 -3787
2,760 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.30.2
Part of the diff is not shown here. View the raw message.
PATCH 1/1 package/rocksdb: bump to version 6.20.3
Hi Fabrice,
Quoted 31 lines · Fabrice Fontaine
- Refresh first patch
- AddBR2_PACKAGE_ROCKSDB_ARCH_SUPPORTSdue totoku_time.hwhich has been added in version 6.16.3 by
https://github.com/facebook/rocksdb/commit/98236fb10ecdbe6e7e8ef5cfb11e1f11dcb72f84
and contains the following blob:#if
defined(__x86_64__)||defined(__i386__)
uint32_tlo, hi;
__asm____volatile__("rdtsc" : "=a"(lo), "=d"(hi)); return (uint64_t)hi << 32 | lo;
#elifdefined(__aarch64__)
uint64_tresult;
__asm__volatile__("mrs %[rt], cntvct_el0" : [ rt ] "=r"(result)); return result;
#elifdefined(__powerpc__)
return__ppc_get_timebase();
#else
#error No timer implementation for this platform
#endif- Also drop second patch and disable build on powerpc as it seems that upstream is not really testing powerpc (patch not merged after more than one year + build failure with uclibc/musl only fixed on ppc64:
https://github.com/facebook/rocksdb/commit/24b7ebee80ab282e073fd541d5b807d4a0bbbfab)- Update hash of README.md (change not related to license:
https://github.com/facebook/rocksdb/commit/f4ade82ad29790b1e0d99188e0b26e5b805c7243)As a side effect, this will remove the autobuilder failures on arm, powerpc and m68k
Quoted 6 lines
https://github.com/facebook/rocksdb/blob/v6.20.3/HISTORY.md
Fixes:
- http://autobuild.buildroot.org/results/059ebe270e6e7c23e40060c4cf0112c4cd72b0e7
- http://autobuild.buildroot.org/results/f007412f29ab2e03a6904e2f548e77654abde6de
- http://autobuild.buildroot.org/results/83505f78fcb4d925779177411d830bea127b6800
As a version bump, this is more appropriate for next than for master. But on
the other hand, it fixes things as well... I first thought to ask to split off the arch dependency in a separate patch, but that would also be weird because the explanation would be that "a later version no longer supports these architectures"...
Therefore, I just applied to master, thanks.
Quoted 2 lines
Signed-off-by Fabrice Fontaine <[email protected]>
[snip]
Review
Quoted 3 lines
comment "rocksdb needs a toolchain not affected by GCC bug 64735"
(quoted diff) +1
-0+ depends on BR2_PACKAGE_ROCKSDB_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
This bug only exists on nios, arm32, sparc and m68k, so not on any of the
supported arches. On the other hand, maybe they'll add arm32 support at some point, so it's better to be prepared for that. And it's not as if this symbol is in the way.
Regards,
Arnout
[snip]