Permalink
Browse files

kvm_stat fix and havekernel USE flag

- Fix install of kvm_stat (had wrong path)
- Add a havekernel USE flag that bypasses the kernel tests.  It allows kvm to be
  emerged on boxed with binary deployed kernels.
- Thanks to Lance Albertson for both.
  • Loading branch information...
dang committed Jun 29, 2008
1 parent 1856c03 commit 7dc38d8d6ff4476301583469946d0ae8718567c8
Showing with 13 additions and 6 deletions.
  1. +1 −1 app-emulation/kvm/Manifest
  2. +12 −5 app-emulation/kvm/kvm-70.ebuild
@@ -27,5 +27,5 @@ EBUILD kvm-66.ebuild 5223 RMD160 1620e6a94aa8cef3eae801875e64849c3c4d33b0 SHA1 b
EBUILD kvm-67.ebuild 5125 RMD160 7b91cee4102b3de2e1ab8e6f85773bd742d2323e SHA1 2b698beeff79d4955bd42f881f033edc1dd07661 SHA256 5166f4737c7466611f4ae6d6b3c73adae3e46bf73a465ec62f16ca1b597dfa43
EBUILD kvm-68.ebuild 5071 RMD160 499c87b2c52508235ea6bf4a6eacfda21992f6ce SHA1 1e4e85babb5bcf48f6fac7d08c356d7a4c916859 SHA256 56827e0ccb2624589d56c982d9753a90cade895a50ebb9f400a80510dd9f0d92
EBUILD kvm-69.ebuild 5085 RMD160 21ebac950ed23ddd61256f3cc385ac1d0ff51269 SHA1 f2f64416f83e8ae0f012f1108faa8121d042411b SHA256 901a9ce42423690d8aff20ca74a569f63996d45ca90319b912217be6f897b3ec
-EBUILD kvm-70.ebuild 5061 RMD160 f842036252bbd30379cf7b1894015598163fdf33 SHA1 99fe1fef2b7ac98f1dda63b367e57dbaf53180af SHA256 597abae0e7f7f7f2b0a6874a2965f6357b08eb102b7d0c27a9e8b4432b643156
+EBUILD kvm-70.ebuild 5434 RMD160 8e91c8a55afee989dc725bed132f2bc2f641e4df SHA1 f643404e335baa3b0ec93c3c52b6e178a1e86f3a SHA256 965928f92da6c568544a64b2b968eda8c0c713f8d99d700d2b4522ea5551bdcb
MISC metadata.xml 522 RMD160 b91a05561d890f51973f13efdab5e8475da047a6 SHA1 4380232dab1041b82b6203712369312506d304c2 SHA256 afae4b8980fe14330e217154e0b749f2ade187e29005ba915a99dc134c0822c6
@@ -12,8 +12,8 @@ HOMEPAGE="http://kvm.qumranet.com/kvmwiki"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
-IUSE="alsa bios esd gnutls ncurses sdl test"
-RESTRICT="mirror test"
+IUSE="alsa bios esd gnutls havekernel ncurses sdl test"
+RESTRICT="mirror test havekernel"
RDEPEND="sys-libs/zlib
alsa? ( >=media-libs/alsa-lib-1.0.13 )
@@ -34,15 +34,22 @@ DEPEND="${RDEPEND}
QA_TEXTRELS="usr/bin/kvm"
pkg_setup() {
- if kernel_is lt 2 6 22; then
+ # check kernel version
+ if use havekernel ; then
+ ewarn "You have the 'havekernel' use flag set. This means you"
+ ewarn "must ensure you have a compatible kernel on your own."
+ elif kernel_is lt 2 6 22; then
eerror "the kvm in your kernel requires an older version of"
eerror "kvm as shown in :"
eerror " http://kvm.qumranet.com/kvmwiki/Downloads"
die "kvm version not compatible"
fi
# check for kvm support
- if ! linux_chkconfig_present KVM; then
+ if use havekernel ; then
+ ewarn "You have the 'havekernel' use flag set. This means you"
+ ewarn "must ensure your kernel has KVM support enable on your own"
+ elif ! linux_chkconfig_present KVM; then
eerror "Please enable KVM support in your kernel, found at:"
eerror
eerror " Virtualization"
@@ -133,7 +140,7 @@ src_install() {
emake DESTDIR="${D}" kcmd='#' install || die "make install failed"
exeinto /usr/bin/
- doexe /kvm_stat
+ doexe "${S}/kvm_stat"
mv "${D}"/usr/share/man/man1/qemu.1 "${D}"/usr/share/man/man1/kvm.1
mv "${D}"/usr/share/man/man1/qemu-img.1 "${D}"/usr/share/man/man1/kvm-img.1

0 comments on commit 7dc38d8

Please sign in to comment.