11class Rocksdb < Formula
22 desc "Embeddable, persistent key-value store for fast storage"
33 homepage "https://rocksdb.org/"
4- url "https://github.com/facebook/rocksdb/archive/refs/tags/v10.6.2 .tar.gz"
5- sha256 "14c619b8a10f994aa6061bd12182b20270c4c27c2f3d9cb4376d57f3cd1c5d7f "
4+ url "https://github.com/facebook/rocksdb/archive/refs/tags/v10.7.5 .tar.gz"
5+ sha256 "a9948bf5f00dd1e656fc40c4b0bf39001c3773ad22c56959bdb1c940d10e3d8d "
66 license any_of : [ "GPL-2.0-only" , "Apache-2.0" ]
77 head "https://github.com/facebook/rocksdb.git" , branch : "main"
88
@@ -24,6 +24,13 @@ class Rocksdb < Formula
2424 uses_from_macos "bzip2"
2525 uses_from_macos "zlib"
2626
27+ # Fix to error ld: library 'atomic' not found
28+ # PR ref: https://github.com/facebook/rocksdb/pull/14048
29+ patch do
30+ url "https://github.com/facebook/rocksdb/commit/1d18c4ed0177f184f228a7cdfb78eb85d0dab540.patch?full_index=1"
31+ sha256 "7c76c3aaf970cd38129f42b6b76da3f37c59048507681c6953211d233e8cbdff"
32+ end
33+
2734 def install
2835 args = %W[
2936 -DPORTABLE=ON
@@ -72,7 +79,7 @@ def install
7279 extra_args << "-lstdc++"
7380 end
7481 system ENV . cxx , "test.cpp" , "-o" , "db_test" , "-v" ,
75- "-std=c++17 " ,
82+ "-std=c++20 " ,
7683 *extra_args ,
7784 "-lz" , "-lbz2" ,
7885 "-L#{ lib } " , "-lrocksdb" ,
@@ -81,7 +88,7 @@ def install
8188 "-L#{ Formula [ "zstd" ] . opt_lib } " , "-lzstd"
8289 system "./db_test"
8390
84- assert_match "sst_dump --file= " , shell_output ( "#{ bin } /rocksdb_sst_dump --help 2>&1" )
91+ assert_match "sst_dump <db_dirs_OR_sst_files...> " , shell_output ( "#{ bin } /rocksdb_sst_dump --help 2>&1" )
8592 assert_match "rocksdb_sanity_test <path>" , shell_output ( "#{ bin } /rocksdb_sanity_test --help 2>&1" , 1 )
8693 assert_match "rocksdb_stress [OPTIONS]..." , shell_output ( "#{ bin } /rocksdb_stress --help 2>&1" , 1 )
8794 assert_match "rocksdb_write_stress [OPTIONS]..." , shell_output ( "#{ bin } /rocksdb_write_stress --help 2>&1" , 1 )
0 commit comments