From owner-svn-ports-head@freebsd.org Sat Dec 23 09:58:56 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 860CFEA17E3; Sat, 23 Dec 2017 09:58:56 +0000 (UTC) (envelope-from marck@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 512C87DC90; Sat, 23 Dec 2017 09:58:56 +0000 (UTC) (envelope-from marck@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBN9wt9i078161; Sat, 23 Dec 2017 09:58:55 GMT (envelope-from marck@FreeBSD.org) Received: (from marck@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBN9wtsa078157; Sat, 23 Dec 2017 09:58:55 GMT (envelope-from marck@FreeBSD.org) Message-Id: <201712230958.vBN9wtsa078157@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marck set sender to marck@FreeBSD.org using -f From: Dmitry Morozovsky Date: Sat, 23 Dec 2017 09:58:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457036 - in head/sysutils/vm-bhyve: . files X-SVN-Group: ports-head X-SVN-Commit-Author: marck X-SVN-Commit-Paths: in head/sysutils/vm-bhyve: . files X-SVN-Commit-Revision: 457036 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Dec 2017 09:58:56 -0000 Author: marck (doc committer) Date: Sat Dec 23 09:58:55 2017 New Revision: 457036 URL: https://svnweb.freebsd.org/changeset/ports/457036 Log: Merge 2 useful diffs from the dev tree: - compatibility with verbose boot - proper treatment for undefined vm_dir PR: 222496 Approved by: maintainer-timeout (since 20170921) Added: head/sysutils/vm-bhyve/files/ head/sysutils/vm-bhyve/files/patch-lib_vm-util (contents, props changed) head/sysutils/vm-bhyve/files/patch-lib_vm-zfs (contents, props changed) Modified: head/sysutils/vm-bhyve/Makefile Modified: head/sysutils/vm-bhyve/Makefile ============================================================================== --- head/sysutils/vm-bhyve/Makefile Sat Dec 23 09:55:08 2017 (r457035) +++ head/sysutils/vm-bhyve/Makefile Sat Dec 23 09:58:55 2017 (r457036) @@ -2,6 +2,7 @@ PORTNAME= vm-bhyve PORTVERSION= 1.1.8 +PORTREVISION= 1 DISTVERSIONPREFIX=v CATEGORIES= sysutils Added: head/sysutils/vm-bhyve/files/patch-lib_vm-util ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/vm-bhyve/files/patch-lib_vm-util Sat Dec 23 09:58:55 2017 (r457036) @@ -0,0 +1,22 @@ +--- lib/vm-util.orig ++++ lib/vm-util +@@ -55,7 +55,7 @@ + # @modifies VM_NO_UG + # + util::check_bhyve_support(){ +- local _mesg _result ++ local _mesg _mesg1 _mesg2 _result + + # basic checks + [ `id -u` -ne 0 ] && util::err "virtual machines can only be managed by root" +@@ -73,7 +73,9 @@ + fi + + # check ept for intel +- _mesg=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1) ++ _mesg1=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1) ++ _mesg2=$(grep -E '^[ ]+Secondary Processor Controls' /var/run/dmesg.boot | tail -n 1) ++ _mesg="${_mesg1}${_mesg2}" + + if [ -n "${_mesg}" ]; then + Added: head/sysutils/vm-bhyve/files/patch-lib_vm-zfs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/vm-bhyve/files/patch-lib_vm-zfs Sat Dec 23 09:58:55 2017 (r457036) @@ -0,0 +1,11 @@ +--- lib/vm-zfs.orig ++++ lib/vm-zfs +@@ -45,7 +45,7 @@ + + # check for zfs storage location + # user should specify "zfs:pool/dataset" if they want ZFS support +- if [ ${vm_dir%%:*} = "zfs" ]; then ++ if [ "${vm_dir%%:*}" = "zfs" ]; then + + # check zfs running + kldstat -qm zfs >/dev/null 2>&1