From owner-svn-ports-all@freebsd.org Thu Nov 12 16:31:17 2015 Return-Path: Delivered-To: svn-ports-all@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 8091AA2DC9C; Thu, 12 Nov 2015 16:31:17 +0000 (UTC) (envelope-from novel@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 594881AF0; Thu, 12 Nov 2015 16:31:17 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tACGVGTK086702; Thu, 12 Nov 2015 16:31:16 GMT (envelope-from novel@FreeBSD.org) Received: (from novel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tACGVGoE086700; Thu, 12 Nov 2015 16:31:16 GMT (envelope-from novel@FreeBSD.org) Message-Id: <201511121631.tACGVGoE086700@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: novel set sender to novel@FreeBSD.org using -f From: Roman Bogorodskiy Date: Thu, 12 Nov 2015 16:31:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401365 - head/devel/libvirt X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2015 16:31:17 -0000 Author: novel Date: Thu Nov 12 16:31:16 2015 New Revision: 401365 URL: https://svnweb.freebsd.org/changeset/ports/401365 Log: devel/libvirt: fix BHYVE option - Drop OSVERSION check that's always true because of incorrect version value - Fix plist when BHYVE option is disabled on systems where it's available While here, clean up trailing whitespace. Differential Revision: D4109 Modified: head/devel/libvirt/Makefile head/devel/libvirt/pkg-plist Modified: head/devel/libvirt/Makefile ============================================================================== --- head/devel/libvirt/Makefile Thu Nov 12 16:28:24 2015 (r401364) +++ head/devel/libvirt/Makefile Thu Nov 12 16:31:16 2015 (r401365) @@ -27,6 +27,9 @@ OPTIONS_DEFINE_amd64= XEN .if exists(/usr/sbin/bhyve) OPTIONS_DEFINE_amd64+= BHYVE OPTIONS_DEFAULT_amd64+= BHYVE +.else +PLIST_SUB+= BHYVE="@comment " +CONFIGURE_ARGS+= --without-bhyve .endif QEMU_DESC= QEMU driver BHYVE_DESC= bhyve driver @@ -34,6 +37,8 @@ XEN_DESC= Xen support via libxl OPTIONS_SUB= yes +BHYVE_CONFIGURE_WITH= bhyve + QEMU_CONFIGURE_WITH= qemu yajl QEMU_CFLAGS= -I${LOCALBASE}/include QEMU_LIB_DEPENDS= libyajl.so:${PORTSDIR}/devel/yajl @@ -56,7 +61,7 @@ VARDIR= /var USE_RC_SUBR= libvirtd GNU_CONFIGURE= yes -CONFIGURE_ARGS= --without-avahi \ +CONFIGURE_ARGS+= --without-avahi \ --without-polkit \ --without-hal \ --without-udev \ @@ -82,7 +87,7 @@ USE_PERL5= build USE_LDCONFIG= yes INSTALL_TARGET= install-strip SHLIB_VER= 0.1002.${PORTVERSION:E} -PLIST_SUB= PORTVERSION="-${PORTVERSION}" \ +PLIST_SUB+= PORTVERSION="-${PORTVERSION}" \ SHLIB_VER=${SHLIB_VER} PORTDOCS= * @@ -90,17 +95,6 @@ SUB_FILES= pkg-message .include -.if (exists(/usr/sbin/bhyve) && ${OSVERSION} >= 100051) -CONFIGURE_ARGS+= --with-bhyve -.else -CONFIGURE_ARGS+= --without-bhyve -.endif - -.if ${PORT_OPTIONS:MBHYVE} -STRIP_FILES+= lib/libvirt/connection-driver/libvirt_driver_bhyve.so -PLIST_FILES+= lib/libvirt/connection-driver/libvirt_driver_bhyve.so -.endif - .if !${PLIST_SUB:MXEN} PLIST_SUB+= XEN="@comment " .endif @@ -109,7 +103,7 @@ post-patch: @${MV} ${WRKSRC}/daemon/libvirtd.conf ${WRKSRC}/daemon/libvirtd.conf.sample @${REINPLACE_CMD} -e 's|libvirtd\.conf|libvirtd.conf.sample|' \ ${WRKSRC}/daemon/Makefile.in - + @${REINPLACE_CMD} -e 's|ln -s ../default.xml|true|' \ -e 's|$$(DESTDIR)$$(confdir)/qemu/networks|${STAGEDIR}${EXAMPLESDIR}/networks|' \ ${WRKSRC}/src/Makefile.in @@ -146,12 +140,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} .endfor -.if ${PORT_OPTIONS:MBHYVE} -.for strip in ${STRIP_FILES} - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${strip} -.endfor -.endif - .for dir in run/libvirt/network \ run/libvirt/qemu \ run/libvirt/lockd \ Modified: head/devel/libvirt/pkg-plist ============================================================================== --- head/devel/libvirt/pkg-plist Thu Nov 12 16:28:24 2015 (r401364) +++ head/devel/libvirt/pkg-plist Thu Nov 12 16:31:16 2015 (r401365) @@ -295,6 +295,7 @@ share/gtk-doc/html/libvirt/up.png %%NLS%%share/locale/zh_CN/LC_MESSAGES/libvirt.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/libvirt.mo %%NLS%%share/locale/zu/LC_MESSAGES/libvirt.mo +%%BHYVE%%lib/libvirt/connection-driver/libvirt_driver_bhyve.so %%QEMU%%lib/libvirt/connection-driver/libvirt_driver_qemu.so lib/libvirt/connection-driver/libvirt_driver_network.so lib/libvirt/connection-driver/libvirt_driver_secret.so