<pre style='margin:0'>
Dan Villiom Podlaski Christiansen (danchr) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e932039bec1ee7b11d35d56f88bedbcdd0031da1">https://github.com/macports/macports-ports/commit/e932039bec1ee7b11d35d56f88bedbcdd0031da1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit e932039bec1ee7b11d35d56f88bedbcdd0031da1
</span>Author: Dan Villiom Podlaski Christiansen <danchr@macports.org>
AuthorDate: Fri Nov 17 17:57:15 2017 +0100
<span style='display:block; white-space:pre;color:#404040;'> xhyve: add patch to fix build (maintainer timeout)
</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/55323
</span>---
emulators/xhyve/Portfile | 3 +++
emulators/xhyve/files/missing-include.diff | 36 ++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
<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 f770460..fa9628c 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;'>@@ -22,6 +22,9 @@ long_description \
</span> checksums rmd160 3372c403dd82c103c88469a2e72192c8daf0f12a \
sha256 777dbe14c484a4a29e61c11937d3cc36497f3fa3064114722f6e24d7a8c06763
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles missing-include.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
reinplace "s|test/|${prefix}/share/${name}/test/|" ${worksrcpath}/${name}run.sh
reinplace "s|build/${name}|${prefix}/bin/${name}|" ${worksrcpath}/${name}run.sh
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/xhyve/files/missing-include.diff b/emulators/xhyve/files/missing-include.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c1c255f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/xhyve/files/missing-include.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 2f963fbacdfd93ff419b9ecd21338ec97b594448 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Dan Villiom Podlaski Christiansen <dan@magenta.dk>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Fri, 17 Nov 2017 17:41:50 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] fix Xcode build by adding two missing includes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+I'm not sure why Xcode requires these, whereas the Makefile build does
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+not, but adding them fixes it, and with it the MacPorts port.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/consport.c | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/pci_virtio_net_tap.c | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 2 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/consport.c b/src/consport.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f5d0b73..abfcc86 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/consport.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/consport.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -33,6 +33,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <termios.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdbool.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/select.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <xhyve/support/misc.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/pci_virtio_net_tap.c b/src/pci_virtio_net_tap.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 4268528..cab61cb 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/pci_virtio_net_tap.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/pci_virtio_net_tap.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -37,6 +37,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <assert.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/select.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/param.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/uio.h>
</span></pre><pre style='margin:0'>
</pre>