<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3d20f976c083a4c16a29a8c4e9b7aba191d46bbc">https://github.com/macports/macports-ports/commit/3d20f976c083a4c16a29a8c4e9b7aba191d46bbc</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 3d20f976c083a4c16a29a8c4e9b7aba191d46bbc
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sat Dec 5 09:44:24 2020 -0800
<span style='display:block; white-space:pre;color:#404040;'> libarchive: enable tests
</span>---
archivers/libarchive/Portfile | 7 +++++
.../patch-libarchive-3.5-fix-tests-tiger.diff | 31 ++++++++++++++++++++++
2 files changed, 38 insertions(+)
<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 8c48c76b85f..fc8d4ff3c13 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;'>@@ -34,6 +34,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;'>+platform darwin 8 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-libarchive-3.5-fix-tests-tiger.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build port:pkgconfig
configure.args --enable-bsdtar=shared --enable-bsdcpio=shared \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,5 +51,8 @@ post-destroot {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target check
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> livecheck.type regex
livecheck.regex libarchive-(\[0-9.\]+)\\.tar.gz
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/libarchive/files/patch-libarchive-3.5-fix-tests-tiger.diff b/archivers/libarchive/files/patch-libarchive-3.5-fix-tests-tiger.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2695be154c8
</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-3.5-fix-tests-tiger.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;'>+diff --git libarchive/test/test_entry.c libarchive/test/test_entry.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f205764..33cefe4 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libarchive/test/test_entry.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libarchive/test/test_entry.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -427,6 +427,9 @@ DEFINE_TEST(test_entry)
</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 defined(__FreeBSD__) || defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef UF_HIDDEN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define UF_HIDDEN 0x00008000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Test archive_entry_copy_fflags_text_w() */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ archive_entry_copy_fflags_text_w(e, L" ,nouappnd, nouchg, dump,hidden");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ archive_entry_fflags(e, &set, &clear);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git tar/test/test_option_acls.c tar/test/test_option_acls.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f7451c8..de9b9b0 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- tar/test/test_option_acls.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ tar/test/test_option_acls.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -44,8 +44,12 @@ static const acl_perm_t acl_perms[] = {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ACL_WRITE_EXTATTRIBUTES,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ACL_READ_SECURITY,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ACL_WRITE_SECURITY,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ACL_CHANGE_OWNER,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ACL_SYNCHRONIZE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ACL_CHANGE_OWNER
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else /* !ARCHIVE_ACL_DARWIN */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ACL_EXECUTE,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ACL_WRITE,
</span></pre><pre style='margin:0'>
</pre>