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

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/20ec91e144e6efadc57f4adb299636dd3a5d0c0a">https://github.com/macports/macports-ports/commit/20ec91e144e6efadc57f4adb299636dd3a5d0c0a</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 20ec91e144e xscreensaver: fix build on macOS <10.13
</span>20ec91e144e is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 20ec91e144e6efadc57f4adb299636dd3a5d0c0a
</span>Author: aeiouaeiouaeiouaeiouaeiouaeiou <aeioudev@outlook.com>
AuthorDate: Tue May 14 14:57:07 2024 +0300

<span style='display:block; white-space:pre;color:#404040;'>    xscreensaver: fix build on macOS <10.13
</span>---
 x11/xscreensaver/Portfile                    | 12 ++++++++++++
 x11/xscreensaver/files/patch-ignore-qos.diff | 15 +++++++++++++++
 2 files changed, 27 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/x11/xscreensaver/Portfile b/x11/xscreensaver/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 31ec34c6b25..45fdbce38a6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/x11/xscreensaver/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/x11/xscreensaver/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,6 +2,7 @@
</span> 
 PortSystem          1.0
 PortGroup           active_variants 1.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           compiler_blacklist_versions 1.0
</span> 
 name                xscreensaver
 version             6.08
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -39,6 +40,17 @@ require_active_variants path:lib/pkgconfig/gtk+-3.0.pc:gtk3 x11
</span> # Fix "No GL visuals" when running in fullscreen
 patchfiles          patch-driver-subprocs.diff
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Missing 'pthread_attr_set_qos_class_np' on macOS <10.10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append   patch-ignore-qos.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# marbling.c:174:9: error: cannot convert between vector
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# values of different size ('v_hi' (vector of 8 'int16_t'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# values) and 'int16_t' (aka 'short')) on macOS <10.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    {clang < 1000}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args      --with-app-defaults=${prefix}/share/X11/app-defaults \
                     --with-fontdir=${prefix}/share/fonts/TTF
 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/x11/xscreensaver/files/patch-ignore-qos.diff b/x11/xscreensaver/files/patch-ignore-qos.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a0467694414
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/x11/xscreensaver/files/patch-ignore-qos.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;'>+--- utils/thread_util.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ utils/thread_util.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -718,12 +718,6 @@ void *io_thread_create(struct io_thread *self, void *parent, void *(*start_routi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           pthread_attr_t attr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           pthread_attr_t *attr_ptr = NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#   if (defined __APPLE__ && defined __MACH__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-          /* For Apple silicon. Requires macOS 10.10 or iOS 8.0. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-          attr_ptr = &attr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-          pthread_attr_set_qos_class_np(attr_ptr, QOS_CLASS_USER_INTERACTIVE, 0);
</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;'>+           if(stacksize)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   attr_ptr = &attr;
</span></pre><pre style='margin:0'>

</pre>