aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbugaevskiy <bugaevskiy@yandex-team.com>2022-07-27 21:28:06 +0300
committerbugaevskiy <bugaevskiy@yandex-team.com>2022-07-27 21:28:06 +0300
commit1c4ba5fd283d0450ae330335957c84bb1d6f779f (patch)
treeed3e4ee1bdfe85c064992ee95a915a51be8a14b7
parent560e255bda77be9fcc7ea91e81a7d61dd4842412 (diff)
downloadydb-1c4ba5fd283d0450ae330335957c84bb1d6f779f.tar.gz
Reimport boost/system as a separate project
-rw-r--r--CMakeLists.darwin.txt2
-rw-r--r--CMakeLists.linux.txt2
-rw-r--r--contrib/restricted/boost/boost/system/cygwin_error.hpp56
-rw-r--r--contrib/restricted/boost/boost/system/linux_error.hpp110
-rw-r--r--contrib/restricted/boost/boost/system/windows_error.hpp128
-rw-r--r--contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt1
-rw-r--r--contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt1
-rw-r--r--contrib/restricted/boost/libs/filesystem/CMakeLists.darwin.txt2
-rw-r--r--contrib/restricted/boost/libs/filesystem/CMakeLists.linux.txt2
-rw-r--r--contrib/restricted/boost/libs/system/CMakeLists.darwin.txt39
-rw-r--r--contrib/restricted/boost/libs/system/CMakeLists.linux.txt38
-rw-r--r--contrib/restricted/boost/libs/system/CMakeLists.txt13
-rw-r--r--contrib/restricted/boost/libs/thread/CMakeLists.darwin.txt2
-rw-r--r--contrib/restricted/boost/libs/thread/CMakeLists.linux.txt2
-rw-r--r--contrib/restricted/boost/system/CMakeLists.txt25
-rw-r--r--contrib/restricted/boost/system/include/boost/cerrno.hpp (renamed from contrib/restricted/boost/boost/cerrno.hpp)0
-rw-r--r--contrib/restricted/boost/system/include/boost/system/api_config.hpp (renamed from contrib/restricted/boost/boost/system/api_config.hpp)0
-rw-r--r--contrib/restricted/boost/system/include/boost/system/config.hpp (renamed from contrib/restricted/boost/boost/system/config.hpp)0
-rw-r--r--contrib/restricted/boost/system/include/boost/system/detail/error_code.ipp (renamed from contrib/restricted/boost/boost/system/detail/error_code.ipp)0
-rw-r--r--contrib/restricted/boost/system/include/boost/system/detail/local_free_on_destruction.hpp (renamed from contrib/restricted/boost/boost/system/detail/local_free_on_destruction.hpp)0
-rw-r--r--contrib/restricted/boost/system/include/boost/system/error_code.hpp (renamed from contrib/restricted/boost/boost/system/error_code.hpp)0
-rw-r--r--contrib/restricted/boost/system/include/boost/system/system_error.hpp (renamed from contrib/restricted/boost/boost/system/system_error.hpp)0
-rw-r--r--contrib/restricted/boost/system/src/error_code.cpp (renamed from contrib/restricted/boost/libs/system/src/error_code.cpp)0
-rw-r--r--contrib/restricted/thrift/CMakeLists.txt2
24 files changed, 34 insertions, 391 deletions
diff --git a/CMakeLists.darwin.txt b/CMakeLists.darwin.txt
index 5b6701f21d4..7c562c5e31f 100644
--- a/CMakeLists.darwin.txt
+++ b/CMakeLists.darwin.txt
@@ -161,7 +161,7 @@ add_subdirectory(contrib/libs/libevent/event_core)
add_subdirectory(contrib/libs/libevent/event_extra)
add_subdirectory(contrib/libs/libevent/event_openssl)
add_subdirectory(contrib/libs/libevent/event_thread)
-add_subdirectory(contrib/restricted/boost/libs/system)
+add_subdirectory(contrib/restricted/boost/system)
add_subdirectory(contrib/restricted/boost/libs/thread)
add_subdirectory(contrib/restricted/boost/libs/chrono)
add_subdirectory(contrib/restricted/uriparser)
diff --git a/CMakeLists.linux.txt b/CMakeLists.linux.txt
index c6dc5e44647..cbb113504ac 100644
--- a/CMakeLists.linux.txt
+++ b/CMakeLists.linux.txt
@@ -239,7 +239,7 @@ add_subdirectory(contrib/libs/libevent/event_core)
add_subdirectory(contrib/libs/libevent/event_extra)
add_subdirectory(contrib/libs/libevent/event_openssl)
add_subdirectory(contrib/libs/libevent/event_thread)
-add_subdirectory(contrib/restricted/boost/libs/system)
+add_subdirectory(contrib/restricted/boost/system)
add_subdirectory(contrib/restricted/boost/libs/thread)
add_subdirectory(contrib/restricted/boost/libs/chrono)
add_subdirectory(contrib/restricted/uriparser)
diff --git a/contrib/restricted/boost/boost/system/cygwin_error.hpp b/contrib/restricted/boost/boost/system/cygwin_error.hpp
deleted file mode 100644
index 4f91cf3d730..00000000000
--- a/contrib/restricted/boost/boost/system/cygwin_error.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// boost/system/cygwin_error.hpp -------------------------------------------//
-
-// Copyright Beman Dawes 2007
-
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
-// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-// See library home page at http://www.boost.org/libs/system
-
-#ifndef BOOST_SYSTEM_CYGWIN_ERROR_HPP
-#define BOOST_SYSTEM_CYGWIN_ERROR_HPP
-
-// This header is effectively empty for compiles on operating systems where
-// it is not applicable.
-
-# ifdef __CYGWIN__
-
-#include <boost/system/error_code.hpp>
-
-namespace boost
-{
- namespace system
- {
- // To construct an error_code after a API error:
- //
- // error_code( errno, system_category() )
-
- // User code should use the portable "posix" enums for POSIX errors; this
- // allows such code to be portable to non-POSIX systems. For the non-POSIX
- // errno values that POSIX-based systems typically provide in addition to
- // POSIX values, use the system specific enums below.
-
- namespace cygwin_error
- {
- enum cygwin_errno
- {
- no_net = ENONET,
- no_package = ENOPKG,
- no_share = ENOSHARE
- };
- } // namespace cygwin_error
-
- template<> struct is_error_code_enum<cygwin_error::cygwin_errno>
- { static const bool value = true; };
-
- namespace cygwin_error
- {
- inline error_code make_error_code( cygwin_errno e )
- { return error_code( e, system_category() ); }
- }
- }
-}
-
-#endif // __CYGWIN__
-
-#endif // BOOST_SYSTEM_CYGWIN_ERROR_HPP
diff --git a/contrib/restricted/boost/boost/system/linux_error.hpp b/contrib/restricted/boost/boost/system/linux_error.hpp
deleted file mode 100644
index d02ce29135f..00000000000
--- a/contrib/restricted/boost/boost/system/linux_error.hpp
+++ /dev/null
@@ -1,110 +0,0 @@
-// boost/system/linux_error.hpp -------------------------------------------//
-
-// Copyright Beman Dawes 2007
-
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
-// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-// See library home page at http://www.boost.org/libs/system
-
-#ifndef BOOST_SYSTEM_LINUX_ERROR_HPP
-#define BOOST_SYSTEM_LINUX_ERROR_HPP
-
-// This header is effectively empty for compiles on operating systems where
-// it is not applicable.
-
-#if defined(linux) || defined(__linux) || defined(__linux__)
-
-#include <boost/system/error_code.hpp>
-
-namespace boost
-{
- namespace system
- {
- // To construct an error_code after a API error:
- //
- // error_code( errno, system_category() )
-
- // User code should use the portable "posix" enums for POSIX errors; this
- // allows such code to be portable to non-POSIX systems. For the non-POSIX
- // errno values that POSIX-based systems typically provide in addition to
- // POSIX values, use the system specific enums below.
-
- namespace linux_error
- {
- enum linux_errno
- {
- advertise_error = EADV,
- bad_exchange = EBADE,
- bad_file_number = EBADFD,
- bad_font_format = EBFONT,
- bad_request_code = EBADRQC,
- bad_request_descriptor = EBADR,
- bad_slot = EBADSLT,
- channel_range = ECHRNG,
- communication_error = ECOMM,
- dot_dot_error = EDOTDOT,
- exchange_full = EXFULL,
- host_down = EHOSTDOWN,
- is_named_file_type= EISNAM,
- key_expired = EKEYEXPIRED,
- key_rejected = EKEYREJECTED,
- key_revoked = EKEYREVOKED,
- level2_halt= EL2HLT,
- level2_no_syncronized= EL2NSYNC,
- level3_halt = EL3HLT,
- level3_reset = EL3RST,
- link_range = ELNRNG,
- medium_type = EMEDIUMTYPE,
- no_anode= ENOANO,
- no_block_device = ENOTBLK,
- no_csi = ENOCSI,
- no_key = ENOKEY,
- no_medium = ENOMEDIUM,
- no_network = ENONET,
- no_package = ENOPKG,
- not_avail = ENAVAIL,
- not_named_file_type= ENOTNAM,
- not_recoverable = ENOTRECOVERABLE,
- not_unique = ENOTUNIQ,
- owner_dead = EOWNERDEAD,
- protocol_no_supported = EPFNOSUPPORT,
- remote_address_changed = EREMCHG,
- remote_io_error = EREMOTEIO,
- remote_object = EREMOTE,
- restart_needed = ERESTART,
- shared_library_access = ELIBACC,
- shared_library_bad = ELIBBAD,
- shared_library_execute = ELIBEXEC,
- shared_library_max_ = ELIBMAX,
- shared_library_section= ELIBSCN,
- shutdown = ESHUTDOWN,
- socket_type_not_supported = ESOCKTNOSUPPORT,
- srmount_error = ESRMNT,
- stream_pipe_error = ESTRPIPE,
- too_many_references = ETOOMANYREFS,
- too_many_users = EUSERS,
- unattached = EUNATCH,
- unclean = EUCLEAN
- };
- } // namespace linux_error
-
-# ifdef BOOST_SYSTEM_ENABLE_DEPRECATED
- namespace Linux = linux_error;
-# endif
-
- template<> struct is_error_code_enum<linux_error::linux_errno>
- { static const bool value = true; };
-
- namespace linux_error
- {
- inline error_code make_error_code( linux_errno e )
- { return error_code( e, system_category() ); }
- }
-
- } // namespace system
-} // namespace boost
-
-#endif // Linux
-
-#endif // BOOST_SYSTEM_LINUX_ERROR_HPP
diff --git a/contrib/restricted/boost/boost/system/windows_error.hpp b/contrib/restricted/boost/boost/system/windows_error.hpp
deleted file mode 100644
index 983436f0521..00000000000
--- a/contrib/restricted/boost/boost/system/windows_error.hpp
+++ /dev/null
@@ -1,128 +0,0 @@
-// boost/system/windows_error.hpp ------------------------------------------//
-
-// Copyright Beman Dawes 2007
-
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
-// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-// See library home page at http://www.boost.org/libs/system
-
-#ifndef BOOST_SYSTEM_WINDOWS_ERROR_HPP
-#define BOOST_SYSTEM_WINDOWS_ERROR_HPP
-
-// This header is effectively empty for compiles on operating systems where
-// it is not applicable.
-
-#include <boost/system/config.hpp>
-
-#ifdef BOOST_WINDOWS_API
-
-#include <boost/system/error_code.hpp>
-
-//// Neither MinGW or Cygwin versions of winerror.h work if used alone, so on
-//// either of those platforms include the full windows.h
-//
-//#if defined(__MINGW32__) || defined(__CYGWIN__)
-//#include <windows.h>
-//#else
-//#include <winerror.h>
-//#endif
-
-#include <boost/winapi/error_codes.hpp>
-
-namespace boost
-{
- namespace system
- {
-
- // Microsoft Windows ---------------------------------------------------//
-
- // To construct an error_code after a API error:
- //
- // error_code( ::GetLastError(), system_category() )
-
- namespace windows_error
- {
- enum windows_error_code
- {
- success = 0,
- // These names and values are based on Windows winerror.h
- invalid_function = boost::winapi::ERROR_INVALID_FUNCTION_,
- file_not_found = boost::winapi::ERROR_FILE_NOT_FOUND_,
- path_not_found = boost::winapi::ERROR_PATH_NOT_FOUND_,
- too_many_open_files = boost::winapi::ERROR_TOO_MANY_OPEN_FILES_,
- access_denied = boost::winapi::ERROR_ACCESS_DENIED_,
- invalid_handle = boost::winapi::ERROR_INVALID_HANDLE_,
- arena_trashed = boost::winapi::ERROR_ARENA_TRASHED_,
- not_enough_memory = boost::winapi::ERROR_NOT_ENOUGH_MEMORY_,
- invalid_block = boost::winapi::ERROR_INVALID_BLOCK_,
- bad_environment = boost::winapi::ERROR_BAD_ENVIRONMENT_,
- bad_format = boost::winapi::ERROR_BAD_FORMAT_,
- invalid_access = boost::winapi::ERROR_INVALID_ACCESS_,
- outofmemory = boost::winapi::ERROR_OUTOFMEMORY_,
- invalid_drive = boost::winapi::ERROR_INVALID_DRIVE_,
- current_directory = boost::winapi::ERROR_CURRENT_DIRECTORY_,
- not_same_device = boost::winapi::ERROR_NOT_SAME_DEVICE_,
- no_more_files = boost::winapi::ERROR_NO_MORE_FILES_,
- write_protect = boost::winapi::ERROR_WRITE_PROTECT_,
- bad_unit = boost::winapi::ERROR_BAD_UNIT_,
- not_ready = boost::winapi::ERROR_NOT_READY_,
- bad_command = boost::winapi::ERROR_BAD_COMMAND_,
- crc = boost::winapi::ERROR_CRC_,
- bad_length = boost::winapi::ERROR_BAD_LENGTH_,
- seek = boost::winapi::ERROR_SEEK_,
- not_dos_disk = boost::winapi::ERROR_NOT_DOS_DISK_,
- sector_not_found = boost::winapi::ERROR_SECTOR_NOT_FOUND_,
- out_of_paper = boost::winapi::ERROR_OUT_OF_PAPER_,
- write_fault = boost::winapi::ERROR_WRITE_FAULT_,
- read_fault = boost::winapi::ERROR_READ_FAULT_,
- gen_failure = boost::winapi::ERROR_GEN_FAILURE_,
- sharing_violation = boost::winapi::ERROR_SHARING_VIOLATION_,
- lock_violation = boost::winapi::ERROR_LOCK_VIOLATION_,
- wrong_disk = boost::winapi::ERROR_WRONG_DISK_,
- sharing_buffer_exceeded = boost::winapi::ERROR_SHARING_BUFFER_EXCEEDED_,
- handle_eof = boost::winapi::ERROR_HANDLE_EOF_,
- handle_disk_full= boost::winapi::ERROR_HANDLE_DISK_FULL_,
- rem_not_list = boost::winapi::ERROR_REM_NOT_LIST_,
- dup_name = boost::winapi::ERROR_DUP_NAME_,
- bad_net_path = boost::winapi::ERROR_BAD_NETPATH_,
- network_busy = boost::winapi::ERROR_NETWORK_BUSY_,
- // ...
- file_exists = boost::winapi::ERROR_FILE_EXISTS_,
- cannot_make = boost::winapi::ERROR_CANNOT_MAKE_,
- // ...
- broken_pipe = boost::winapi::ERROR_BROKEN_PIPE_,
- open_failed = boost::winapi::ERROR_OPEN_FAILED_,
- buffer_overflow = boost::winapi::ERROR_BUFFER_OVERFLOW_,
- disk_full= boost::winapi::ERROR_DISK_FULL_,
- // ...
- lock_failed = boost::winapi::ERROR_LOCK_FAILED_,
- busy = boost::winapi::ERROR_BUSY_,
- cancel_violation = boost::winapi::ERROR_CANCEL_VIOLATION_,
- already_exists = boost::winapi::ERROR_ALREADY_EXISTS_
- // ...
-
- // TODO: add more Windows errors
- };
-
- } // namespace windows
-
-# ifdef BOOST_SYSTEM_ENABLE_DEPRECATED
- namespace windows = windows_error;
-# endif
-
- template<> struct is_error_code_enum<windows_error::windows_error_code>
- { static const bool value = true; };
-
- namespace windows_error
- {
- inline error_code make_error_code( windows_error_code e )
- { return error_code( e, system_category() ); }
- }
-
- } // namespace system
-} // namespace boost
-
-#endif // BOOST_WINDOWS_API
-
-#endif // BOOST_SYSTEM_WINDOWS_ERROR_HPP
diff --git a/contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt b/contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt
index 7f4d635bcea..66885bfd756 100644
--- a/contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt
+++ b/contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt
@@ -33,6 +33,7 @@ target_compile_options(boost-libs-chrono PRIVATE
target_link_libraries(boost-libs-chrono PUBLIC
contrib-libs-cxxsupp
contrib-restricted-boost
+ restricted-boost-system
)
target_sources(boost-libs-chrono PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/chrono/src/chrono.cpp
diff --git a/contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt b/contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt
index 0945206d10a..1004f03fef9 100644
--- a/contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt
+++ b/contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt
@@ -32,6 +32,7 @@ target_compile_options(boost-libs-chrono PRIVATE
target_link_libraries(boost-libs-chrono PUBLIC
contrib-libs-cxxsupp
contrib-restricted-boost
+ restricted-boost-system
)
target_sources(boost-libs-chrono PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/chrono/src/chrono.cpp
diff --git a/contrib/restricted/boost/libs/filesystem/CMakeLists.darwin.txt b/contrib/restricted/boost/libs/filesystem/CMakeLists.darwin.txt
index 56946959bf5..21e5971cb52 100644
--- a/contrib/restricted/boost/libs/filesystem/CMakeLists.darwin.txt
+++ b/contrib/restricted/boost/libs/filesystem/CMakeLists.darwin.txt
@@ -34,7 +34,7 @@ target_compile_options(boost-libs-filesystem PRIVATE
target_link_libraries(boost-libs-filesystem PUBLIC
contrib-libs-cxxsupp
contrib-restricted-boost
- boost-libs-system
+ restricted-boost-system
)
target_sources(boost-libs-filesystem PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/filesystem/src/codecvt_error_category.cpp
diff --git a/contrib/restricted/boost/libs/filesystem/CMakeLists.linux.txt b/contrib/restricted/boost/libs/filesystem/CMakeLists.linux.txt
index a43f47ce488..ffde8c638e3 100644
--- a/contrib/restricted/boost/libs/filesystem/CMakeLists.linux.txt
+++ b/contrib/restricted/boost/libs/filesystem/CMakeLists.linux.txt
@@ -33,7 +33,7 @@ target_compile_options(boost-libs-filesystem PRIVATE
target_link_libraries(boost-libs-filesystem PUBLIC
contrib-libs-cxxsupp
contrib-restricted-boost
- boost-libs-system
+ restricted-boost-system
)
target_sources(boost-libs-filesystem PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/filesystem/src/codecvt_error_category.cpp
diff --git a/contrib/restricted/boost/libs/system/CMakeLists.darwin.txt b/contrib/restricted/boost/libs/system/CMakeLists.darwin.txt
deleted file mode 100644
index 9f2c4796427..00000000000
--- a/contrib/restricted/boost/libs/system/CMakeLists.darwin.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-
-# This file was gererated by the build system used internally in the Yandex monorepo.
-# Only simple modifications are allowed (adding source-files to targets, adding simple properties
-# like target_include_directories). These modifications will be ported to original
-# ya.make files by maintainers. Any complex modifications which can't be ported back to the
-# original buildsystem will not be accepted.
-
-
-
-add_library(boost-libs-system)
-target_compile_options(boost-libs-system PRIVATE
- -DBOOST_ATOMIC_STATIC_LINK=1
- -DBOOST_All_STATIC_LINK=1
- -DBOOST_CHRONO_STATIC_LINK=1
- -DBOOST_SYSTEM_STATIC_LINK=1
- -DBOOST_TIMER_STATIC_LINK=1
- -DBOOST_ALL_NO_LIB=1
- -DBOOST_ATOMIC_SOURCE
- -DBOOST_COROUTINES_SOURCE
- -DBOOST_DISABLE_ASSERTS
- -DBOOST_SPIRIT_USE_PHOENIX_V3=1
- -DBOOST_SYSTEM_NO_DEPRECATED
- -DBOOST_THREAD_BUILD_LIB=1
- -DBOOST_THREAD_DONT_USE_CHRONO=1
- -DBOOST_THREAD_NO_LIB=1
- -DBOOST_THREAD_USE_LIB=1
- -DDATE_TIME_INLINE
- -DBOOST_THREAD_DONT_USE_CHRONO
- -DBOOST_THREAD_POSIX
- -D_DARWIN_C_SOURCE=1
- -Wno-everything
-)
-target_link_libraries(boost-libs-system PUBLIC
- contrib-libs-cxxsupp
- contrib-restricted-boost
-)
-target_sources(boost-libs-system PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/system/src/error_code.cpp
-)
diff --git a/contrib/restricted/boost/libs/system/CMakeLists.linux.txt b/contrib/restricted/boost/libs/system/CMakeLists.linux.txt
deleted file mode 100644
index 0782ed47f39..00000000000
--- a/contrib/restricted/boost/libs/system/CMakeLists.linux.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-
-# This file was gererated by the build system used internally in the Yandex monorepo.
-# Only simple modifications are allowed (adding source-files to targets, adding simple properties
-# like target_include_directories). These modifications will be ported to original
-# ya.make files by maintainers. Any complex modifications which can't be ported back to the
-# original buildsystem will not be accepted.
-
-
-
-add_library(boost-libs-system)
-target_compile_options(boost-libs-system PRIVATE
- -DBOOST_ATOMIC_STATIC_LINK=1
- -DBOOST_All_STATIC_LINK=1
- -DBOOST_CHRONO_STATIC_LINK=1
- -DBOOST_SYSTEM_STATIC_LINK=1
- -DBOOST_TIMER_STATIC_LINK=1
- -DBOOST_ALL_NO_LIB=1
- -DBOOST_ATOMIC_SOURCE
- -DBOOST_COROUTINES_SOURCE
- -DBOOST_DISABLE_ASSERTS
- -DBOOST_SPIRIT_USE_PHOENIX_V3=1
- -DBOOST_SYSTEM_NO_DEPRECATED
- -DBOOST_THREAD_BUILD_LIB=1
- -DBOOST_THREAD_DONT_USE_CHRONO=1
- -DBOOST_THREAD_NO_LIB=1
- -DBOOST_THREAD_USE_LIB=1
- -DDATE_TIME_INLINE
- -DBOOST_THREAD_DONT_USE_CHRONO
- -DBOOST_THREAD_POSIX
- -Wno-everything
-)
-target_link_libraries(boost-libs-system PUBLIC
- contrib-libs-cxxsupp
- contrib-restricted-boost
-)
-target_sources(boost-libs-system PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/system/src/error_code.cpp
-)
diff --git a/contrib/restricted/boost/libs/system/CMakeLists.txt b/contrib/restricted/boost/libs/system/CMakeLists.txt
deleted file mode 100644
index fc7b1ee73ce..00000000000
--- a/contrib/restricted/boost/libs/system/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-
-# This file was gererated by the build system used internally in the Yandex monorepo.
-# Only simple modifications are allowed (adding source-files to targets, adding simple properties
-# like target_include_directories). These modifications will be ported to original
-# ya.make files by maintainers. Any complex modifications which can't be ported back to the
-# original buildsystem will not be accepted.
-
-
-if (APPLE)
- include(CMakeLists.darwin.txt)
-elseif (UNIX AND NOT APPLE)
- include(CMakeLists.linux.txt)
-endif()
diff --git a/contrib/restricted/boost/libs/thread/CMakeLists.darwin.txt b/contrib/restricted/boost/libs/thread/CMakeLists.darwin.txt
index cf9bd63bf4c..080daee8c2e 100644
--- a/contrib/restricted/boost/libs/thread/CMakeLists.darwin.txt
+++ b/contrib/restricted/boost/libs/thread/CMakeLists.darwin.txt
@@ -34,7 +34,7 @@ target_link_libraries(boost-libs-thread PUBLIC
contrib-libs-cxxsupp
contrib-restricted-boost
boost-libs-chrono
- boost-libs-system
+ restricted-boost-system
)
target_sources(boost-libs-thread PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/thread/src/pthread/once.cpp
diff --git a/contrib/restricted/boost/libs/thread/CMakeLists.linux.txt b/contrib/restricted/boost/libs/thread/CMakeLists.linux.txt
index 10de5114bdb..78a0ade425d 100644
--- a/contrib/restricted/boost/libs/thread/CMakeLists.linux.txt
+++ b/contrib/restricted/boost/libs/thread/CMakeLists.linux.txt
@@ -33,7 +33,7 @@ target_link_libraries(boost-libs-thread PUBLIC
contrib-libs-cxxsupp
contrib-restricted-boost
boost-libs-chrono
- boost-libs-system
+ restricted-boost-system
)
target_sources(boost-libs-thread PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/thread/src/pthread/once.cpp
diff --git a/contrib/restricted/boost/system/CMakeLists.txt b/contrib/restricted/boost/system/CMakeLists.txt
new file mode 100644
index 00000000000..8e7aebba394
--- /dev/null
+++ b/contrib/restricted/boost/system/CMakeLists.txt
@@ -0,0 +1,25 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(restricted-boost-system)
+target_include_directories(restricted-boost-system PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/system/include
+)
+target_link_libraries(restricted-boost-system PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ restricted-boost-assert
+ restricted-boost-config
+ restricted-boost-core
+ restricted-boost-predef
+ restricted-boost-winapi
+)
+target_sources(restricted-boost-system PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/system/src/error_code.cpp
+)
diff --git a/contrib/restricted/boost/boost/cerrno.hpp b/contrib/restricted/boost/system/include/boost/cerrno.hpp
index 57278f5ceed..57278f5ceed 100644
--- a/contrib/restricted/boost/boost/cerrno.hpp
+++ b/contrib/restricted/boost/system/include/boost/cerrno.hpp
diff --git a/contrib/restricted/boost/boost/system/api_config.hpp b/contrib/restricted/boost/system/include/boost/system/api_config.hpp
index 28b8bece4cc..28b8bece4cc 100644
--- a/contrib/restricted/boost/boost/system/api_config.hpp
+++ b/contrib/restricted/boost/system/include/boost/system/api_config.hpp
diff --git a/contrib/restricted/boost/boost/system/config.hpp b/contrib/restricted/boost/system/include/boost/system/config.hpp
index 14faa634207..14faa634207 100644
--- a/contrib/restricted/boost/boost/system/config.hpp
+++ b/contrib/restricted/boost/system/include/boost/system/config.hpp
diff --git a/contrib/restricted/boost/boost/system/detail/error_code.ipp b/contrib/restricted/boost/system/include/boost/system/detail/error_code.ipp
index f3d67b9c441..f3d67b9c441 100644
--- a/contrib/restricted/boost/boost/system/detail/error_code.ipp
+++ b/contrib/restricted/boost/system/include/boost/system/detail/error_code.ipp
diff --git a/contrib/restricted/boost/boost/system/detail/local_free_on_destruction.hpp b/contrib/restricted/boost/system/include/boost/system/detail/local_free_on_destruction.hpp
index 9016e7402d1..9016e7402d1 100644
--- a/contrib/restricted/boost/boost/system/detail/local_free_on_destruction.hpp
+++ b/contrib/restricted/boost/system/include/boost/system/detail/local_free_on_destruction.hpp
diff --git a/contrib/restricted/boost/boost/system/error_code.hpp b/contrib/restricted/boost/system/include/boost/system/error_code.hpp
index f31155d61f4..f31155d61f4 100644
--- a/contrib/restricted/boost/boost/system/error_code.hpp
+++ b/contrib/restricted/boost/system/include/boost/system/error_code.hpp
diff --git a/contrib/restricted/boost/boost/system/system_error.hpp b/contrib/restricted/boost/system/include/boost/system/system_error.hpp
index c5e7e402bac..c5e7e402bac 100644
--- a/contrib/restricted/boost/boost/system/system_error.hpp
+++ b/contrib/restricted/boost/system/include/boost/system/system_error.hpp
diff --git a/contrib/restricted/boost/libs/system/src/error_code.cpp b/contrib/restricted/boost/system/src/error_code.cpp
index aa628ab304c..aa628ab304c 100644
--- a/contrib/restricted/boost/libs/system/src/error_code.cpp
+++ b/contrib/restricted/boost/system/src/error_code.cpp
diff --git a/contrib/restricted/thrift/CMakeLists.txt b/contrib/restricted/thrift/CMakeLists.txt
index d3b06de5bbe..53b2ff3c159 100644
--- a/contrib/restricted/thrift/CMakeLists.txt
+++ b/contrib/restricted/thrift/CMakeLists.txt
@@ -27,7 +27,7 @@ target_link_libraries(contrib-restricted-thrift PUBLIC
OpenSSL::OpenSSL
ZLIB::ZLIB
contrib-restricted-boost
- boost-libs-system
+ restricted-boost-system
boost-libs-thread
)
target_sources(contrib-restricted-thrift PRIVATE