Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207710 - app-emulation/qemu-softmmu-0.9.0 fix for Gentoo/FreeBSD
Summary: app-emulation/qemu-softmmu-0.9.0 fix for Gentoo/FreeBSD
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 FreeBSD
: High enhancement (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
: 207711 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-27 17:02 UTC by f.mensik
Modified: 2012-03-08 16:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description f.mensik 2008-01-27 17:02:08 UTC
please, update app-emulation/qemu-softmmu-0.9.0.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.ebuild_orig	2008-01-04 18:43:56 +0100
+++ qemu-softmmu-0.9.0.ebuild	2008-01-06 00:31:18 +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"
 
@@ -66,6 +66,7 @@
 	sed -i 's:$(INSTALL) -m 755 -s:$(INSTALL) -m 755:' Makefile Makefile.target
 
 	epatch ${FILESDIR}/${P}-ide-cd.patch
+	epatch ${FILESDIR}/${P}-freebsd-osdep.patch
 }
 
 src_compile() {
@@ -81,12 +82,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
*** Bug 207711 has been marked as a duplicate of this bug. ***
Comment 2 f.mensik 2008-01-27 17:27:45 UTC
here is qemu-softmmu-0.9.0-freebsd-osdep.patch file body:

--- osdep.c	2008-01-06 00:26:51 +0100
+++ osdep.c.new	2008-01-06 00:24:43 +0100
@@ -79,7 +79,12 @@
 
 #if defined(USE_KQEMU)
 
+#ifdef __FreeBSD__
+#include <sys/param.h>
+#include <sys/mount.h>
+#else
 #include <sys/vfs.h>
+#endif
 #include <sys/mman.h>
 #include <fcntl.h>
 
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2012-03-08 16:29:30 UTC
Removed from tree.