From 04303b375b2a5ada585cf3dff55b49602f1c6ec6 Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Tue, 22 Jul 2025 11:52:46 +0700 Subject: [PATCH] media-gfx/asymptote: make 3.05 compile with boost-1.88 patch by Erik Zeek Closes: https://bugs.gentoo.org/960289 Signed-off-by: Andrey Grozin --- media-gfx/asymptote/asymptote-3.05.ebuild | 3 + .../files/asymptote-3.05-boost-1.88.patch | 74 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 media-gfx/asymptote/files/asymptote-3.05-boost-1.88.patch diff --git a/media-gfx/asymptote/asymptote-3.05.ebuild b/media-gfx/asymptote/asymptote-3.05.ebuild index 8d83d890f1c62..0bde8bf240827 100644 --- a/media-gfx/asymptote/asymptote-3.05.ebuild +++ b/media-gfx/asymptote/asymptote-3.05.ebuild @@ -70,6 +70,9 @@ PATCHES=( "${FILESDIR}/${PN}-2.70-info.patch" "${FILESDIR}/${PN}-3.00-gc-check.patch" + + # Bug # 960289 + "${FILESDIR}/${PN}-3.05-boost-1.88.patch" ) src_prepare() { diff --git a/media-gfx/asymptote/files/asymptote-3.05-boost-1.88.patch b/media-gfx/asymptote/files/asymptote-3.05-boost-1.88.patch new file mode 100644 index 0000000000000..1da465ab28570 --- /dev/null +++ b/media-gfx/asymptote/files/asymptote-3.05-boost-1.88.patch @@ -0,0 +1,74 @@ +commit a0541fdbeb08247b8c97f2f01e922452ffb4bc9e +Author: Erik Zeek +Date: Mon Jul 21 20:21:07 2025 -0600 + + Use boost/process/v1 for newer boosts + + Signed-off-by: Erik Zeek + +diff --git a/LspCpp/examples/StdIOClientExample.cpp b/LspCpp/examples/StdIOClientExample.cpp +index 13bf9da..48a9ace 100644 +--- a/LspCpp/examples/StdIOClientExample.cpp ++++ b/LspCpp/examples/StdIOClientExample.cpp +@@ -17,7 +17,17 @@ + #include "LibLsp/JsonRpc/TcpServer.h" + #include "LibLsp/lsp/textDocument/document_symbol.h" + #include "LibLsp/lsp/workspace/execute_command.h" ++ ++#include ++#if BOOST_VERSION >= 108800 // v2 is now default ++#define BOOST_PROCESS_VERSION 1 ++#include ++#include ++#include ++#else + #include ++#endif ++ + #include + #include + #include +diff --git a/LspCpp/examples/StdIOServerExample.cpp b/LspCpp/examples/StdIOServerExample.cpp +index 8b2d2b2..f38e4a7 100644 +--- a/LspCpp/examples/StdIOServerExample.cpp ++++ b/LspCpp/examples/StdIOServerExample.cpp +@@ -16,7 +16,17 @@ + #include "LibLsp/JsonRpc/TcpServer.h" + #include "LibLsp/lsp/textDocument/document_symbol.h" + #include "LibLsp/lsp/workspace/execute_command.h" ++ ++#include ++#if BOOST_VERSION >= 108800 // v2 is now default ++#define BOOST_PROCESS_VERSION 1 ++#include ++#include ++#include ++#else + #include ++#endif ++ + #include + #include + #include +diff --git a/LspCpp/src/lsp/ParentProcessWatcher.cpp b/LspCpp/src/lsp/ParentProcessWatcher.cpp +index ee4147b..8ecc05d 100644 +--- a/LspCpp/src/lsp/ParentProcessWatcher.cpp ++++ b/LspCpp/src/lsp/ParentProcessWatcher.cpp +@@ -1,6 +1,17 @@ + #include "LibLsp/lsp/ParentProcessWatcher.h" + #include ++ ++#include ++#if BOOST_VERSION >= 108800 // v2 is now default ++#define BOOST_PROCESS_VERSION 1 ++#include ++#include ++#include ++#include ++#else + #include ++#error "V1" ++#endif + + #ifdef _WIN32 + #include