head 1.7; access; symbols pkgsrc-2023Q4:1.7.0.18 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.16 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.14 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.12 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.10 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.8 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.6 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.4 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.2 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.6.0.28 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.26 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.24 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.22 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.20 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.18 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.14 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.16 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.12 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.10 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.8 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.6 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.4 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.2 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.4.0.2 pkgsrc-2018Q1-base:1.4 pkgsrc-2015Q1:1.1.0.12 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.10 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.8 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.6 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.4 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.2 pkgsrc-2013Q4-base:1.1; locks; strict; comment @// @; 1.7 date 2021.09.29.16.11.04; author adam; state Exp; branches; next 1.6; commitid T3fm8I7swMBTSRaD; 1.6 date 2018.04.30.00.21.12; author ryoon; state Exp; branches; next 1.5; commitid n3HbY7YSv9hmKoAA; 1.5 date 2018.04.29.20.41.11; author adam; state dead; branches; next 1.4; commitid c7MgntSspmedwnAA; 1.4 date 2018.01.04.10.25.35; author maya; state Exp; branches; next 1.3; commitid ruWmL6be1WaCOxlA; 1.3 date 2018.01.02.06.39.49; author ryoon; state Exp; branches; next 1.2; commitid CfBzrSMC65VADglA; 1.2 date 2015.04.17.14.04.47; author adam; state dead; branches; next 1.1; commitid JDTHq8j3oFqlWWhy; 1.1 date 2013.11.20.19.17.55; author adam; state Exp; branches; next ; commitid eBEHTpbwsVCja3ex; desc @@ 1.7 log @boost: updated to 1.77.0 1.77.0 New Libraries Describe: A C++14 reflection library, from Peter Dimov. Provides macros for describing enumerators and struct/class members, and primitives for querying this information. Lambda2: A C++14, dependency-free, single header lambda library, from Peter Dimov. Allows simple function objects to be constructed via expressions such as _1 + 5, _1 % 2 == 0, _1 > _2, or _1 == ' ' || _1 == '\t'. Updated Libraries Any: Added boost::anys::basic_any - a data type with customizable Small Object Optimization whose instances can hold instances of any type that satisfies ValueType requirements (many thanks to Ruslan Arutyunyan @@rarutyun). If you are not sure that you really need it, then use boost::any instead. Started using GithubActions CI for additional testing Asio: Added support for cancellation of individual asynchronous operations. Added the associator trait, used to generically forward associators. Changed all asynchronous operations implemented in Asio to invoke their completion handlers as rvalue references. Added support for asynchronous operations with multiple completion signatures. Added operator&& and operator|| for awaitable<>, to allow coroutines to be trivially awaited in parallel. Added the experimental::as_tuple completion token adapter. Added the experimental::append completion token adapter. Added the experimental::prepend completion token adapter. Added the experimental::deferred completion token, whicih allows deferred execution of asynchronous operations. Added the experimental::parallel_group class and experimental::make_parallel_group function. Added experimental::promise, which allows eager execution and synchronisation of asynchronous operations. Added the experimental::coro class template, a C++20 coroutine primitive with the ability to combine both asynchronous waiting (co_await) and yielding (co_yield). Added move assignment to ssl::stream<>. Changed co_spawn to dispatch the coroutine's initial step to the executor. Enabled additional optimisations for any_executor and any_io_executor when used with asynchronous operations. Added the nodiscard attribute to awaitable<>. Increased the number of cached slots in the default recycling allocator. Changed the default allocator behaviour to respect alignment requirements, to support over-aligned types. Ensured the result strings are always initialised in reverse name resolution. Fixed recursive template instantiation issues in use_awaitable_t::executor_with_default. Fixed the any_io_executor equality operators to correctly return a result based on the target executor. Fixed strand<> to avoid using a potentially moved-from executor. Ensured gcc tests are not used for clang when detecting compiler features. Disabled coroutines support for the clang shipped with MSVC. Fixed compatibility with recent LibreSSL when OPENSSL_NO_SSL_INTERN is defined. Fixed posix::basic_stream_descriptor move operations to work with non-defaulted executors. Consult the Revision History for further details. Atomic: Added make_atomic_ref and make_ipc_atomic_ref factory functions for constructing atomic reference objects. Added C++17 template argument deduction guides for atomic_ref and ipc_atomic_ref to allow omitting template arguments when they can be deduced from constructor arguments. Beast: This maintenance update brings minor bug fixes and updated CI reporting. We'd love to know how you or your company use Beast, consider adding an entry to the Companies and Individuals Using Beast list. See the full Release Notes for a complete list of changes. Conversion: boost::implicit_cast is now constexpr. Fixed broken links. Started using GithubActions CI for additional testing Core: boost/core/uncaught_exceptions.hpp has been modified for compatibility with Mac OS 10.4 and older. DLL: More runtime checks for malformed ELFs in boost::dll::library_info In boost::dll::library_info use info from .dynsym ELF section if .symtab is empty or missing List protected ELF symbols in boost::dll::library_info as they are available for import Remove unneeded convert from wchar_t to char on POSIX environment, thanks to Vladislav Shchapov Started using GithubAction CI for additional testing Filesystem: Introducing Boost.Filesystem v4. This new version of the library removes all deprecated features of v3 and also makes a number of breaking API changes intended to make Boost.Filesystem more compatible with std::filesystem introduced in C++17. The differences are described in the release notes and documentation using v3 and v4 tags and are also summarised in a separate section. Users can select Boost.Filesystem version by defining BOOST_FILESYSTEM_VERSION macro to either 3 or 4 when compiling their code. There is no need to separately compile Boost.Filesystem for each library version - a single binary supports both v3 and v4. Users should avoid using both v3 and v4 in the same application as this can lead to subtle bugs. Currently, v3 is the default. In a future release v4 will become the default, and eventually v3 will be removed. v4 is functional, but it is still a work in progress and there may be breaking API changes in the future. v4: path::filename, path::stem and path::extension no longer consider root name or root directory of the path as a filename if the path only consists of those components. For example, on Windows path("C:").filename() used to return "C:" and path("C:\\").filename() used to return "\" and both will return an empty path now. v4: path::stem and path::extension no longer treat a filename that starts with a dot and has no other dots as an extension. Filenames starting with a dot are commonly treated as filenames with an empty extension. The leading dot is used to indicate a hidden file on most UNIX-like systems. New: Improved support for various path prefixes on Windows. Added support for local device prefix ("\\.\") and experimental support for NT path prefix ("\??\"). The prefixes will be included in the root name of a path. Note that using the prefixes with Boost.Filesystem v3 can lead to surprising results (e.g. path("\\\\.\\").stem() == "\\\\"). It is recommended to use the prefixes only with Boost.Filesystem v4. Reworked path::lexically_normal implementation to eliminate some cases of duplicate dot (".") elements in the normalized paths. New: Added runtime detection of the statx and getrandom system calls on Linux. This can be useful if the syscall is present at compile time but fails with ENOSYS at run time (for example, in Docker containers that restrict the syscall, even if available on the host). New: Added support for disabling usage of various system APIs at library build time. This can be useful when a certain API is detected as present by the library configuration scripts but must not be used for some reason (for example, when runtime detection does not work on the target system). See the description of configuration macros in the library documentationfor for more details. New: Added copy_options::synchronize_data and copy_options::synchronize options for the copy_file operation. These options allow to synchronize the written data and attributes with the permanent storage. These options are expensive in terms of performance, but allow to ensure reliability of the copied data. Note that copy_file performed implicit data synchronization on POSIX systems since Boost.Filesystem 1.74.0. This release adds support for more platforms and disables data synchronization by default while allowing the caller to explicitly request it. Added handling of EINTR error code on POSIX systems for some system calls issued internally. In particular, EINTR could have been ignored on close, which on HP-UX would result in a leaked file descriptor. In the copy_file implementations based on Linux sendfile and copy_file_range system calls, added handling of error codes indicating that a particular filesystem does not support the system call and fall back to the generic read/write loop. This should fix copy_file failing on eCryptFS and possibly other filesystems. The copy_file_range system call is now used since Linux kernel 4.5, whereas previously it was only enabled since 5.3. The copy_file implementation will fall back to sendfile or read/write loop if copy_file_range fails to copy a given file across filesystems. The copy_file implementations based on Linux sendfile and copy_file_range system calls will not be used on filesystems that are known to contain files with generated content. These system calls are incompatible with such files, and copying them would result in zero-sized files. The generic read/write loop will be used instead. Currently, the blacklisted filesystems are: procfs, sysfs, tracefs and debugfs. In the copy_file implementation based on read/write loop, increased the maximum size of the buffer used for temporary storage and take into account the target filesystem block size for more optimal performance. On Windows CE, calling current_path to obtain the current path for a process will now fail with an error instead of returning successfully with a root path. This platform does not support current directory. Changing the current path was already failing similarly in previous releases of Boost.Filesystem. In canonical, fixed the check for a symlink referencing a directory above root, if an earlier symlink was resolved to an absolute path with a different root from the original path. In canonical, added a limit for the maximum number of symlinks that can be resolved during the call. The limit is currently at least 40 symlinks. On Windows, canonical and weakly_canonical will now use path::preferred_separator for the root directory separator in the resulting paths. This fixes "file not found" errors caused by Windows API not handling generic separators in UNC paths and paths that start with the Win32 filesystem prefix ("\\?\"). New: Added weakly_canonical overloads taking base path as an argument. On Windows, weakly_canonical no longer fails with an error if the input path contains elements that do not exist in the filesystem but are cancelled by a subsequent dot-dot ("..") element. For example, weakly_canonical("C:\\a\\..") would previously fail if "C:\a" directory did not exist. In read_symlink on Windows, corrected reparse point handling. The operation would return an empty path for some mount points (for example, created by Box cloud storage driver) and directory junction points that had empty print names. The new implementation now parses substitute name of the reparse point and attempts to reconstruct a Win32 path from it. On Windows, file streams provided in boost/filesystem/fstream.hpp will use wide character paths on libc++ versions 7.0 and higher, when the standard library supports opening files with wide character paths. On Windows, creating symlinks should no longer require elevated privileges, if Windows is configured in Developer mode. With some compilers, global objects used internally in Boost.Filesystem are now destroyed after user's global destructors are called. This allows to call Boost.Filesystem methods during the program termination stage. In particular, this concerns the path locale that is used for character code conversion and can be installed by calling path::imbue. The supported compilers include MSVC, GCC and Clang, as well as other compilers that support customizing program initialization order through #pragma section (for MSVC-compatible compilers) or __attribute__ ((init_priority)) (for GCC-compatible compilers). JSON: value_to supports TupleLike types. value_to and value_from support std::array and similar types. Implicit conversion operator from string to std::string_view. std::hash specializations for json types. Fixed allocation errors in object and key_value_pair. Fixed crash when constructing array from a pair of iterators that form an empty range. LexicalCast: Fixed assignment to an int of a floating point value that is out of representable range for int. Started using GithubActions CI for additional testing Log: Fixed compilation for riscv32 target. Mp11: Added mp_intersperse, mp_split, mp_join Multi-index Containers: Maintenance work. PFR: A MurMur Hash based implementation of hash_combine() is now used to reduce collisions count and improve quality of boost::pfr::hash_value() Visual Studio 2017 now supported in C++14 mode (thanks to Denis Mikhailov aka @@denzor200) Issues found by inspect tool were fixed Fixed some warnings, including removal of extra semicolons in include/boost/pfr/detail/fields_count.hpp Added a compile time assert for inherited types (thanks to Denis Mikhailov aka @@denzor200) Reflection of aggregates with non movable fields is now possible if guaranteed copy elision is on Fixed spelling issues Started using GithubActions CI for additional testing PropertyTree: This is a maintenance release. Extend compiler coverage in CI. Fix Boost compatibility for CMakeLists.txt. System: The conversion operator from error_category to std::error_category has been improved and no longer requires or . The comparison operators of error_category are now inline friends instead of member functions (a side effect of the previous change.) error_condition now defers calling generic_category() to avoid instantiating the object until it's actually needed. error_condition::failed and error_condition::message have been undeprecated, and operator bool() now once again returns failed(). The system category now doesn't call generic_category(), to avoid instantiating the object. The return value of default_error_condition changes in some cases into an error_condition from the generic category, instead of from the system category. This happens on POSIX when the input error_code is from the system category and does not correspond to any errc_t value. The interoperability of error_code and std::error_code has been improved substantially. It is now possible to construct boost::system::error_code from std::error_code, and it's possible to pass boost::system::error_code to functions taking std::error_code&. A stream insertion operator for error_condition has been added. Uuid: Added to_chars for writing uuid strings without allocating @ text @$NetBSD: patch-boost_asio_detail_config.hpp,v 1.6 2018/04/30 00:21:12 ryoon Exp $ --- boost/asio/detail/config.hpp.orig 2021-08-05 09:41:11.000000000 +0000 +++ boost/asio/detail/config.hpp @@@@ -1153,7 +1153,9 @@@@ # elif defined(__GNUC__) # if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4) # if (__cplusplus >= 201402) +# if __has_include() # define BOOST_ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1 +# endif // __has_include() # endif // (__cplusplus >= 201402) # endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4) # endif // defined(__GNUC__) @ 1.6 log @Fix devel/boost-libs build on NetBSD Bump PKGREVISION of devel/boost-headers @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- boost/asio/detail/config.hpp.orig 2018-04-11 13:49:00.000000000 +0000 d5 2 a6 2 @@@@ -811,7 +811,9 @@@@ # if defined(__GNUC__) @ 1.5 log @boost: updated to 1.67.0 Version 1.67.0: New Libraries: - Contract: Contract programming for C++. - HOF: Higher-order functions for C++. Updated Libraries: - Asio: Added missing const qualifier to basic_socket_acceptor::get_option. Worked around a parsing error that occurs with some versions of gcc. Fixed broken code samples in tutorial. Added new experimental features. (Note that "experimental" features may be changed without notice in subsequent releases.) Added experimental::detached completion token. Added experimental::redirect_error completion token. Added experimental::co_spawn facility for integration with the coroutines technical specification. Updated timeout examples to use latest features. Used asio::steady_timer rather than asio::deadline_timer. Used asio::dynamic_buffer rather than asio::streambuf. Used timed asio::io_context::run_for() function for blocking clients. Added example showing a custom completion token for blocking with timeouts. Fixed unit tests to compile when BOOST_ASIO_NO_DEPRECATED is defined. Changed socket iostreams to use chrono by default, to fix compatibility with the Networking TS. Define BOOST_ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM to enable the old Boost.Date_Time interface in basic_socket_streambuf and basic_socket_iostream. Updated examples to use chrono rather than Boost.Date_Time. Fixed an incorrect member function detector in the is_dynamic_buffer trait. Fixed an async_result incompatibility with deprecated handler_type. Added a missing move optimisation in the SSL stream implementation. Fixed incorrect basic_resolver_results::value_type typedef. Fixed a compile error with some OpenSSL versions when SSL_OP_NO_COMPRESSION is defined. Changed add_certificate_authority to process multiple certificates in a bundle. Eliminated deprecation warning with MSVC by using std::invoke_result rather than std::result_of. Changed to use std::string_view for C++17 or later, and std::experimental::string_view for C++14. Define the preprocessor macro BOOST_ASIO_DISABLE_STD_STRING_VIEW to force the use of std::experimental::string_view (assuming it is available) when compiling in C++17 mode. Ensured DynamicBuffer template arguments are decayed before using in enable_if tests. Changed documentation to distinguish legacy completion handlers (which are still required to be CopyConstructible) from new MoveConstructible handlers. Suppressed a discarded return value warning in the buffer debugging support. Fixed basic_yield_context to work with completion signatures containing reference parameters. Ensured that stackful coroutines launched using spawn() correctly store decayed copies of their function and handler arguments. Fixed some compatibility issues with Android. Added cross-compilation support to Jamfiles. Fixed some minor portability issues in examples. - Atomic: Breaking change: Changed the result of the (op)_and_test operations added in Boost 1.66 to the opposite - the functions now return true if the operation result is non-zero. This is consistent with other test methods in Boost.Atomic and the C++ standard library. Users can define BOOST_ATOMIC_DETAIL_HIGHLIGHT_OP_AND_TEST when compiling their code to emit warnings on every use of the changed functions. This way users can locate the code that needs to be updated. Update for C++2a. On C++11 compilers that support scoped enums, the memory_order enumeration is now scoped and contains constants with shorter names like acquire, release or seq_cst (i.e. users can use memory_order::acquire instead of memory_order_acquire). The old constants are also provided for backward compatibility. (P0439R0) Update for C++2a. Added experimental support for atomic operations on floating point types. In addition to general operations, add, sub, negate operations and their fetch_(op) and opaque_(op) versions are supported. Lock-free property can be tested with the new macros BOOST_ATOMIC_FLOAT/DOUBLE/LONG_DOUBLE_LOCK_FREE. The support for floating point types is optional and can be disabled by defining BOOST_ATOMIC_NO_FLOATING_POINT. (P0020R6) Added new experimental operations: negate_and_test and complement_and_test which perform negation or bitwise complement and return true if the result is not zero. add, sub, negate, bitwise_and, bitwise_or, bitwise_xor, bitwise_complement operations which perform the operation and return its result. For generic atomic specialization, the default constructor is now trivial if T's default constructor is. The internal implementation of atomic has been updated to avoid undefined behavior that stems from signed integer overflows. As required by the C++ standard, the library uses two's complement representation of signed integers internally and accroding rules of overflow. Currently, the library requires the native signed integer types to also use two's complement representation (but no defined overflow semantics). Improved Clang support. In particular, fixed DCAS not being lock-free and fixed possible incorrect code generated on 32-bit x86. Improved MinGW support. For gcc versions up to 4.6, fixed compilation of DCAS on x86. In x86 PIE code, asm blocks now preserve ebx value. - Beast: This version fixes significant defects in websocket::stream which can lead to asserts or undefined behavior. Users are encouraged to update to the latest Boost release. For a complete list of changes, please view the official Release Notes. - ContainerHash: Extracted from the functional module to break a dependency cycle. Moved headers to new location to reflect name change, the old include paths will still work. Added support for std::string_view, std::error_code, std::error_condition, std::optional, std::variant, std::monostate where available. Added explicit support for vector, so that it will work with libc++. More detail in the library change log. - Context: fix i386/macho routines to correctly return transfer_t in EAX/EDX __sanitizer_finish_switch_fiber should be called directly after context switch Clang on Windows : error: No best alternative for libs/context/build/asm_sources fixing C2492 for execution_context (v1) known bug: including all.hpp + ucontext/winfib causes error 'forced_unwind: is not a member of boost::context::detail' More info https://www.boost.org/users/history/version_1_67_0.html @ text @d1 1 a1 1 $NetBSD: patch-boost_asio_detail_config.hpp,v 1.4 2018/01/04 10:25:35 maya Exp $ d3 1 a3 3 Need C++17 for string view. --- boost/asio/detail/config.hpp.orig 2017-12-13 23:56:41.000000000 +0000 d5 1 a5 1 @@@@ -782,8 +782,10 @@@@ d9 1 a9 2 +#if __cplusplus >= 201703L # define BOOST_ASIO_HAS_STD_STRING_VIEW 1 d11 1 a11 1 +#endif d13 1 a13 1 # endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 4) @ 1.4 log @boost: use c++17 as a test for having string view, not NetBSD macro. This changes the package for anyone that used it with C++17 experimental support and now won't get it (we're cutting off at 'actual C++17'). Bump headers PKGREVISION, suggested by joerg. @ text @d1 1 a1 1 $NetBSD: patch-boost_asio_detail_config.hpp,v 1.3 2018/01/02 06:39:49 ryoon Exp $ @ 1.3 log @Fix boost-libs build under NetBSD with GCC @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 * NetBSD has no string_view header files d11 1 a11 1 +#if !defined(__NetBSD__) @ 1.2 log @Changes 1.58.0: * New Libraries: - Endian: Types and conversion functions for correct byte ordering and more regardless of processor endianness. - Sort: Includes spreadsort, a general-case hybrid radix sort that is faster than O(n*log(n)) * Updated Libraries: @ text @d1 1 a1 1 $NetBSD: patch-boost_asio_detail_config.hpp,v 1.1 2013/11/20 19:17:55 adam Exp $ d3 1 a3 1 GCC 4.5.x does not have std:addressof. d5 1 a5 1 --- boost/asio/detail/config.hpp.orig 2013-11-20 17:59:30.000000000 +0000 d7 1 a7 3 @@@@ -333,11 +333,11 @@@@ # define BOOST_ASIO_HAS_STD_ADDRESSOF 1 # endif // defined(BOOST_ASIO_HAS_CLANG_LIBCXX) d9 8 a16 7 -# if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5)) || (__GNUC__ > 4) +# if ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)) || (__GNUC__ > 4) # if defined(__GXX_EXPERIMENTAL_CXX0X__) # define BOOST_ASIO_HAS_STD_ADDRESSOF 1 # endif // defined(__GXX_EXPERIMENTAL_CXX0X__) -# endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5)) || (__GNUC__ > 4) +# endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)) || (__GNUC__ > 4) a17 2 # if defined(BOOST_ASIO_MSVC) # if (_MSC_VER >= 1700) @ 1.1 log @* Fix building with GCC (PR#48388). * Build long double math libraries on NetBSD and FreeBSD. * Removed obsolete patches. @ text @d1 1 a1 1 $NetBSD$ @