<pre style='margin:0'>
Mihai Moldovan (Ionic) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5b19cc6e7705a1400b8b8f0318a1088d3620fc0e">https://github.com/macports/macports-ports/commit/5b19cc6e7705a1400b8b8f0318a1088d3620fc0e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5b19cc6e7705a1400b8b8f0318a1088d3620fc0e
</span>Author: Mihai Moldovan <ionic@ionic.de>
AuthorDate: Sat Mar 7 17:44:26 2020 +0100

<span style='display:block; white-space:pre;color:#404040;'>    lang/go: don't use -Wno-nullability-completeness flag on legacy platforms.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Their compiler won't support it, bail out with an error and generally
</span><span style='display:block; white-space:pre;color:#404040;'>    not need it since it disables a feature they don't even support.
</span>---
 lang/go/Portfile                                         |  4 ++++
 lang/go/files/cgo-drop-no-nullability-completeless.patch | 12 ++++++++++++
 2 files changed, 16 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/go/Portfile b/lang/go/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a192759..38c150b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/go/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/go/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -74,6 +74,10 @@ if {${os.platform} eq "darwin" && ${os.major} <= ${legacysupport.newest_darwin_r
</span>     # since go doesn't use the standard CFLAGS/CXXFLAGS.
     # We need to patch the build system and set up env variables manually.
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Older compilers don't support the -Wno-nullability-completeness flag and if
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # that's the case, they won't need it anyway, so just patch it out.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append   cgo-drop-no-nullability-completeless.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     build.env-append    "GO_EXTLINK_ENABLED=1" \
                         "GO_LDFLAGS=\"-extldflags=${configure.ldflags}\"" \
                         "BOOT_GO_LDFLAGS=-extldflags=${configure.ldflags}"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/go/files/cgo-drop-no-nullability-completeless.patch b/lang/go/files/cgo-drop-no-nullability-completeless.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e0a4da1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/go/files/cgo-drop-no-nullability-completeless.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/runtime/cgo/cgo.go.old     2020-02-25 19:32:50.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/runtime/cgo/cgo.go 2020-03-07 17:40:37.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,9 +23,6 @@ package cgo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #cgo aix LDFLAGS: -Wl,-berok
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #cgo solaris LDFLAGS: -lxnet
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-// Issue 35247.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#cgo darwin CFLAGS: -Wno-nullability-completeness
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #cgo CFLAGS: -Wall -Werror
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #cgo solaris CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
</span></pre><pre style='margin:0'>

</pre>