diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-26 00:10:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-26 00:10:07 +0100 |
commit | 95461df035e3867364495f065e5e805bf629b2d7 (patch) | |
tree | 867dce371a84a696e91be255d89f282975aa0480 /dev-libs/leveldb/files | |
parent | 46eedbedafdb0040c37884982d4c775ce277fb7b (diff) |
gentoo resync : 25.10.2021
Diffstat (limited to 'dev-libs/leveldb/files')
-rw-r--r-- | dev-libs/leveldb/files/leveldb-1.23-remove-benchmark-dep.patch | 44 | ||||
-rw-r--r-- | dev-libs/leveldb/files/leveldb-1.23-system-testdeps.patch | 3 |
2 files changed, 45 insertions, 2 deletions
diff --git a/dev-libs/leveldb/files/leveldb-1.23-remove-benchmark-dep.patch b/dev-libs/leveldb/files/leveldb-1.23-remove-benchmark-dep.patch new file mode 100644 index 000000000000..be5ce7386ed4 --- /dev/null +++ b/dev-libs/leveldb/files/leveldb-1.23-remove-benchmark-dep.patch @@ -0,0 +1,44 @@ +Only one test executable is using benchmark, and that is only for a badly +placed benchmark. + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -323,7 +323,7 @@ if(LEVELDB_BUILD_TESTS) + + "${test_file}" + ) +- target_link_libraries("${test_target_name}" leveldb gmock gtest benchmark) ++ target_link_libraries("${test_target_name}" leveldb gmock gtest) + target_compile_definitions("${test_target_name}" + PRIVATE + ${LEVELDB_PLATFORM_NAME}=1 +--- a/db/db_test.cc ++++ b/db/db_test.cc +@@ -9,7 +9,6 @@ + #include <string> + + #include "gtest/gtest.h" +-#include "benchmark/benchmark.h" + #include "db/db_impl.h" + #include "db/filename.h" + #include "db/version_set.h" +@@ -2301,6 +2300,7 @@ std::string MakeKey(unsigned int num) { + return std::string(buf); + } + ++#if 0 + static void BM_LogAndApply(benchmark::State& state) { + const int num_base_files = state.range(0); + +@@ -2357,10 +2357,10 @@ static void BM_LogAndApply(benchmark::State& state) { + } + + BENCHMARK(BM_LogAndApply)->Arg(1)->Arg(100)->Arg(10000)->Arg(100000); ++#endif + } // namespace leveldb + + int main(int argc, char** argv) { + testing::InitGoogleTest(&argc, argv); +- benchmark::RunSpecifiedBenchmarks(); + return RUN_ALL_TESTS(); + } diff --git a/dev-libs/leveldb/files/leveldb-1.23-system-testdeps.patch b/dev-libs/leveldb/files/leveldb-1.23-system-testdeps.patch index 232d74aa2ccd..8165050048c9 100644 --- a/dev-libs/leveldb/files/leveldb-1.23-system-testdeps.patch +++ b/dev-libs/leveldb/files/leveldb-1.23-system-testdeps.patch @@ -1,6 +1,6 @@ --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -296,20 +296,12 @@ +@@ -296,20 +296,11 @@ set(build_gmock ON) # This project is tested using GoogleTest. @@ -19,7 +19,6 @@ - set_property(TARGET gmock - APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers) - endif(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS) -+ find_package(benchmark REQUIRED) function(leveldb_test test_file) get_filename_component(test_target_name "${test_file}" NAME_WE) |