<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/92a031da26545716e0de1ffd6db6b33283db49cd">https://github.com/macports/macports-ports/commit/92a031da26545716e0de1ffd6db6b33283db49cd</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 92a031da26545716e0de1ffd6db6b33283db49cd
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Tue Jan 17 11:48:59 2017 -0800
<span style='display:block; white-space:pre;color:#404040;'> xhyve: Install man page and provide codesigning instructions
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
emulators/xhyve/Portfile | 35 ++++++++++++++++++++++-------------
emulators/xhyve/files/no-Werror.patch | 10 ----------
2 files changed, 22 insertions(+), 23 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/xhyve/Portfile b/emulators/xhyve/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5780b83..fd0bb78 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/xhyve/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/xhyve/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,9 +2,10 @@
</span>
PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup xcode 1.0
</span>
github.setup xhyve-xyz xhyve 181d34c5053c03439a1c709bc7d933b6aa9e305c
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 20160117
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 20170117
</span> categories emulators
platforms darwin
supported_archs x86_64
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,6 +22,11 @@ long_description \
</span> checksums rmd160 3372c403dd82c103c88469a2e72192c8daf0f12a \
sha256 777dbe14c484a4a29e61c11937d3cc36497f3fa3064114722f6e24d7a8c06763
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|test/|${prefix}/share/${name}/test/|" ${worksrcpath}/${name}run.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|build/${name}|${prefix}/bin/${name}|" ${worksrcpath}/${name}run.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> pre-fetch {
if {${os.platform} ne "darwin" || ${os.major} < 14} {
ui_error "${name} requires Hypervisor.framework from OS X Yosemite or later:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,21 +34,24 @@ pre-fetch {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles no-Werror.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+xcode.destroot.path ${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args-append INSTALL_PREFIX=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.args-append INSTALL_PREFIX=${prefix}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|test/|${prefix}/share/${name}/test/|" ${worksrcpath}/${name}run.sh
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|build/${name}|${prefix}/bin/${name}|" ${worksrcpath}/${name}run.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Temporary workaround for <rdar://problem/30056438
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# codesign fails with CSSMERR_CSP_INVALID_CONTEXT_HANDLE during destroot (but not build) when building through MacPorts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args-append CODE_SIGN_ENTITLEMENTS="" CODE_SIGN_IDENTITY=""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.args-append CODE_SIGN_ENTITLEMENTS="" CODE_SIGN_IDENTITY=""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 -W ${worksrcpath} src/xhyve-entitlements.plist ${destroot}${prefix}/share/${name}/entitlements.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "Please codesign ${prefix}/bin/xhyve with an appropriate identity and entitlements.plist:"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg " sudo /usr/bin/codesign --force --sign <identity> -o library --entitlements ${prefix}/share/${name}/entitlements.plist ${xcode.destroot.path}/xhyve"
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args CC="${configure.cc}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LD="${configure.cc}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- V=1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -W ${worksrcpath} build/${name} ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span> xinstall -d -m 755 ${destroot}${prefix}/libexec/${name}
xinstall -m 755 -W ${worksrcpath} ${name}run.sh ${destroot}${prefix}/libexec/${name}/${name}run.sh.sample
xinstall -d -m 755 ${destroot}${prefix}/share/${name}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/xhyve/files/no-Werror.patch b/emulators/xhyve/files/no-Werror.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index c30c1f9..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/xhyve/files/no-Werror.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- config.mk.orig 2015-07-26 21:07:09.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ config.mk 2016-11-24 01:48:47.000000000 -0600
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -33,7 +33,6 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS_WARN := \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -Weverything \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- -Werror \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -Wno-unknown-warning-option \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -Wno-reserved-id-macro \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -pedantic
</span></pre><pre style='margin:0'>
</pre>