pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add latest xhyve



Module Name:	pkgsrc-wip
Committed By:	KFL <kludev%gmail.com@localhost>
Pushed By:	klu
Date:		Mon Feb 14 13:00:42 2022 -0800
Changeset:	80fd13369ad4ac8a311309c7195876a76c902225

Added Files:
	xhyve/DESCR
	xhyve/Makefile
	xhyve/PLIST
	xhyve/README
	xhyve/distinfo
	xhyve/patches/patch-Makefile
	xhyve/patches/patch-src_vmm_io_vatpit.c

Log Message:
Add latest xhyve

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=80fd13369ad4ac8a311309c7195876a76c902225

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xhyve/DESCR                             |  1 +
 xhyve/Makefile                          | 18 ++++++++++++++++++
 xhyve/PLIST                             |  4 ++++
 xhyve/README                            |  2 ++
 xhyve/distinfo                          |  7 +++++++
 xhyve/patches/patch-Makefile            | 16 ++++++++++++++++
 xhyve/patches/patch-src_vmm_io_vatpit.c | 15 +++++++++++++++
 7 files changed, 63 insertions(+)

diffs:
diff --git a/xhyve/DESCR b/xhyve/DESCR
new file mode 100644
index 0000000000..5334cb33c7
--- /dev/null
+++ b/xhyve/DESCR
@@ -0,0 +1 @@
+Port of FreeBSD's bhyve to OS X, running on top of Hypervisor.framework
diff --git a/xhyve/Makefile b/xhyve/Makefile
new file mode 100644
index 0000000000..ceccfc2877
--- /dev/null
+++ b/xhyve/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	xhyve
+GITHUB_TAG= 	${PKGVERSION_NOREV}
+DISTNAME=	xhyve-dfbe09b9db0ef9384c993db8e72fb3e96f376e7b
+CATEGORIES=	sysutils
+MASTER_SITES=	${MASTER_SITE_GITHUB:=machyve/}
+EXTRACT_SUFX=	.zip
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	kludev%gmail.com@localhost
+HOMEPAGE=	https://github.com/machyve/xhyve/
+COMMENT=	Port of FreeBSD's bhyve to OS X
+LICENSE=	2-clause-bsd
+
+USE_TOOLS+=	gmake
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/xhyve/PLIST b/xhyve/PLIST
new file mode 100644
index 0000000000..66e6bf5143
--- /dev/null
+++ b/xhyve/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/opt/pkg/bin/bmake package"
+@comment TODO: 2. run "/opt/pkg/bin/bmake print-PLIST"
diff --git a/xhyve/README b/xhyve/README
new file mode 100644
index 0000000000..18d489b937
--- /dev/null
+++ b/xhyve/README
@@ -0,0 +1,2 @@
+pkgsrc's sysutils/xhyve is very outdated and won't compile on more recent macos. This WIP package brings in a more recent commit from Github repo. With it,
+I can compile on Darwin 21.3.0 x86_64. However, I do have trouble running it.
diff --git a/xhyve/distinfo b/xhyve/distinfo
new file mode 100644
index 0000000000..af37832f24
--- /dev/null
+++ b/xhyve/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (xhyve/xhyve-dfbe09b9db0ef9384c993db8e72fb3e96f376e7b-dfbe09b9db0ef9384c993db8e72fb3e96f376e7b.zip) = 9940f3d3ec5fe20828e8f38d9d2c4ad95b22f71d91f5f0c83a182648a3468760
+SHA512 (xhyve/xhyve-dfbe09b9db0ef9384c993db8e72fb3e96f376e7b-dfbe09b9db0ef9384c993db8e72fb3e96f376e7b.zip) = 301e0eeff2593755824136ad4f39890f4a8fd3b4d970ff5502f697ff10b2799391ce1b590de1680eb15d0eca91f630e857940e59d51c9e3199f1efe2ea6294d6
+Size (xhyve/xhyve-dfbe09b9db0ef9384c993db8e72fb3e96f376e7b-dfbe09b9db0ef9384c993db8e72fb3e96f376e7b.zip) = 11869500 bytes
+SHA1 (patch-Makefile) = 37060dcfd4ff70fcd952f5c1af9ce9687d64b966
+SHA1 (patch-src_vmm_io_vatpit.c) = 3d15972184ba796545180eb0942e63f4e9612194
diff --git a/xhyve/patches/patch-Makefile b/xhyve/patches/patch-Makefile
new file mode 100644
index 0000000000..d253c2410f
--- /dev/null
+++ b/xhyve/patches/patch-Makefile
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Suppress poison-system-directories warning, as xhyve is not
+intended for crossplatform
+
+--- Makefile.orig	2021-10-01 21:16:50.000000000 -0700
++++ Makefile	2022-02-14 11:57:12.000000000 -0800
+@@ -85,7 +85,7 @@
+ DEP := $(OBJ:%.o=%.d)
+ INC := -Iinclude
+ 
+-CFLAGS += -DVERSION=\"$(GIT_VERSION)\"
++CFLAGS += -DVERSION=\"$(GIT_VERSION)\" -Wno-error=poison-system-directories
+ 
+ TARGET = build/xhyve
+ 
diff --git a/xhyve/patches/patch-src_vmm_io_vatpit.c b/xhyve/patches/patch-src_vmm_io_vatpit.c
new file mode 100644
index 0000000000..fe71bdd680
--- /dev/null
+++ b/xhyve/patches/patch-src_vmm_io_vatpit.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Explicitly cast delta_ticks to make it compile
+
+--- src/vmm/io/vatpit.c.orig	2021-10-01 21:16:50.000000000 -0700
++++ src/vmm/io/vatpit.c	2022-02-14 12:03:53.000000000 -0800
+@@ -204,7 +204,7 @@
+ 
+ 	delta_ticks = (sbinuptime() - c->now_sbt) / vatpit->freq_sbt;
+ 
+-	lval = c->initial - delta_ticks % c->initial;
++	lval = c->initial - (uint16_t)delta_ticks % c->initial;
+ 
+ 	if (latch) {
+ 		c->olbyte = 2;


Home | Main Index | Thread Index | Old Index