From bd508311b5617bd8d31b875d8781392f2a6ad7be Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:49:05 +0100 Subject: [PATCH 1/4] refactor: Drop stray semicolons after function definitions --- include/mp/proxy-types.h | 2 +- include/mp/type-function.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mp/proxy-types.h b/include/mp/proxy-types.h index ed458209..b790dd39 100644 --- a/include/mp/proxy-types.h +++ b/include/mp/proxy-types.h @@ -627,7 +627,7 @@ template auto PassField(Priority<2>, Args&&... args) -> decltype(CustomPassField(std::forward(args)...)) { return CustomPassField(std::forward(args)...); -}; +} template struct ServerField : Parent diff --git a/include/mp/type-function.h b/include/mp/type-function.h index 951e0885..fade9b42 100644 --- a/include/mp/type-function.h +++ b/include/mp/type-function.h @@ -61,7 +61,7 @@ decltype(auto) CustomReadField(TypeList> types, return read_dest.construct(ProxyCallFn{std::move(client)}); } return read_dest.construct(); -}; +} } // namespace mp #endif // MP_PROXY_TYPE_FUNCTION_H From 36f74002775352e7d69748f8ad5ffecad5278ead Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:49:13 +0100 Subject: [PATCH 2/4] ci: Drop NetBSD release 9.4 NetBSD 9.x will become unsupported once release 11.0 is released. --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ffaca1ca..8aa6bfe7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,6 @@ jobs: # Test all supported releases. # See https://www.netbsd.org/releases/. include: - - release: 9.4 - capnproto-cppflags: 'CPPFLAGS="-DKJ_NO_EXCEPTIONS=0 -DKJ_USE_KQUEUE=0"' - release: 10.1 capnproto-cppflags: 'CPPFLAGS="-DKJ_NO_EXCEPTIONS=0"' steps: From 2d33b14fb0e7ad79ee7ad527c119066a0ecd480e Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:49:25 +0100 Subject: [PATCH 3/4] ci: Switch to default compiler on NetBSD 9.4 Also document a workaround for a bug in Cap'n Proto affecting compilers prior to GCC 14. --- .github/workflows/ci.yml | 7 ++++++- ci/configs/netbsd.bash | 8 +------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8aa6bfe7..4119f99a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,13 @@ jobs: # Test all supported releases. # See https://www.netbsd.org/releases/. include: + # Due to a bug in Cap'n Proto, GCC compilers older + # than 14.x require `-DKJ_NO_EXCEPTIONS=0` when + # processing `capnproto/c++/src/kj/common.h`. + # See https://github.com/capnproto/capnproto/pull/2756/changes/28fa1a6753514d8de56875ec2222fa0e1c3a04f7. - release: 10.1 capnproto-cppflags: 'CPPFLAGS="-DKJ_NO_EXCEPTIONS=0"' + env_vars: 'CXXFLAGS="-DKJ_NO_EXCEPTIONS=0"' steps: - uses: actions/checkout@v6 @@ -61,7 +66,7 @@ jobs: - name: Run CI script run: | cd ${{ github.workspace }} - CI_CONFIG="ci/configs/netbsd.bash" bash ci/scripts/ci.sh + CI_CONFIG="ci/configs/netbsd.bash" ${{ matrix.env_vars }} bash ci/scripts/ci.sh build-openbsd: runs-on: ubuntu-latest diff --git a/ci/configs/netbsd.bash b/ci/configs/netbsd.bash index c3e7d258..203b6623 100644 --- a/ci/configs/netbsd.bash +++ b/ci/configs/netbsd.bash @@ -1,11 +1,5 @@ CI_DESC="CI config for NetBSD" CI_DIR=build-netbsd -export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter" -# Hardcode GCC 14, since default GCC versions installed by NetBSD are older -# and may not be compatible with libmultiprocess. GCC 14 was chosen because -# it's the latest compiler available on all versions of NetBSD that we test. -# Note that the GCC version specified here must match the version specified -# in pkg_add in ci.yml. -export CXX="/usr/pkg/gcc14/bin/g++" +export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter ${CXXFLAGS:-}" CMAKE_ARGS=(-G Ninja) BUILD_ARGS=(-k 0) From a9e70dbe775ab628dd6610c7e173bf0d350036f8 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:49:34 +0100 Subject: [PATCH 4/4] ci: Add NetBSD release 11.0 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4119f99a..529db751 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,10 @@ jobs: # than 14.x require `-DKJ_NO_EXCEPTIONS=0` when # processing `capnproto/c++/src/kj/common.h`. # See https://github.com/capnproto/capnproto/pull/2756/changes/28fa1a6753514d8de56875ec2222fa0e1c3a04f7. - - release: 10.1 + - release: '10.1' + capnproto-cppflags: 'CPPFLAGS="-DKJ_NO_EXCEPTIONS=0"' + env_vars: 'CXXFLAGS="-DKJ_NO_EXCEPTIONS=0"' + - release: '11.0' capnproto-cppflags: 'CPPFLAGS="-DKJ_NO_EXCEPTIONS=0"' env_vars: 'CXXFLAGS="-DKJ_NO_EXCEPTIONS=0"' steps: