mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
rocksdb: Upgrade to 6.20.3
Refresh patches Add a fix to build with clang on musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
94e54c209d
commit
912be5179c
@ -25,11 +25,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
2 files changed, 74 insertions(+)
|
||||
create mode 100644 cmake/modules/CheckAtomic.cmake
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f9c8f3346..4d604004b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -852,7 +852,12 @@ endif()
|
||||
@@ -935,7 +935,12 @@ endif()
|
||||
if(WIN32)
|
||||
set(SYSTEM_LIBS ${SYSTEM_LIBS} shlwapi.lib rpcrt4.lib)
|
||||
else()
|
||||
@ -41,10 +39,7 @@ index f9c8f3346..4d604004b 100644
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
add_library(${ROCKSDB_STATIC_LIB} STATIC ${SOURCES})
|
||||
diff --git a/cmake/modules/CheckAtomic.cmake b/cmake/modules/CheckAtomic.cmake
|
||||
new file mode 100644
|
||||
index 000000000..8b7dc8a37
|
||||
add_library(${ROCKSDB_STATIC_LIB} STATIC ${SOURCES} ${BUILD_VERSION_CC})
|
||||
--- /dev/null
|
||||
+++ b/cmake/modules/CheckAtomic.cmake
|
||||
@@ -0,0 +1,69 @@
|
||||
@ -117,6 +112,3 @@ index 000000000..8b7dc8a37
|
||||
+ endif()
|
||||
+endif()
|
||||
+
|
||||
--
|
||||
2.28.0
|
||||
|
||||
|
||||
@ -11,8 +11,6 @@ Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/7541]
|
||||
CMakeLists.txt | 9 ++-------
|
||||
1 file changed, 2 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 676192913..801586c30 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -32,7 +32,7 @@
|
||||
@ -24,7 +22,7 @@ index 676192913..801586c30 100644
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules/")
|
||||
include(ReadVersion)
|
||||
@@ -148,12 +148,7 @@ else()
|
||||
@@ -152,12 +152,7 @@ else()
|
||||
if(WITH_BZ2)
|
||||
find_package(BZip2 REQUIRED)
|
||||
add_definitions(-DBZIP2)
|
||||
@ -38,6 +36,3 @@ index 676192913..801586c30 100644
|
||||
endif()
|
||||
|
||||
if(WITH_LZ4)
|
||||
--
|
||||
2.28.0
|
||||
|
||||
|
||||
@ -12,8 +12,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
third-party/folly/folly/detail/Futex.cpp | 10 ++++++++--
|
||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/third-party/folly/folly/detail/Futex.cpp b/third-party/folly/folly/detail/Futex.cpp
|
||||
index 62d6ea2b2..a914a8c73 100644
|
||||
--- a/third-party/folly/folly/detail/Futex.cpp
|
||||
+++ b/third-party/folly/folly/detail/Futex.cpp
|
||||
@@ -48,9 +48,15 @@ namespace {
|
||||
@ -42,6 +40,3 @@ index 62d6ea2b2..a914a8c73 100644
|
||||
addr, /* addr1 */
|
||||
op, /* op */
|
||||
expected, /* val */
|
||||
--
|
||||
2.29.2
|
||||
|
||||
|
||||
@ -0,0 +1,23 @@
|
||||
From 1a69d4cc3f97e348dba9714c7ec60da1a8650664 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 15 Jun 2021 22:05:36 -0700
|
||||
Subject: [PATCH] jemalloc_helper: Limit the mm_malloc.h hack to glibc on linux
|
||||
|
||||
Musl does not need this hack
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
port/jemalloc_helper.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/port/jemalloc_helper.h
|
||||
+++ b/port/jemalloc_helper.h
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
-#if defined(__clang__)
|
||||
+#if defined(__clang__) && defined(__GLIBC__)
|
||||
// glibc's `posix_memalign()` declaration specifies `throw()` while clang's
|
||||
// declaration does not. There is a hack in clang to make its re-declaration
|
||||
// compatible with glibc's if they are declared consecutively. That hack breaks
|
||||
@ -6,13 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57 \
|
||||
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837"
|
||||
|
||||
SRCREV = "abd4b1ff1504ae2a7ed6e60bc9c9797b880c33a5"
|
||||
SRCBRANCH = "6.15.fb"
|
||||
SRCREV = "8608d75d85f8e1b3b64b73a4fb6d19baec61ba5c"
|
||||
SRCBRANCH = "6.20.fb"
|
||||
|
||||
SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH} \
|
||||
file://0001-cmake-Add-check-for-atomic-support.patch \
|
||||
file://0001-cmake-Use-exported-target-for-bz2.patch \
|
||||
file://0001-folly-Use-SYS_futex-for-syscall.patch \
|
||||
file://0001-jemalloc_helper-Limit-the-mm_malloc.h-hack-to-glibc-.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
Loading…
x
Reference in New Issue
Block a user