<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b015b54a47db089b3dfe90961282d3c786517b9c">https://github.com/macports/macports-ports/commit/b015b54a47db089b3dfe90961282d3c786517b9c</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 b015b54 afsctool: Fix filesystem detection for APFS
</span>b015b54 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b015b54a47db089b3dfe90961282d3c786517b9c
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Tue Nov 7 16:17:06 2017 +0100
<span style='display:block; white-space:pre;color:#404040;'> afsctool: Fix filesystem detection for APFS
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Although still undocumented, the f_type number for APFS has changed once
</span><span style='display:block; white-space:pre;color:#404040;'> again in macOS 10.13 High Sierra. Use the filesystem name by string
</span><span style='display:block; white-space:pre;color:#404040;'> instead for a more robust detection.
</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/55214
</span>---
sysutils/afsctool/Portfile | 4 ++--
sysutils/afsctool/files/patch-apfs.diff | 18 ++++++++++++++++++
sysutils/afsctool/files/patch-sierra.diff | 18 ------------------
3 files changed, 20 insertions(+), 20 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/afsctool/Portfile b/sysutils/afsctool/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b3d8bfb..71df0e1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/afsctool/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/afsctool/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,7 +3,7 @@ PortSystem 1.0
</span> name afsctool
version 1.6.4
set distversion 34
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 3
</span> categories sysutils
platforms macosx
license GPL-3
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,7 +34,7 @@ pre-fetch {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-sierra.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-apfs.diff
</span>
use_configure no
universal_variant yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/afsctool/files/patch-apfs.diff b/sysutils/afsctool/files/patch-apfs.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5a182f5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/afsctool/files/patch-apfs.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Upstream-Status: Inappropriate; no canonical upstream exists,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ but this is based on https://github.com/RJVB/afsctool/pull/1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- afsctool.c 2017-11-07 16:00:24.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ afsctool.c 2017-11-07 16:12:20.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -131,8 +131,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (statfs(inFile, &fsInfo) < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (fsInfo.f_type != 17)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (strncasecmp(fsInfo.f_fstypename, "hfs", 3) != 0 && strncasecmp(fsInfo.f_fstypename, "apfs", 4) != 0) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fprintf(stderr, "%s: f_fstypename is %s (f_type = %d), but expected \"hfs\" or \"apfs\"\n",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ inFile, fsInfo.f_fstypename, fsInfo.f_type);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return;
</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;'>+ if (!S_ISREG(inFileInfo->st_mode))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/afsctool/files/patch-sierra.diff b/sysutils/afsctool/files/patch-sierra.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index a994b1a..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/afsctool/files/patch-sierra.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,18 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Upstream-Status: Inappropriate; no canonical upstream exists,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- but this is based on https://github.com/jrk/afsctool/pull/3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- afsctool.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ afsctool.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -131,9 +131,10 @@ void compressFile(const char *inFile, struct stat *inFileInfo, long long int max
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (statfs(inFile, &fsInfo) < 0)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- if (fsInfo.f_type != 17)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (fsInfo.f_type != 17 && fsInfo.f_type != 23) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fprintf(stderr, "%s: f_type is %d, but expected 17 or 23\n", fsInfo.f_type);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (!S_ISREG(inFileInfo->st_mode))
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if ((inFileInfo->st_flags & UF_COMPRESSED) != 0)
</span></pre><pre style='margin:0'>
</pre>