<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/f206094f8d8676d28452395be44e05f41f716d43">https://github.com/macports/macports-ports/commit/f206094f8d8676d28452395be44e05f41f716d43</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 f206094f8d8 grpc: update to 1.48.4, unbreak build
</span>f206094f8d8 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit f206094f8d8676d28452395be44e05f41f716d43
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sat Aug 12 16:27:52 2023 +0800

<span style='display:block; white-space:pre;color:#404040;'>    grpc: update to 1.48.4, unbreak build
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/65525
</span>---
 devel/grpc/Portfile                               | 16 ++++++++++++++--
 devel/grpc/files/patch-unbreak-port_platform.diff | 15 +++++++++++++++
 2 files changed, 29 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/grpc/Portfile b/devel/grpc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 01626c97194..2e52300f151 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/grpc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/grpc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,8 +7,8 @@ PortGroup           legacysupport 1.1
</span> PortGroup           compiler_blacklist_versions 1.0
 
 # NOTE: Also rev-bump 'apache-arrow' when updating this port
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup        grpc grpc 1.48.0 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        grpc grpc 1.48.4 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span> categories          devel
 maintainers         nomaintainer
 license             Apache-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +28,9 @@ github.livecheck.regex  {([0-9.]+)}
</span> 
 set name_io         ${name}io
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/65525#comment:1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   patch-unbreak-port_platform.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # error: constexpr function never produces a constant expression
 # Requires c++17 support
 compiler.cxx_standard  2017
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -79,6 +82,15 @@ configure.args-append \
</span>                     -DgRPC_SSL_PROVIDER=package \
                     -DgRPC_ZLIB_PROVIDER=package
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/grpc/grpc/pull/32159
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cppflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -D__STDC_FORMAT_MACROS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${build_arch} in [list i386 ppc] && [string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # ___atomic_fetch_sub_8 etc.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.ldflags-append -latomic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # the build must link against its own libraries
 cmake.install_rpath
 configure.pre_args-replace \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/grpc/files/patch-unbreak-port_platform.diff b/devel/grpc/files/patch-unbreak-port_platform.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4ae4e966641
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/grpc/files/patch-unbreak-port_platform.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/grpc/impl/codegen/port_platform.h.orig 2023-08-12 14:29:01.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/grpc/impl/codegen/port_platform.h      2023-08-12 14:44:01.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -242,9 +242,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GPR_CPU_POSIX 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GPR_POSIX_CRASH_HANDLER 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if !(defined(__has_feature) && __has_feature(cxx_thread_local))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__has_feature)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __has_feature(cxx_thread_local)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GPR_PTHREAD_TLS 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GPR_APPLE 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GPR_GCC_ATOMIC 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GPR_POSIX_LOG 1
</span></pre><pre style='margin:0'>

</pre>