mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +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:
@@ -25,11 +25,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
2 files changed, 74 insertions(+)
|
2 files changed, 74 insertions(+)
|
||||||
create mode 100644 cmake/modules/CheckAtomic.cmake
|
create mode 100644 cmake/modules/CheckAtomic.cmake
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index f9c8f3346..4d604004b 100644
|
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -852,7 +852,12 @@ endif()
|
@@ -935,7 +935,12 @@ endif()
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(SYSTEM_LIBS ${SYSTEM_LIBS} shlwapi.lib rpcrt4.lib)
|
set(SYSTEM_LIBS ${SYSTEM_LIBS} shlwapi.lib rpcrt4.lib)
|
||||||
else()
|
else()
|
||||||
@@ -41,10 +39,7 @@ index f9c8f3346..4d604004b 100644
|
|||||||
+ endif()
|
+ endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(${ROCKSDB_STATIC_LIB} STATIC ${SOURCES})
|
add_library(${ROCKSDB_STATIC_LIB} STATIC ${SOURCES} ${BUILD_VERSION_CC})
|
||||||
diff --git a/cmake/modules/CheckAtomic.cmake b/cmake/modules/CheckAtomic.cmake
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000..8b7dc8a37
|
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/cmake/modules/CheckAtomic.cmake
|
+++ b/cmake/modules/CheckAtomic.cmake
|
||||||
@@ -0,0 +1,69 @@
|
@@ -0,0 +1,69 @@
|
||||||
@@ -117,6 +112,3 @@ index 000000000..8b7dc8a37
|
|||||||
+ endif()
|
+ endif()
|
||||||
+endif()
|
+endif()
|
||||||
+
|
+
|
||||||
--
|
|
||||||
2.28.0
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/7541]
|
|||||||
CMakeLists.txt | 9 ++-------
|
CMakeLists.txt | 9 ++-------
|
||||||
1 file changed, 2 insertions(+), 7 deletions(-)
|
1 file changed, 2 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index 676192913..801586c30 100644
|
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -32,7 +32,7 @@
|
@@ -32,7 +32,7 @@
|
||||||
@@ -24,7 +22,7 @@ index 676192913..801586c30 100644
|
|||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules/")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules/")
|
||||||
include(ReadVersion)
|
include(ReadVersion)
|
||||||
@@ -148,12 +148,7 @@ else()
|
@@ -152,12 +152,7 @@ else()
|
||||||
if(WITH_BZ2)
|
if(WITH_BZ2)
|
||||||
find_package(BZip2 REQUIRED)
|
find_package(BZip2 REQUIRED)
|
||||||
add_definitions(-DBZIP2)
|
add_definitions(-DBZIP2)
|
||||||
@@ -38,6 +36,3 @@ index 676192913..801586c30 100644
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_LZ4)
|
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 ++++++++--
|
third-party/folly/folly/detail/Futex.cpp | 10 ++++++++--
|
||||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
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
|
--- a/third-party/folly/folly/detail/Futex.cpp
|
||||||
+++ b/third-party/folly/folly/detail/Futex.cpp
|
+++ b/third-party/folly/folly/detail/Futex.cpp
|
||||||
@@ -48,9 +48,15 @@ namespace {
|
@@ -48,9 +48,15 @@ namespace {
|
||||||
@@ -42,6 +40,3 @@ index 62d6ea2b2..a914a8c73 100644
|
|||||||
addr, /* addr1 */
|
addr, /* addr1 */
|
||||||
op, /* op */
|
op, /* op */
|
||||||
expected, /* val */
|
expected, /* val */
|
||||||
--
|
|
||||||
2.29.2
|
|
||||||
|
|
||||||
|
|||||||
+23
@@ -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
|
||||||
+3
-2
@@ -6,13 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57 \
|
|||||||
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||||
file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837"
|
file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837"
|
||||||
|
|
||||||
SRCREV = "abd4b1ff1504ae2a7ed6e60bc9c9797b880c33a5"
|
SRCREV = "8608d75d85f8e1b3b64b73a4fb6d19baec61ba5c"
|
||||||
SRCBRANCH = "6.15.fb"
|
SRCBRANCH = "6.20.fb"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH} \
|
SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH} \
|
||||||
file://0001-cmake-Add-check-for-atomic-support.patch \
|
file://0001-cmake-Add-check-for-atomic-support.patch \
|
||||||
file://0001-cmake-Use-exported-target-for-bz2.patch \
|
file://0001-cmake-Use-exported-target-for-bz2.patch \
|
||||||
file://0001-folly-Use-SYS_futex-for-syscall.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"
|
S = "${WORKDIR}/git"
|
||||||
Reference in New Issue
Block a user