<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/e2201b91bb78b88592f0f813e605c0a8e5c1ca6f">https://github.com/macports/macports-ports/commit/e2201b91bb78b88592f0f813e605c0a8e5c1ca6f</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 e2201b91bb7 glib2: Fix build with pre-C++11 compilers
</span>e2201b91bb7 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e2201b91bb78b88592f0f813e605c0a8e5c1ca6f
</span>Author: Evan Miller <emmiller@gmail.com>
AuthorDate: Sat Aug 20 09:00:21 2022 -0400
<span style='display:block; white-space:pre;color:#404040;'> glib2: Fix build with pre-C++11 compilers
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/65663
</span>---
devel/glib2/Portfile | 1 +
devel/glib2/files/patch-gio_gcredentials.c.diff | 14 ++++++++++++++
2 files changed, 15 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/glib2/Portfile b/devel/glib2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 21de6ec1753..976ebd4715b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/glib2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/glib2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,6 +59,7 @@ patchfiles-append patch-meson-build-broken_poll.diff
</span> platform darwin {
if {${os.major} < 11} {
patchfiles-append patch-gio_gcredentialsprivate.h.diff \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-gio_gcredentials.c.diff \
</span> patch-gio_gsocket.h.diff
}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/glib2/files/patch-gio_gcredentials.c.diff b/devel/glib2/files/patch-gio_gcredentials.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6451550cd22
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/glib2/files/patch-gio_gcredentials.c.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;'>+glib_typeof relies on C++11, so we need to fall back to regular typeof
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+(supported by GCC and Clang) to build with older compilers.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gio/gcredentials.c.orig 2022-08-20 08:42:34.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gio/gcredentials.c 2022-08-20 08:46:40.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -225,7 +225,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GString *ret;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if G_CREDENTIALS_USE_APPLE_XUCRED
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- glib_typeof (credentials->native.cr_ngroups) i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ typeof (credentials->native.cr_ngroups) i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ g_return_val_if_fail (G_IS_CREDENTIALS (credentials), NULL);
</span></pre><pre style='margin:0'>
</pre>