<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/14ca1ce6b3014ab09bf948bf5152e611a95d8696">https://github.com/macports/macports-ports/commit/14ca1ce6b3014ab09bf948bf5152e611a95d8696</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 14ca1ce libarchive and cmake: add temporary patch to fix building using Xcode 9.0
</span>14ca1ce is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 14ca1ce6b3014ab09bf948bf5152e611a95d8696
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Wed Sep 20 20:34:24 2017 -0400
<span style='display:block; white-space:pre;color:#404040;'> libarchive and cmake: add temporary patch to fix building using Xcode 9.0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> addresses MacPorts ticket: https://trac.macports.org/ticket/54875
</span><span style='display:block; white-space:pre;color:#404040;'> see also: https://gitlab.kitware.com/cmake/cmake/issues/17101
</span><span style='display:block; white-space:pre;color:#404040;'> and: https://github.com/libarchive/libarchive/pull/953
</span>---
archivers/libarchive/Portfile | 5 +++++
.../files/patch-libarchive-archive_platform.h.diff | 20 ++++++++++++++++++++
devel/cmake/Portfile | 7 ++++++-
...patch-Source-kwsys-kwsysPlatformTestsCXX.cxx.diff | 15 +++++++++++++++
4 files changed, 46 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/libarchive/Portfile b/archivers/libarchive/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 761ab60a..3dc31ba 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/libarchive/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/libarchive/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,6 +16,7 @@ long_description \
</span> platforms darwin
version 3.3.2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> checksums rmd160 2a50a7ba2a213b0c0c251b20fdee23ebbd3703a5 \
sha256 ed2dbd6954792b2c054ccf8ec4b330a54b85904a80cef477a1c74643ddafa0ce
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +29,10 @@ depends_lib port:bzip2 port:zlib port:libxml2 port:xz \
</span>
patchfiles patch-libarchive__archive_read_support_format_lha.c.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# temporary patch to fix building using Xcode 9.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see also: https://trac.macports.org/ticket/54875
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-libarchive-archive_platform.h.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> use_autoreconf yes
autoreconf.cmd "build/autogen.sh"
autoreconf.args -fvi
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/libarchive/files/patch-libarchive-archive_platform.h.diff b/archivers/libarchive/files/patch-libarchive-archive_platform.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..974f4b5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/libarchive/files/patch-libarchive-archive_platform.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libarchive/archive_platform.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libarchive/archive_platform.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -52,6 +52,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #error Oops: No config.h and no pre-built configuration in archive_platform.h.
</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;'>++/* On macOS check for some symbols based on the deployment target version. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# undef HAVE_FUTIMENS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# undef HAVE_UTIMENSAT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define HAVE_FUTIMENS 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define HAVE_UTIMENSAT 1
</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;'>+ /* It should be possible to get rid of this by extending the feature-test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * macros to cover Windows API functions, probably along with non-trivial
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * refactoring of code to find structures that sit more cleanly on top of
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/cmake/Portfile b/devel/cmake/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fbd8d81..43bb943 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/cmake/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/cmake/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,7 +30,7 @@ if {${subport} eq ${name}} {
</span> # release
version ${branch}.2
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 2
</span> checksums rmd160 133cfee5d133675b94851a4583d9e8186eb9654d \
sha256 954a5801a456ee48e76f01107c9a4961677dd0f3e115275bbd18410dc22ba3c1
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,6 +58,7 @@ if {${subport} eq ${name}} {
</span> # devel
version 20170919
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</span> set commit 33ead73d731c93399dba5da5bc299f3ca32beb45
checksums rmd160 320ca7ff39ad65d321544cd377e9aceb8ebcf24b \
sha256 885164f5a717a7a497bde5b364cb937f45cc26c8f39ad6d5c8d95a064e64b28e
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -92,6 +93,10 @@ if {${subport} eq ${name}} {
</span>
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# temporary patch for allow for building using Xcode 9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see also: https://trac.macports.org/ticket/54875
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-Source-kwsys-kwsysPlatformTestsCXX.cxx.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib-append port:curl \
port:expat \
port:zlib \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/cmake/files/patch-Source-kwsys-kwsysPlatformTestsCXX.cxx.diff b/devel/cmake/files/patch-Source-kwsys-kwsysPlatformTestsCXX.cxx.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..d748b65
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/cmake/files/patch-Source-kwsys-kwsysPlatformTestsCXX.cxx.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;'>+--- Source/kwsys/kwsysPlatformTestsCXX.cxx.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Source/kwsys/kwsysPlatformTestsCXX.cxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -265,6 +265,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <fcntl.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/stat.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if MAC_OS_X_VERSION_MIN_REQUIRED < 101300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#error "utimensat not available on macOS < 10.13"
</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;'>+ int main()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct timespec times[2] = { { 0, UTIME_OMIT }, { 0, UTIME_NOW } };
</span></pre><pre style='margin:0'>
</pre>