commit: 04303b375b2a5ada585cf3dff55b49602f1c6ec6 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> AuthorDate: Tue Jul 22 04:52:46 2025 +0000 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> CommitDate: Tue Jul 22 04:52:46 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04303b37
media-gfx/asymptote: make 3.05 compile with boost-1.88 patch by Erik Zeek <zeekec <AT> gmail.com> Closes: https://bugs.gentoo.org/960289 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> media-gfx/asymptote/asymptote-3.05.ebuild | 3 + .../files/asymptote-3.05-boost-1.88.patch | 74 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/media-gfx/asymptote/asymptote-3.05.ebuild b/media-gfx/asymptote/asymptote-3.05.ebuild index 8d83d890f1c6..0bde8bf24082 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 000000000000..1da465ab2857 --- /dev/null +++ b/media-gfx/asymptote/files/asymptote-3.05-boost-1.88.patch @@ -0,0 +1,74 @@ +commit a0541fdbeb08247b8c97f2f01e922452ffb4bc9e +Author: Erik Zeek <[email protected]> +Date: Mon Jul 21 20:21:07 2025 -0600 + + Use boost/process/v1 for newer boosts + + Signed-off-by: Erik Zeek <[email protected]> + +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 <boost/version.hpp> ++#if BOOST_VERSION >= 108800 // v2 is now default ++#define BOOST_PROCESS_VERSION 1 ++#include <boost/process/v1/child.hpp> ++#include <boost/process/v1/io.hpp> ++#include <boost/process/v1/pipe.hpp> ++#else + #include <boost/process.hpp> ++#endif ++ + #include <boost/filesystem.hpp> + #include <boost/asio.hpp> + #include <iostream> +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 <boost/version.hpp> ++#if BOOST_VERSION >= 108800 // v2 is now default ++#define BOOST_PROCESS_VERSION 1 ++#include <boost/process/v1/child.hpp> ++#include <boost/process/v1/io.hpp> ++#include <boost/process/v1/pipe.hpp> ++#else + #include <boost/process.hpp> ++#endif ++ + #include <boost/filesystem.hpp> + #include <boost/asio.hpp> + #include <iostream> +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 <algorithm> ++ ++#include <boost/version.hpp> ++#if BOOST_VERSION >= 108800 // v2 is now default ++#define BOOST_PROCESS_VERSION 1 ++#include <boost/process/v1/child.hpp> ++#include <boost/process/v1/io.hpp> ++#include <boost/process/v1/pipe.hpp> ++#include <boost/process/v1/system.hpp> ++#else + #include <boost/process.hpp> ++#error "V1" ++#endif + + #ifdef _WIN32 + #include <boost/process/v1/windows.hpp>
