commit:     67d64bb339ba9bf7e5dcf972ddb39d79df2c54b1
Author:     Yuta SATOH <nigoro.dev <AT> gmail <DOT> com>
AuthorDate: Sat Oct  8 13:26:06 2016 +0000
Commit:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
CommitDate: Sat Oct  8 13:26:06 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-bsd.git/commit/?id=67d64bb3

sys-freebsd/freebsd-sources: disable hyperv on x86-fbsd.

 sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild 
b/sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild
index c649b12..9a442c6 100644
--- a/sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild
+++ b/sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild
@@ -92,6 +92,12 @@ src_prepare() {
        use debug || echo 'nomakeoptions DEBUG' >> "${conf}"
        use dtrace || echo 'nomakeoptions WITH_CTF' >> "${conf}"
 
+       # hyperv fails to compile on x86-fbsd.
+       if use x86-fbsd && [[ $(tc-getCC) == *gcc* ]] ; then
+               echo 'nodevice hyperv' >> "${conf}"
+               dummy_mk modules/hyperv
+       fi
+
        # Only used with USE=build-kernel, let the kernel build with its own 
flags, its safer.
        unset LDFLAGS CFLAGS CXXFLAGS ASFLAGS KERNEL
 }

Reply via email to