<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/8f0984ed771f1f262d8396d0ef65c0fbe01a049a">https://github.com/macports/macports-ports/commit/8f0984ed771f1f262d8396d0ef65c0fbe01a049a</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 8f0984ed771 glib2-devel: patch for F_DUPFD_CLOEXEC - Regression exclusive to 2.68.x; not an issue in earlier or later major releases Fixes: https://trac.macports.org/ticket/65480
</span>8f0984ed771 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8f0984ed771f1f262d8396d0ef65c0fbe01a049a
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Fri Jul 15 14:42:48 2022 -0400
<span style='display:block; white-space:pre;color:#404040;'> glib2-devel: patch for F_DUPFD_CLOEXEC
</span><span style='display:block; white-space:pre;color:#404040;'> - Regression exclusive to 2.68.x; not an issue in earlier or later major releases
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/65480
</span>---
devel/glib2-devel/Portfile | 3 +++
devel/glib2-devel/files/patch-tests-dupfd.diff | 16 ++++++++++++++++
2 files changed, 19 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/glib2-devel/Portfile b/devel/glib2-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 95d7b08358a..9aa7b6b4b26 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/glib2-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/glib2-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,6 +49,9 @@ patchfiles libintl.patch \
</span> universal.patch \
patch-glib2-findfolders-before-SL.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Patch for use of F_DUPFD_CLOEXEC. Fixed in previous and later versions, and exclusive to 2.68.x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-tests-dupfd.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append port:gettext \
bin:xmllint:libxml2 \
port:pkgconfig
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/glib2-devel/files/patch-tests-dupfd.diff b/devel/glib2-devel/files/patch-tests-dupfd.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..205475a3a7b
</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-devel/files/patch-tests-dupfd.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- glib/tests/spawn-singlethread.c.orig 2022-07-15 14:33:09.397854747 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ glib/tests/spawn-singlethread.c 2022-07-15 14:33:49.402324725 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -451,7 +451,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (i = 0; i < (n_fds - 1); ++i)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- int source = fcntl (tmp_fd, F_DUPFD_CLOEXEC, 3);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int source;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef F_DUPFD_CLOEXEC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ source = fcntl (tmp_fd, F_DUPFD_CLOEXEC, 3);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ source = dup (tmp_fd);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ g_assert_cmpint (source, >=, 0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ source_fds[i] = source;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ target_fds[i] = source + n_fds;
</span></pre><pre style='margin:0'>
</pre>