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

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a5e2d3e12ea03b0a6712a7f8efeab9049b428cc8">https://github.com/macports/macports-ports/commit/a5e2d3e12ea03b0a6712a7f8efeab9049b428cc8</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 a5e2d3e12ea xsel: disable check for autoconf vfork AC_FUNC_FORK
</span>a5e2d3e12ea is described below

<span style='display:block; white-space:pre;color:#808000;'>commit a5e2d3e12ea03b0a6712a7f8efeab9049b428cc8
</span>Author: Derek Schrock <dereks@lifeofadishwasher.com>
AuthorDate: Fri Nov 5 22:10:29 2021 -0400

<span style='display:block; white-space:pre;color:#404040;'>    xsel: disable check for autoconf vfork AC_FUNC_FORK
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    * disable check for autoconf AC_FUNC_FORK vfork checking caching to yes.
</span><span style='display:block; white-space:pre;color:#404040;'>    * AC_FUNC_FORK will create a `#define vfork fork` macro in config.h
</span><span style='display:block; white-space:pre;color:#404040;'>    * vfork has been mark depercated in macOS 12.
</span><span style='display:block; white-space:pre;color:#404040;'>    * This macro will mark fork() usage as depercated due to
</span><span style='display:block; white-space:pre;color:#404040;'>      config.h being included before system header <unistd.h>.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Re: https://github.com/kfish/xsel/issues/42
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/63748
</span>---
 x11/xsel/Portfile | 9 +++++++++
 1 file changed, 9 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/x11/xsel/Portfile b/x11/xsel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 72d1a51788b..c01bacfd1e7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/x11/xsel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/x11/xsel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +28,15 @@ depends_build           port:xorg-libXt
</span> 
 depends_lib             port:xorg-libX11
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# cache autoconf vfork check to yes on darwin 21+ (macOS Monterey) disabling
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# the autoconf vfork macro "#define vfork fork" that will result in a build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# failure due to vfork deprecation warning in macOS Monterey and -Werror
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/63748
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/kfish/xsel/issues/42
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} >= 21} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-append ac_cv_func_vfork=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-destroot {
     set docdir ${destroot}${prefix}/share/doc/${subport}
     xinstall -d ${docdir}
</pre><pre style='margin:0'>

</pre>