asio: bump to version 1.36.0, update boost, fix build flags (#12794)

This commit is contained in:
Joachim Mairböck
2025-08-20 12:05:30 +02:00
committed by GitHub
parent 14b46f1dab
commit b1d1e2ccd1

View File

@@ -2,12 +2,12 @@ SUMMARY="Asynchronous Network Library"
DESCRIPTION="Asio is a cross-platform C++ library for network and low-level I/O programming \
that provides developers with a consistent asynchronous model using a modern C++ approach"
HOMEPAGE="https://github.com/chriskohlhoff/asio/"
COPYRIGHT="2003-2023 Christopher M. Kohlhoff"
COPYRIGHT="2003-2025 Christopher M. Kohlhoff"
LICENSE="Boost v1.0"
REVISION="1"
ASIO_VERSION=`echo $portVersion | sed 's/\./-/g'`
SOURCE_URI="https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-$ASIO_VERSION.tar.gz"
CHECKSUM_SHA256="530540f973498c2d297771af1bc852f69b27509bbb56bc7ac3309c928373286f"
CHECKSUM_SHA256="0310a76b27e1854f09f696b30de57dc490b5e1b17faed1eb8c9a2891f956e52b"
SOURCE_DIR="asio-asio-$ASIO_VERSION"
ARCHITECTURES="all !x86_gcc2"
@@ -26,8 +26,8 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_coroutine$secondaryArchSuffix >= 1.83.0
devel:libboost_regex$secondaryArchSuffix >= 1.83.0
devel:libboost_coroutine$secondaryArchSuffix >= 1.88.0
devel:libboost_regex$secondaryArchSuffix >= 1.88.0
# devel:libssl$secondaryArchSuffix >= 3
"
BUILD_PREREQUIRES="
@@ -42,7 +42,8 @@ BUILD_PREREQUIRES="
BUILD()
{
export CXXFLAGS="_DEFAULT_SOURCE"
export CXXFLAGS="-D_DEFAULT_SOURCE -O2"
export LIBS="-lbsd"
cd asio
autoupdate
aclocal
@@ -60,7 +61,37 @@ INSTALL()
fixPkgconfig
}
TEST() {
TEST()
{
# examples:
# ============================================================================
# Testsuite summary for asio 1.36.0
# ============================================================================
# TOTAL: 171
# PASS: 171
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
# ============================================================================
# unit tests:
# ============================================================================
# Testsuite summary for asio 1.36.0
# ============================================================================
# TOTAL: 170
# PASS: 167
# SKIP: 0
# XFAIL: 0
# FAIL: 3
# XPASS: 0
# ERROR: 0
# ============================================================================
# FAIL: unit/ip/multicast
# FAIL: unit/ip/v6_only
# FAIL: unit/socket_base
cd asio
make check $jobArgs
}