commit:     2f5b19682b6cafca68d260fc27724164745ce19f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 27 14:26:32 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 27 14:26:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f5b1968

dev-libs/boost: fix build on alpha

No revbump as it shows up when building and isn't an installed file anyway
(so can't affect other platforms, though it should be fine there anyway).

Closes: https://bugs.gentoo.org/942898
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/boost/boost-1.87.0-r3.ebuild              |  1 +
 dev-libs/boost/boost-1.88.0.ebuild                 |  1 +
 .../files/boost-1.87.0-process-error-alpha.patch   | 28 ++++++++++++++++++++++
 3 files changed, 30 insertions(+)

diff --git a/dev-libs/boost/boost-1.87.0-r3.ebuild 
b/dev-libs/boost/boost-1.87.0-r3.ebuild
index 2065285a40ca..594868449be1 100644
--- a/dev-libs/boost/boost-1.87.0-r3.ebuild
+++ b/dev-libs/boost/boost-1.87.0-r3.ebuild
@@ -54,6 +54,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.87.0-smart_ptr-operator.patch
        "${FILESDIR}"/${PN}-1.87.0-thread-typo.patch
        "${FILESDIR}"/${PN}-1.87.0-solaris.patch
+       "${FILESDIR}"/${PN}-1.87.0-process-error-alpha.patch
 )
 
 create_user-config.jam() {

diff --git a/dev-libs/boost/boost-1.88.0.ebuild 
b/dev-libs/boost/boost-1.88.0.ebuild
index ac5a6573b60a..b74061ee02cd 100644
--- a/dev-libs/boost/boost-1.88.0.ebuild
+++ b/dev-libs/boost/boost-1.88.0.ebuild
@@ -48,6 +48,7 @@ BDEPEND=">=dev-build/b2-5.1.0"
 PATCHES=(
        "${FILESDIR}"/${PN}-1.81.0-disable_icu_rpath.patch
        "${FILESDIR}"/${PN}-1.79.0-build-auto_index-tool.patch
+       "${FILESDIR}"/${PN}-1.87.0-process-error-alpha.patch
 )
 
 create_user-config.jam() {

diff --git a/dev-libs/boost/files/boost-1.87.0-process-error-alpha.patch 
b/dev-libs/boost/files/boost-1.87.0-process-error-alpha.patch
new file mode 100644
index 000000000000..de1a6033d051
--- /dev/null
+++ b/dev-libs/boost/files/boost-1.87.0-process-error-alpha.patch
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/942898
+https://github.com/boostorg/process/issues/474
+https://github.com/boostorg/process/commit/9dcd1a2775f11ffd2c16fccd6645e3c7d259dfe4
+
+From 9dcd1a2775f11ffd2c16fccd6645e3c7d259dfe4 Mon Sep 17 00:00:00 2001
+From: Klemens Morgenstern <[email protected]>
+Date: Mon, 14 Apr 2025 23:51:35 +0800
+Subject: [PATCH] added duplication check for SIGINFO
+
+Closes #474
+---
+ src/error.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/error.cpp b/src/error.cpp
+index b978c3a42..342707204 100644
+--- a/libs/process/src/error.cpp
++++ b/libs/process/src/error.cpp
+@@ -100,7 +100,7 @@ struct exit_code_category final : public error_category
+ #            if defined(SIGILL)
+                     case SIGILL: return "SIGILL:    Illegal Instruction";
+ #            endif
+-#            if defined(SIGINFO)
++#            if defined(SIGINFO) && SIGINFO != SIGPWR
+                     case SIGINFO: return "SIGINFO:   A synonym for SIGPWR";
+ #            endif
+ #            if defined(SIGINT)
+

Reply via email to