<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/06c793df1cde1faf718a493e84e6de936d27a53a">https://github.com/macports/macports-ports/commit/06c793df1cde1faf718a493e84e6de936d27a53a</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 06c793df1cd libfaketime: add legacysupport for O_CLOEXEC; patch clock defs Fixes: https://trac.macports.org/ticket/67452
</span>06c793df1cd is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 06c793df1cde1faf718a493e84e6de936d27a53a
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Thu May 18 16:22:23 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> libfaketime: add legacysupport for O_CLOEXEC; patch clock defs
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/67452
</span>---
sysutils/libfaketime/Portfile | 7 +++++
.../files/patch-clock_xxx_cputime_id.diff | 31 ++++++++++++++++++++++
2 files changed, 38 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/libfaketime/Portfile b/sysutils/libfaketime/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index dd251f35c0e..1bf87efeb0b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/libfaketime/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/libfaketime/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,6 +2,7 @@
</span>
PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup legacysupport 1.1
</span>
github.setup wolfcw libfaketime 0.9.7 v
categories sysutils
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,6 +23,12 @@ checksums rmd160 ddeee257d6df4a553509b7034cd26bcf76e4a8e0 \
</span> sha256 fa335f482aa4d1e19026bce17b7022b1e969d0cc1ee451cf3202e43bd8c2138b \
size 56281
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Needed for O_CLOEXEC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Ensure CLOCK_xxx_CPUTIME_ID are defined. Necessary for 10.6 and earlier.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-clock_xxx_cputime_id.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> use_configure no
variant universal {}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/libfaketime/files/patch-clock_xxx_cputime_id.diff b/sysutils/libfaketime/files/patch-clock_xxx_cputime_id.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..faac8e497b5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/libfaketime/files/patch-clock_xxx_cputime_id.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libfaketime.c.orig 2023-05-18 16:12:58.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libfaketime.c 2023-05-18 16:16:57.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -87,10 +87,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define CLOCK_REALTIME CALENDAR_CLOCK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Monotonic system-wide clock. (== 0) */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define CLOCK_MONOTONIC SYSTEM_CLOCK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-/* High-resolution timer from the CPU. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define CLOCK_PROCESS_CPUTIME_ID 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-/* Thread-specific CPU-time clock. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define CLOCK_THREAD_CPUTIME_ID 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Monotonic system-wide clock, not adjusted for frequency scaling. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define CLOCK_MONOTONIC_RAW 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef int clockid_t;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -99,6 +95,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</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;'>++#ifndef CLOCK_PROCESS_CPUTIME_ID
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* High-resolution timer from the CPU. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define CLOCK_PROCESS_CPUTIME_ID 2
</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;'>++#ifndef CLOCK_THREAD_CPUTIME_ID
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* High-resolution timer from the CPU. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* Thread-specific CPU-time clock. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define CLOCK_THREAD_CPUTIME_ID 3
</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;'>+ /* some systems lack raw clock */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef CLOCK_MONOTONIC_RAW
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define CLOCK_MONOTONIC_RAW (CLOCK_MONOTONIC + 1)
</span></pre><pre style='margin:0'>
</pre>