В сообщении от Понедельник 15 марта 2010 18:58:45 автор Thomas Zimmermann 
написал:
> Please check the following patch, as i've no exprience with
> BBCLASSEXTEND="native" and i don't want to break qemu.

Thanks for reporting, first of all.

> -DEPENDS = "zlib"
> +DEPENDS = "zlib-native"

zlib-native is already a dependency for qemu-native thanks to BBCLASSEXTEND 
magic.

>  do_configure() {
> +       export QEMU_CFLAGS="-I${STAGING_INCDIR_NATIVE} ${QEMU_CFLAGS}"
>         ${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
>  }

And this one should only be added for native.

So I think something like attached patch should be a bit better. Please try 
that.

-- 
 http://roman.khimov.ru
mailto: [email protected]
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
From e6f9e79ea507644a413be9f0954fb57c6da15286 Mon Sep 17 00:00:00 2001
From: Roman I Khimov <[email protected]>
Date: Mon, 15 Mar 2010 23:55:00 +0300
Subject: [PATCH] qemu: fix build with zlib-dev missing on host

OE provides its own zlib-native and qemu-native should use that.

Thanks to Thomas Zimmermann <[email protected]> for spotting it.

Signed-off-by: Roman I Khimov <[email protected]>
---
 recipes/qemu/qemu_0.12.3.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/recipes/qemu/qemu_0.12.3.bb b/recipes/qemu/qemu_0.12.3.bb
index 035b1a5..d1971e9 100644
--- a/recipes/qemu/qemu_0.12.3.bb
+++ b/recipes/qemu/qemu_0.12.3.bb
@@ -1,7 +1,7 @@
 LICENSE = "GPL"
 DEPENDS = "zlib"
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "\
     http://download.savannah.gnu.org/releases/qemu/qemu-${PV}.tar.gz;name=qemu-${PV} \
@@ -31,6 +31,10 @@ EXTRA_OECONF += "--disable-sdl --disable-strip"
 
 inherit autotools
 
+do_configure_prepend_virtclass-native() {
+	export QEMU_CFLAGS="-I${STAGING_INCDIR_NATIVE} ${QEMU_CFLAGS}"
+}
+
 do_configure() {
 	${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
 }
-- 
1.6.4.2

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to