File conan-adjustments.patch of Package milvus
From 0f9a1df828bd3648b41f9a6977c2515e9facdbbb Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.com>
Date: Thu, 23 Jan 2025 11:19:19 +0100
Subject: [PATCH] conan adjustments
Signed-off-by: Christian Goll <cgoll@suse.com>
---
internal/core/CMakeLists.txt | 8 ++--
internal/core/conanfile.py | 74 +-----------------------------------
2 files changed, 6 insertions(+), 76 deletions(-)
diff --git a/internal/core/CMakeLists.txt b/internal/core/CMakeLists.txt
index 24d11459..c1efca64 100644
--- a/internal/core/CMakeLists.txt
+++ b/internal/core/CMakeLists.txt
@@ -96,10 +96,10 @@ set( CMAKE_INSTALL_RPATH "/usr/lib" "${CMAKE_INSTALL_PREFIX}/lib" "${CMAKE_INSTA
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
# **************************** Dependencies ****************************
-list( APPEND CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR}/conan )
-include( ${CMAKE_BINARY_DIR}/conan/conanbuildinfo.cmake )
-set( CONAN_DISABLE_CHECK_COMPILER ON )
-conan_basic_setup( KEEP_RPATHS )
+#list( APPEND CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR}/conan )
+#include( ${CMAKE_BINARY_DIR}/conan/conanbuildinfo.cmake )
+#set( CONAN_DISABLE_CHECK_COMPILER ON )
+#conan_basic_setup( KEEP_RPATHS )
set( CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${CONAN_PROTOBUF_ROOT})
diff --git a/internal/core/conanfile.py b/internal/core/conanfile.py
index 9978fe53..a2ff948d 100644
--- a/internal/core/conanfile.py
+++ b/internal/core/conanfile.py
@@ -1,4 +1,4 @@
-from conans import ConanFile
+from conan import ConanFile
class MilvusConan(ConanFile):
@@ -6,79 +6,9 @@ class MilvusConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
requires = (
"rocksdb/6.29.5@milvus/dev#b1842a53ddff60240c5282a3da498ba1",
- "boost/1.82.0#744a17160ebb5838e9115eab4d6d0c06",
- "onetbb/2021.9.0#4a223ff1b4025d02f31b65aedf5e7f4a",
- "nlohmann_json/3.11.2#ffb9e9236619f1c883e36662f944345d",
- "zstd/1.5.4#308b8b048f9a3823ce248f9c150cc889",
- "lz4/1.9.4#c5afb86edd69ac0df30e3a9e192e43db",
- "snappy/1.1.9#0519333fef284acd04806243de7d3070",
- "lzo/2.10#9517fc1bcc4d4cc229a79806003a1baa",
- "arrow/15.0.0#0456d916ff25d509e0724c5b219b4c45",
- "openssl/3.1.2#02594c4c0a6e2b4feb3cd15119993597",
- "aws-sdk-cpp/1.9.234#28d6d2c175975900ce292bafe8022c88",
- "googleapis/cci.20221108#65604e1b3b9a6b363044da625b201a2a",
- "benchmark/1.7.0#459f3bb1a64400a886ba43047576df3c",
- "gtest/1.13.0#f9548be18a41ccc6367efcb8146e92be",
- "protobuf/3.21.4#fd372371d994b8585742ca42c12337f9",
- "rapidxml/1.13#10c11a4bfe073e131ed399d5c4f2e075",
- "yaml-cpp/0.7.0#9c87b3998de893cf2e5a08ad09a7a6e0",
- "marisa/0.2.6#68446854f5a420672d21f21191f8e5af",
- "zlib/1.2.13#df233e6bed99052f285331b9f54d9070",
- "libcurl/7.86.0#bbc887fae3341b3cb776c601f814df05",
- "glog/0.6.0#d22ebf9111fed68de86b0fa6bf6f9c3f",
- "fmt/9.1.0#95259249fb7ef8c6b5674a40b00abba3",
- "gflags/2.2.2#b15c28c567c7ade7449cf994168a559f",
- "double-conversion/3.2.1#640e35791a4bac95b0545e2f54b7aceb",
- "libevent/2.1.12#4fd19d10d3bed63b3a8952c923454bc0",
- "libdwarf/20191104#7f56c6c7ccda5fadf5f28351d35d7c01",
- "libiberty/9.1.0#3060045a116b0fff6d4937b0fc9cfc0e",
- "libsodium/cci.20220430#7429a9e5351cc67bea3537229921714d",
- "xsimd/9.0.1#ac9fd02a381698c4e08c5c4ca03b73e1",
- "xz_utils/5.4.0#a6d90890193dc851fa0d470163271c7a",
- "prometheus-cpp/1.1.0#ea9b101cb785943adb40ad82eda7856c",
- "re2/20230301#f8efaf45f98d0193cd0b2ea08b6b4060",
- "folly/2023.10.30.08@milvus/dev#81d7729cd4013a1b708af3340a3b04d9",
- "google-cloud-cpp/2.5.0@milvus/2.4#c5591ab30b26b53ea6068af6f07128d3",
- "opentelemetry-cpp/1.8.1.1@milvus/2.4#7345034855d593047826b0c74d9a0ced",
- "librdkafka/1.9.1#e24dcbb0a1684dcf5a56d8d0692ceef3",
- "abseil/20230125.3#dad7cc4c83bbd44c1f1cc9cc4d97ac88",
"roaring/3.0.0#25a703f80eda0764a31ef939229e202d",
- "grpc/1.50.1@milvus/dev#75103960d1cac300cf425ccfccceac08",
- "rapidjson/cci.20230929#624c0094d741e6a3749d2e44d834b96c"
)
- generators = ("cmake", "cmake_find_package")
- default_options = {
- "libevent:shared": True,
- "double-conversion:shared": True,
- "folly:shared": True,
- "librdkafka:shared": True,
- "librdkafka:zstd": True,
- "librdkafka:ssl": True,
- "librdkafka:sasl": True,
- "rocksdb:shared": True,
- "rocksdb:with_zstd": True,
- "arrow:filesystem_layer": True,
- "arrow:parquet": True,
- "arrow:compute": True,
- "arrow:with_re2": True,
- "arrow:with_zstd": True,
- "arrow:with_boost": True,
- "arrow:with_thrift": True,
- "arrow:with_jemalloc": True,
- "arrow:shared": False,
- "arrow:with_s3": True,
- "aws-sdk-cpp:config": True,
- "aws-sdk-cpp:text-to-speech": False,
- "aws-sdk-cpp:transfer": False,
- "gtest:build_gmock": False,
- "boost:without_locale": False,
- "glog:with_gflags": True,
- "glog:shared": True,
- "prometheus-cpp:with_pull": False,
- "fmt:header_only": True,
- "onetbb:tbbmalloc": False,
- "onetbb:tbbproxy": False,
- }
+ generators = ("CMakeDeps", "CMakeToolchain")
def configure(self):
if self.settings.arch not in ("x86_64", "x86"):
--
2.43.0