summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Add-check-for-atomic-support.patch12
-rw-r--r--meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Use-exported-target-for-bz2.patch7
-rw-r--r--meta-oe/recipes-dbs/rocksdb/files/0001-folly-Use-SYS_futex-for-syscall.patch5
-rw-r--r--meta-oe/recipes-dbs/rocksdb/files/0001-jemalloc_helper-Limit-the-mm_malloc.h-hack-to-glibc-.patch23
-rw-r--r--meta-oe/recipes-dbs/rocksdb/rocksdb_6.20.3.bb (renamed from meta-oe/recipes-dbs/rocksdb/rocksdb_6.15.5.bb)5
5 files changed, 29 insertions, 23 deletions
diff --git a/meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Add-check-for-atomic-support.patch b/meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Add-check-for-atomic-support.patch
index eb9928a0ca..8bdd27ff25 100644
--- a/meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Add-check-for-atomic-support.patch
+++ b/meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Add-check-for-atomic-support.patch
@@ -25,11 +25,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
25 2 files changed, 74 insertions(+) 25 2 files changed, 74 insertions(+)
26 create mode 100644 cmake/modules/CheckAtomic.cmake 26 create mode 100644 cmake/modules/CheckAtomic.cmake
27 27
28diff --git a/CMakeLists.txt b/CMakeLists.txt
29index f9c8f3346..4d604004b 100644
30--- a/CMakeLists.txt 28--- a/CMakeLists.txt
31+++ b/CMakeLists.txt 29+++ b/CMakeLists.txt
32@@ -852,7 +852,12 @@ endif() 30@@ -935,7 +935,12 @@ endif()
33 if(WIN32) 31 if(WIN32)
34 set(SYSTEM_LIBS ${SYSTEM_LIBS} shlwapi.lib rpcrt4.lib) 32 set(SYSTEM_LIBS ${SYSTEM_LIBS} shlwapi.lib rpcrt4.lib)
35 else() 33 else()
@@ -41,10 +39,7 @@ index f9c8f3346..4d604004b 100644
41+ endif() 39+ endif()
42 endif() 40 endif()
43 41
44 add_library(${ROCKSDB_STATIC_LIB} STATIC ${SOURCES}) 42 add_library(${ROCKSDB_STATIC_LIB} STATIC ${SOURCES} ${BUILD_VERSION_CC})
45diff --git a/cmake/modules/CheckAtomic.cmake b/cmake/modules/CheckAtomic.cmake
46new file mode 100644
47index 000000000..8b7dc8a37
48--- /dev/null 43--- /dev/null
49+++ b/cmake/modules/CheckAtomic.cmake 44+++ b/cmake/modules/CheckAtomic.cmake
50@@ -0,0 +1,69 @@ 45@@ -0,0 +1,69 @@
@@ -117,6 +112,3 @@ index 000000000..8b7dc8a37
117+ endif() 112+ endif()
118+endif() 113+endif()
119+ 114+
120--
1212.28.0
122
diff --git a/meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Use-exported-target-for-bz2.patch b/meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Use-exported-target-for-bz2.patch
index 57433b057a..d3054759a7 100644
--- a/meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Use-exported-target-for-bz2.patch
+++ b/meta-oe/recipes-dbs/rocksdb/files/0001-cmake-Use-exported-target-for-bz2.patch
@@ -11,8 +11,6 @@ Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/7541]
11 CMakeLists.txt | 9 ++------- 11 CMakeLists.txt | 9 ++-------
12 1 file changed, 2 insertions(+), 7 deletions(-) 12 1 file changed, 2 insertions(+), 7 deletions(-)
13 13
14diff --git a/CMakeLists.txt b/CMakeLists.txt
15index 676192913..801586c30 100644
16--- a/CMakeLists.txt 14--- a/CMakeLists.txt
17+++ b/CMakeLists.txt 15+++ b/CMakeLists.txt
18@@ -32,7 +32,7 @@ 16@@ -32,7 +32,7 @@
@@ -24,7 +22,7 @@ index 676192913..801586c30 100644
24 22
25 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules/") 23 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules/")
26 include(ReadVersion) 24 include(ReadVersion)
27@@ -148,12 +148,7 @@ else() 25@@ -152,12 +152,7 @@ else()
28 if(WITH_BZ2) 26 if(WITH_BZ2)
29 find_package(BZip2 REQUIRED) 27 find_package(BZip2 REQUIRED)
30 add_definitions(-DBZIP2) 28 add_definitions(-DBZIP2)
@@ -38,6 +36,3 @@ index 676192913..801586c30 100644
38 endif() 36 endif()
39 37
40 if(WITH_LZ4) 38 if(WITH_LZ4)
41--
422.28.0
43
diff --git a/meta-oe/recipes-dbs/rocksdb/files/0001-folly-Use-SYS_futex-for-syscall.patch b/meta-oe/recipes-dbs/rocksdb/files/0001-folly-Use-SYS_futex-for-syscall.patch
index aa291daa3e..9c70d4f6a6 100644
--- a/meta-oe/recipes-dbs/rocksdb/files/0001-folly-Use-SYS_futex-for-syscall.patch
+++ b/meta-oe/recipes-dbs/rocksdb/files/0001-folly-Use-SYS_futex-for-syscall.patch
@@ -12,8 +12,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 third-party/folly/folly/detail/Futex.cpp | 10 ++++++++-- 12 third-party/folly/folly/detail/Futex.cpp | 10 ++++++++--
13 1 file changed, 8 insertions(+), 2 deletions(-) 13 1 file changed, 8 insertions(+), 2 deletions(-)
14 14
15diff --git a/third-party/folly/folly/detail/Futex.cpp b/third-party/folly/folly/detail/Futex.cpp
16index 62d6ea2b2..a914a8c73 100644
17--- a/third-party/folly/folly/detail/Futex.cpp 15--- a/third-party/folly/folly/detail/Futex.cpp
18+++ b/third-party/folly/folly/detail/Futex.cpp 16+++ b/third-party/folly/folly/detail/Futex.cpp
19@@ -48,9 +48,15 @@ namespace { 17@@ -48,9 +48,15 @@ namespace {
@@ -42,6 +40,3 @@ index 62d6ea2b2..a914a8c73 100644
42 addr, /* addr1 */ 40 addr, /* addr1 */
43 op, /* op */ 41 op, /* op */
44 expected, /* val */ 42 expected, /* val */
45--
462.29.2
47
diff --git a/meta-oe/recipes-dbs/rocksdb/files/0001-jemalloc_helper-Limit-the-mm_malloc.h-hack-to-glibc-.patch b/meta-oe/recipes-dbs/rocksdb/files/0001-jemalloc_helper-Limit-the-mm_malloc.h-hack-to-glibc-.patch
new file mode 100644
index 0000000000..dbb0dda221
--- /dev/null
+++ b/meta-oe/recipes-dbs/rocksdb/files/0001-jemalloc_helper-Limit-the-mm_malloc.h-hack-to-glibc-.patch
@@ -0,0 +1,23 @@
1From 1a69d4cc3f97e348dba9714c7ec60da1a8650664 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 15 Jun 2021 22:05:36 -0700
4Subject: [PATCH] jemalloc_helper: Limit the mm_malloc.h hack to glibc on linux
5
6Musl does not need this hack
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 port/jemalloc_helper.h | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13--- a/port/jemalloc_helper.h
14+++ b/port/jemalloc_helper.h
15@@ -5,7 +5,7 @@
16
17 #pragma once
18
19-#if defined(__clang__)
20+#if defined(__clang__) && defined(__GLIBC__)
21 // glibc's `posix_memalign()` declaration specifies `throw()` while clang's
22 // declaration does not. There is a hack in clang to make its re-declaration
23 // compatible with glibc's if they are declared consecutively. That hack breaks
diff --git a/meta-oe/recipes-dbs/rocksdb/rocksdb_6.15.5.bb b/meta-oe/recipes-dbs/rocksdb/rocksdb_6.20.3.bb
index acef05b015..ded454e167 100644
--- a/meta-oe/recipes-dbs/rocksdb/rocksdb_6.15.5.bb
+++ b/meta-oe/recipes-dbs/rocksdb/rocksdb_6.20.3.bb
@@ -6,13 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57 \
6 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 6 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
7 file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837" 7 file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837"
8 8
9SRCREV = "abd4b1ff1504ae2a7ed6e60bc9c9797b880c33a5" 9SRCREV = "8608d75d85f8e1b3b64b73a4fb6d19baec61ba5c"
10SRCBRANCH = "6.15.fb" 10SRCBRANCH = "6.20.fb"
11 11
12SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH} \ 12SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH} \
13 file://0001-cmake-Add-check-for-atomic-support.patch \ 13 file://0001-cmake-Add-check-for-atomic-support.patch \
14 file://0001-cmake-Use-exported-target-for-bz2.patch \ 14 file://0001-cmake-Use-exported-target-for-bz2.patch \
15 file://0001-folly-Use-SYS_futex-for-syscall.patch \ 15 file://0001-folly-Use-SYS_futex-for-syscall.patch \
16 file://0001-jemalloc_helper-Limit-the-mm_malloc.h-hack-to-glibc-.patch \
16 " 17 "
17 18
18S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"