<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/44b5a510e863e1ea17235b3e908b40779136ed26">https://github.com/macports/macports-ports/commit/44b5a510e863e1ea17235b3e908b40779136ed26</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 44b5a510e86 boost181: fix fiber for powerpc (#18673)
</span>44b5a510e86 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 44b5a510e863e1ea17235b3e908b40779136ed26
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Thu May 25 21:01:25 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> boost181: fix fiber for powerpc (#18673)
</span>---
devel/boost181/Portfile | 11 +++++------
devel/boost181/files/patch-fix-fiber.diff | 14 ++++++++++++++
2 files changed, 19 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/boost181/Portfile b/devel/boost181/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 088d47c44fc..04839403345 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/boost181/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/boost181/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -111,6 +111,9 @@ patchfiles-append patch-revert-lib-name-tagged.diff
</span> # https://github.com/boostorg/context/pull/215
patchfiles-append patch-boost-context-asm.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/boostorg/fiber/pull/306
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix-fiber.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Availability.h -> AvailabilityMacros.h on Tiger
# The attempted fix:
# https://github.com/boostorg/core/commit/128d9314d6f814930400c46c9afd34399d19132b
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -179,16 +182,12 @@ if {[string match *gcc* ${configure.compiler}]} {
</span> }
# Boost's PPC32 ASM code in the context module was only recently fixed (see
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# patch above). PPC64 is still broken, and the Fiber module won't compile with
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# GCC7. Conditionally disable pending further investigation.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# patch above). PPC64 is still broken.
</span> platform darwin {
if {${build_arch} eq "ppc64"} {
configure.args-append --without-libraries=context \
--without-libraries=coroutine
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${build_arch} eq "ppc"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --without-libraries=fiber
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> }
configure.universal_args
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -375,7 +374,7 @@ subport ${name}-numpy {
</span>
if {$subport eq $name} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 6
</span>
patchfiles-append patch-disable-numpy-extension.diff
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/boost181/files/patch-fix-fiber.diff b/devel/boost181/files/patch-fix-fiber.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..273761d971c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/boost181/files/patch-fix-fiber.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- boost/fiber/detail/cpu_relax.hpp.orig 2022-12-08 09:02:41.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ boost/fiber/detail/cpu_relax.hpp 2023-05-14 19:32:43.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -59,7 +59,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // processors
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // extended mnemonics (available with POWER7)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // yield == or 27, 27, 27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined(__POWERPC__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define cpu_relax() asm volatile ("or r27,r27,r27" ::: "memory");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define cpu_relax() asm volatile ("or 27,27,27" ::: "memory");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif BOOST_ARCH_X86
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if BOOST_COMP_MSVC || BOOST_COMP_MSVC_EMULATED
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define cpu_relax() YieldProcessor();
</span></pre><pre style='margin:0'>
</pre>