diff --git a/b2-5.0.0-Define-OSPLAT-for-riscv64-and-riscv32-341.patch b/b2-5.0.0-Define-OSPLAT-for-riscv64-and-riscv32-341.patch new file mode 100644 index 0000000000000000000000000000000000000000..10adf00540651b02d15e8383d1b9da3555b62bac --- /dev/null +++ b/b2-5.0.0-Define-OSPLAT-for-riscv64-and-riscv32-341.patch @@ -0,0 +1,38 @@ +From b4c09d1b0fea7f0e31e54317523c26c0490996c3 Mon Sep 17 00:00:00 2001 +From: Levi Zim +Date: Sat, 2 Dec 2023 03:23:14 +0800 +Subject: [PATCH] Define OSPLAT for riscv64 and riscv32 (#341) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +* src/engine/jam.h + define OSPLAT for riscv64 and riscv32 + +Co-authored-by: René Ferdinand Rivera Morell +--- + src/engine/jam.h | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/tools/build/src/engine/jam.h b/tools/build/src/engine/jam.h +index e1b76cb04ad3..4e8ffa6420ca 100644 +--- a/tools/build/src/engine/jam.h ++++ b/tools/build/src/engine/jam.h +@@ -442,6 +442,14 @@ + #define OSPLAT "OSPLAT=PARISC" + #endif + ++#if defined( __riscv ) || defined( __riscv__ ) ++ #if __riscv_xlen == 64 ++ #define OSPLAT "OSPLAT=RISCV64" ++ #elif __riscv_xlen == 32 ++ #define OSPLAT "OSPLAT=RISCV32" ++ #endif ++#endif ++ + #ifndef OSPLAT + #define OSPLAT "" + #endif +-- +2.43.0 + diff --git a/boost.spec b/boost.spec index c047ec004c66d9fb11dcd89fc7f5e7239ecedc22..d977c257b227651573df0f140903e7a02d045abe 100644 --- a/boost.spec +++ b/boost.spec @@ -2,7 +2,7 @@ Name: boost Version: 1.83.0 -Release: 6 +Release: 7 Summary: The free peer-reviewed portable C++ source libraries License: BSL-1.0 URL: https://www.boost.org @@ -20,6 +20,8 @@ Patch4: boost-1.81-random-test-Add-missing-includes.patch Patch5: boost-1.81-phoenix-Update-avoid-placeholders-uarg1.10-ODR-violates.patch # https://lists.boost.org/Archives/boost/2020/04/248812.php Patch6: boost-1.73.0-cmakedir.patch +# https://github.com/bfgroup/b2/pull/341 +Patch7: b2-5.0.0-Define-OSPLAT-for-riscv64-and-riscv32-341.patch Requires: %{name}-atomic%{?_isa} = %{version}-%{release} Requires: %{name}-chrono%{?_isa} = %{version}-%{release} @@ -457,6 +459,9 @@ find libs -name example -exec cp {} boost-example --parents -r \; %{_libdir}/cmake/* %changelog +* Tue Jul 29 2025 laokz - 1.83.0-7 +- backport b2 patch to fix broken boost-context library on riscv + * Thu Mar 06 2025 mahailiang - 1.83.0-6 - Disable libquadmath dependency for sw_64 mips64el