Index | Thread | Search

From:
Brad Smith <brad@comstyle.com>
Subject:
Re: UPDATE: Asio 1.36.0
To:
ports <ports@openbsd.org>
Cc:
tb@theobuehler.org
Date:
Fri, 9 Oct 2026 01:52:06 -0400

Download raw body.

Thread
On Fri, Oct 09, 2026 at 12:22:16AM -0400, Brad Smith wrote:
> On Tue, Oct 06, 2026 at 01:01:46PM +0100, Stuart Henderson wrote:
> > galera runs into a problem if new asio is present during build:
 
Fix typo.


Index: patches/patch-cmake_asio_cmake
===================================================================
RCS file: patches/patch-cmake_asio_cmake
diff -N patches/patch-cmake_asio_cmake
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-cmake_asio_cmake	9 Oct 2026 05:09:37 -0000
@@ -0,0 +1,22 @@
+Index: cmake/asio.cmake
+--- cmake/asio.cmake.orig
++++ cmake/asio.cmake
+@@ -13,6 +13,9 @@ macro(CHECK_ASIO_VERSION)
+ #if ASIO_VERSION < 102201
+ #error Included asio version is too old
+ #endif
++#if ASIO_VERSION > 103200
++#error Included asio version is too new
++#endif
+ 
+ int main()
+ {
+@@ -37,7 +40,7 @@ endif()
+ 
+ if(NOT ASIO_VERSION_OK)
+   message(STATUS "Using bundled asio")
+-  include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/asio)
++  include_directories(BEFORE ${PROJECT_SOURCE_DIR}/asio)
+ endif()
+ 
+ add_definitions(-DHAVE_ASIO_HPP)