1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

databases/rocksdb: Update to 9.4.0

Changes:	https://github.com/facebook/rocksdb/releases
This commit is contained in:
Po-Chuan Hsieh 2024-07-14 04:17:34 +08:00
parent d6a461ce67
commit b0391241ed
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
6 changed files with 12 additions and 32 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= rocksdb
PORTVERSION= 9.3.1
PORTVERSION= 9.4.0
DISTVERSIONPREFIX= v
CATEGORIES= databases

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1720022674
SHA256 (facebook-rocksdb-v9.3.1_GH0.tar.gz) = e63f1be162998c0f49a538a7fe3fcac0e40cad77ee47d5592a65bca50f7c4620
SIZE (facebook-rocksdb-v9.3.1_GH0.tar.gz) = 13512627
TIMESTAMP = 1720893168
SHA256 (facebook-rocksdb-v9.4.0_GH0.tar.gz) = 1f829976aa24b8ba432e156f52c9e0f0bd89c46dc0cc5a9a628ea70571c1551c
SIZE (facebook-rocksdb-v9.4.0_GH0.tar.gz) = 13550643

View File

@ -1,6 +1,6 @@
--- Makefile.orig 2022-10-05 23:40:03 UTC
--- Makefile.orig 2024-06-24 23:48:34 UTC
+++ Makefile
@@ -239,19 +239,19 @@ AM_SHARE = $(AM_V_CCLD) $(CXX) $(PLATFORM_SHARED_LDFLA
@@ -91,20 +91,20 @@ $(info $$DEBUG_LEVEL is $(DEBUG_LEVEL), $$LIB_MODE is
# Detect what platform we're building on.
# Export some common variables that might have been passed as Make variables
# instead of environment variables.
@ -16,6 +16,7 @@
- export LIB_MODE="$(LIB_MODE)"; \
- export ROCKSDB_CXX_STANDARD="$(ROCKSDB_CXX_STANDARD)"; \
- export USE_FOLLY="$(USE_FOLLY)"; \
- export USE_FOLLY_LITE="$(USE_FOLLY_LITE)"; \
- "$(CURDIR)/build_tools/build_detect_platform" "$(CURDIR)/make_config.mk"))
+#dummy := $(shell (export ROCKSDB_ROOT="$(CURDIR)"; \
+# export CXXFLAGS="$(EXTRA_CXXFLAGS)"; \
@ -29,11 +30,12 @@
+# export LIB_MODE="$(LIB_MODE)"; \
+# export ROCKSDB_CXX_STANDARD="$(ROCKSDB_CXX_STANDARD)"; \
+# export USE_FOLLY="$(USE_FOLLY)"; \
+# export USE_FOLLY_LITE="$(USE_FOLLY_LITE)"; \
+# "$(CURDIR)/build_tools/build_detect_platform" "$(CURDIR)/make_config.mk"))
# this file is generated by the previous line to set build flags and sources
include make_config.mk
@@ -876,7 +876,7 @@ endif # PLATFORM_SHARED_EXT
@@ -884,7 +884,7 @@ endif # PLATFORM_SHARED_EXT
rocksdbjavastatic rocksdbjava install install-static install-shared \
uninstall analyze tools tools_lib check-headers checkout_folly
@ -42,12 +44,12 @@
all_but_some_tests: $(LIBRARY) $(BENCHMARKS) tools tools_lib test_libs $(ROCKSDBTESTS_SUBSET)
@@ -1273,7 +1273,7 @@ package:
@@ -1297,7 +1297,7 @@ $(STATIC_LIBRARY): $(LIB_OBJECTS)
# Unit tests and tools
# ---------------------------------------------------------------------------
$(STATIC_LIBRARY): $(LIB_OBJECTS)
- $(AM_V_AR)rm -f $@ $(SHARED1) $(SHARED2) $(SHARED3) $(SHARED4)
+ $(AM_V_AR)rm -f $@
+ $(AM_V_AR)rm -f $@ # $(SHARED1) $(SHARED2) $(SHARED3) $(SHARED4)
$(AM_V_at)$(AR) $(ARFLAGS) $@ $(LIB_OBJECTS)
$(STATIC_TEST_LIBRARY): $(TEST_OBJECTS)

View File

@ -1,13 +0,0 @@
https://github.com/facebook/rocksdb/commit/b03d4156609dd27f65ad199139eaae722c876b8c
--- db_stress_tool/db_stress_common.cc.orig 2024-05-08 23:03:15 UTC
+++ db_stress_tool/db_stress_common.cc
@@ -200,7 +200,7 @@ void CompressedCacheSetCapacityThread(void* v) {
// Lower by upto 50% of usable block cache capacity
adjustment = (adjustment * thread->rand.Uniform(50)) / 100;
block_cache->SetCapacity(capacity - adjustment);
- fprintf(stdout, "New cache capacity = %lu\n",
+ fprintf(stdout, "New cache capacity = %zu\n",
block_cache->GetCapacity());
db_stress_env->SleepForMicroseconds(10 * 1000 * 1000);
block_cache->SetCapacity(capacity);

View File

@ -1,10 +0,0 @@
--- port/stack_trace.cc.orig 2023-09-01 20:58:39 UTC
+++ port/stack_trace.cc
@@ -37,6 +37,7 @@ void* SaveStack(int* /*num_frames*/, int /*first_frame
#endif // OS_OPENBSD
#ifdef OS_FREEBSD
#include <sys/sysctl.h>
+#include <sys/wait.h>
#endif // OS_FREEBSD
#ifdef OS_LINUX
#include <sys/prctl.h>

View File

@ -85,6 +85,7 @@ include/rocksdb/transaction_log.h
include/rocksdb/types.h
include/rocksdb/unique_id.h
include/rocksdb/universal_compaction.h
include/rocksdb/user_write_callback.h
include/rocksdb/utilities/agg_merge.h
include/rocksdb/utilities/backup_engine.h
include/rocksdb/utilities/cache_dump_load.h