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
*** Bug 207711 has been marked as a duplicate of this bug. ***
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>
Removed from tree.