Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 207711

Summary: app-emulation/qemu-softmmu-0.9.0-r1.ebuild file on Gentoo/FreeBSD
Product: Gentoo Linux Reporter: f.mensik <f.mensik>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---

Description f.mensik 2008-01-27 17:06:16 UTC
please, update app-emulation/qemu-softmmu-0.9.0-r1.ebuild file to work on
Gentoo/FreeBSD.
The "uname -a" output is: FreeBSD laptik 6.2-RELEASE FreeBSD Gentoo 6.2-r3 #0:
Mon Nov 19 11:18:21 CET 2007    
root@laptik:/usr/src/sys-6.2-r3/i386/compile/GENERIC  i386
I have compiled qemu on i686 architecture using gcc-3.3.6 compiler.

here is the patch:
--- qemu-softmmu-0.9.0-r1.ebuild_orig	2007-11-13 01:36:22 +0100
+++ qemu-softmmu-0.9.0-r1.ebuild	2008-01-06 00:30:45 +0100
@@ -10,7 +10,7 @@
 
 LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
-KEYWORDS="-alpha amd64 ppc -sparc x86"
+KEYWORDS="-alpha amd64 ppc -sparc x86 ~x86-fbsd"
 IUSE="sdl kqemu alsa"  #qvm86 debug nptl qemu-fast nptlonly"
 RESTRICT="strip test"
 
@@ -67,6 +67,7 @@
 
 	epatch ${FILESDIR}/${P}-ide-cd.patch
 	epatch ${FILESDIR}/${P}-block-qcow2.patch
+	epatch ${FILESDIR}/${P}-freebsd-osdep.patch
 }
 
 src_compile() {
@@ -82,12 +83,17 @@
 	if ! use sdl ; then
 		myconf="$myconf --disable-gfx-check"
 	fi
+	if [ "${KERNEL}" = "linux" ]; then
+		myconf="$myconf --kernel-path=${KV_DIR}"
+	elif [ "${KERNEL}" = "FreeBSD" ]; then
+		myconf="$myconf --kernel-path=/usr/src/sys"
+	fi
+
 	./configure \
 		--prefix=/usr \
 		--enable-slirp --enable-adlib \
 		--cc=$(tc-getCC) \
 		--host-cc=$(tc-getCC) \
-		--kernel-path=${KV_DIR} \
 		--disable-linux-user \
 		--enable-system \
 		$(use_enable sdl)\



Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-27 17:07:54 UTC

*** This bug has been marked as a duplicate of bug 207710 ***