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
99 bottle do
10- sha256 cellar : :any , arm64_tahoe : "606414bd3a182e7c38d39c682d2d24dfa34e49045fa85cce4ed52ab1e4310fa9 "
11- sha256 cellar : :any , arm64_sequoia : "de828961a5b6c7d40dd49eaf653e324dc59d283398909ca8e99aeb9c66504a8c "
12- sha256 cellar : :any , arm64_sonoma : "b582f43575b82ba9389977f46711f62ed34c6c55a294a38fafbc0e2eaee5420b "
13- sha256 cellar : :any , sonoma : "41434547d924d8dc5b3f6837c9574d6a9fa3804bcb4eab4ecb51412cf0d240ac "
14- sha256 cellar : :any_skip_relocation , arm64_linux : "db3deedd94953f82a8a9a310be618df89cb437ccd0a80f7770f2f3aab28e63dd "
15- sha256 cellar : :any_skip_relocation , x86_64_linux : "090942c5620766f8c0c16c1fa9eedc60ccdfcb120fce46569c21c12f21a975d9 "
10+ sha256 cellar : :any , arm64_tahoe : "7b22eda881c19c8eaa3e229835d51c30be442bdf403f7cb146b33ecd5c3ca53f "
11+ sha256 cellar : :any , arm64_sequoia : "ae9b516676748f4b768cd4a7f09f9748de871865695916de9c5af8b46a0d705f "
12+ sha256 cellar : :any , arm64_sonoma : "142b675212b5d44025de16af223bc7a79cd0a1ac11b0ca0c66788945acdab7e6 "
13+ sha256 cellar : :any , sonoma : "1b31b2a0387fab54e10646110b41c9a199fef18ba7cff970c1e02aa0eb7a6632 "
14+ sha256 cellar : :any_skip_relocation , arm64_linux : "5bce6eab3b2493e18a825212ba64afaee1109da8a0639b303d89bb931cead046 "
15+ sha256 cellar : :any_skip_relocation , x86_64_linux : "04c1758a0c5dbac41877099de5eeb85164e338f74687b935cff3f8078d4423dc "
1616 end
1717
1818 depends_on "cmake" => :build
@@ -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