File onnxruntime-system-abseil.patch of Package onnxruntime

diff --git a/cmake/external/abseil-cpp.cmake b/cmake/external/abseil-cpp.cmake
index 32237246..c1f5a195 100644
--- a/cmake/external/abseil-cpp.cmake
+++ b/cmake/external/abseil-cpp.cmake
@@ -1,44 +1,9 @@
 # Copyright (c) Microsoft Corporation. All rights reserved.
 # Licensed under the MIT License.
 
-include(FetchContent)
+find_package(absl REQUIRED)
+message(STATUS "Abseil version:" ${abseil_cpp_VERSION})
 
-# Pass to build
-set(ABSL_PROPAGATE_CXX_STD 1)
-set(BUILD_TESTING 0)
-set(ABSL_BUILD_TESTING OFF)
-set(ABSL_BUILD_TEST_HELPERS OFF)
-set(ABSL_USE_EXTERNAL_GOOGLETEST ON)
-if(Patch_FOUND AND WIN32)
-  set(ABSL_PATCH_COMMAND ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/abseil/absl_windows.patch)
-else()
-  set(ABSL_PATCH_COMMAND "")
-endif()
-if(WIN32 AND NOT Patch_FOUND)
-  #see https://github.com/google/re2/issues/425 and https://github.com/google/re2/issues/436
-  set(ABSL_ENABLE_INSTALL ON)
-endif()
-# NB! Advancing Abseil version changes its internal namespace,
-# currently absl::lts_20240116 which affects abseil-cpp.natvis debugger
-# visualization file, that must be adjusted accordingly, unless we eliminate
-# that namespace at build time.
-FetchContent_Declare(
-    abseil_cpp
-    URL ${DEP_URL_abseil_cpp}
-    URL_HASH SHA1=${DEP_SHA1_abseil_cpp}
-    PATCH_COMMAND ${ABSL_PATCH_COMMAND}
-    FIND_PACKAGE_ARGS 20240116 NAMES absl
-)
-
-onnxruntime_fetchcontent_makeavailable(abseil_cpp)
-FetchContent_GetProperties(abseil_cpp)
-set(ABSEIL_SOURCE_DIR ${abseil_cpp_SOURCE_DIR})
-# abseil_cpp_SOURCE_DIR is non-empty if we build it from source
-message(STATUS "Abseil source dir:" ${ABSEIL_SOURCE_DIR})
-# abseil_cpp_VERSION  is non-empty if we find a preinstalled ABSL
-if(abseil_cpp_VERSION)
-  message(STATUS "Abseil version:" ${abseil_cpp_VERSION})
-endif()
 if (GDK_PLATFORM)
   # Abseil considers any partition that is NOT in the WINAPI_PARTITION_APP a viable platform
   # for Win32 symbolize code (which depends on dbghelp.lib); this logic should really be flipped
@@ -75,13 +40,11 @@ absl::demangle_internal
 absl::optional
 absl::stacktrace
 absl::base
-absl::demangle_rust
 absl::bad_optional_access
 absl::strings_internal
 absl::debugging_internal
 absl::int128
 absl::spinlock_wait
-absl::decode_rust_punycode
 absl::raw_logging_internal
 absl::flat_hash_set
 absl::flat_hash_map
@@ -90,18 +53,15 @@ absl::node_hash_set
 absl::compare
 absl::base_internal
 absl::nullability
-absl::bounded_utf8_length_sequence
 absl::log_severity
 absl::type_traits
 absl::atomic_hook
 absl::bits
 absl::flags_commandlineflag_internal
-absl::hash_container_defaults
 absl::numeric_representation
 absl::node_slot_policy
 absl::core_headers
 absl::dynamic_annotations
-absl::utf8_for_code_point
 absl::errno_saver
 absl::absl_check
 absl::hash_function_defaults
openSUSE Build Service is sponsored by