<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/17627713f8223ceb04482f2b3cf5fa1589dd27af">https://github.com/macports/macports-ports/commit/17627713f8223ceb04482f2b3cf5fa1589dd27af</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 17627713f82 py-reflink: fixed build before Sierra
</span>17627713f82 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 17627713f8223ceb04482f2b3cf5fa1589dd27af
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Tue Nov 2 20:41:44 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> py-reflink: fixed build before Sierra
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/63772
</span>---
python/py-reflink/Portfile | 4 ++++
python/py-reflink/files/before-sierra.patch | 28 ++++++++++++++++++++++++++++
2 files changed, 32 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-reflink/Portfile b/python/py-reflink/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c5bc218e89d..3bcc0e01886 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-reflink/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-reflink/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,6 +25,10 @@ checksums rmd160 59ff15dd3f67016c3b509f9c24517dda60595c5b \
</span> python.versions 37 38 39
if {${name} ne ${subport}} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Backport https://gitlab.com/rubdos/pyreflink/-/merge_requests/10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles before-sierra.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append \
port:py${python.version}-pip \
port:py${python.version}-pytest-runner \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-reflink/files/before-sierra.patch b/python/py-reflink/files/before-sierra.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ec203a33338
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-reflink/files/before-sierra.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 08a267525600277a6073f7044c1297ff4744ea48 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: "Kirill A. Korinsky" <catap@catap.ru>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 2 Nov 2021 18:40:01 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Fixed support macOS before 10.12 Sierra
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+macOS before 10.12 Sierra hasn't got defined `MAC_OS_X_VERSION_10_12`.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+As result if always true because any `MAC_OS_X_VERSION_MIN_REQUIRED`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+is bigger than nothing
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reflink/darwin.c | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/reflink/darwin.c b/reflink/darwin.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 6714d62..cc2489a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/reflink/darwin.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/reflink/darwin.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,6 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* NOTE: sys/clonefile.h is available since OS X 10.12 */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined MAC_OS_X_VERSION_10_12 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/clonefile.h> /* for clonefile(2) */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</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;'>+GitLab
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>