From: Thomas Zimmermann <ml@vdm-design.de>
To: openembedded-devel@lists.openembedded.org
Subject: qemu: fails to build without zlib-dev installed on buildhost
Date: Mon, 15 Mar 2010 16:58:45 +0100 [thread overview]
Message-ID: <201003151658.45421.ml@vdm-design.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
Hi,
i tried to build an image on a minimal system today, to check which depencies
are needed to build the image.
First thing that fails is qemu-native. It Fails during do_configure because of
missing zlib headers.
So i tried to build zlib-native first, but that has changed nothing. After
looking at the configure script it seems that the check just uses $QEMU_CFLAGS
which contains only "-I. -I${SRC_DIR}" so adding -I${STAGIUNG_INCDIR_NATIVE}
to $QEMU_CFLAGS solves that issue.
Please check the following patch, as i've no exprience with
BBCLASSEXTEND="native" and i don't want to break qemu.
Regards
Thomas
[-- Attachment #2: 0001-qemu-fix-build-without-zlib-headers-installed-on-bui.patch --]
[-- Type: text/x-patch, Size: 1199 bytes --]
From e19f00968b9d865088ef3a45a85825c5fc17edc5 Mon Sep 17 00:00:00 2001
From: Thomas Zimmermann <ml@vdm-design.de>
Date: Mon, 15 Mar 2010 16:42:14 +0100
Subject: [PATCH] qemu: fix build without zlib headers installed on buildhost
*qemu-native fails to build without zlib-dev package installed on buildhost
*configure script just adds -I. and -I${SRC_DIR} to QEMU_CFLAGS to build checks,
so it fails to build without headers installed on host
*change DEPENDS from zlib to zlib-native to install zlib headers in staging
Signed-off-by: Thomas Zimmermann <ml@vdm-design.de>
---
recipes/qemu/qemu_0.12.3.bb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/recipes/qemu/qemu_0.12.3.bb b/recipes/qemu/qemu_0.12.3.bb
index 035b1a5..bc5c251 100644
--- a/recipes/qemu/qemu_0.12.3.bb
+++ b/recipes/qemu/qemu_0.12.3.bb
@@ -1,5 +1,5 @@
LICENSE = "GPL"
-DEPENDS = "zlib"
+DEPENDS = "zlib-native"
PR = "r0"
@@ -32,5 +32,6 @@ EXTRA_OECONF += "--disable-sdl --disable-strip"
inherit autotools
do_configure() {
+ export QEMU_CFLAGS="-I${STAGING_INCDIR_NATIVE} ${QEMU_CFLAGS}"
${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
}
--
1.7.0
next reply other threads:[~2010-03-15 16:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 15:58 Thomas Zimmermann [this message]
2010-03-15 21:04 ` qemu: fails to build without zlib-dev installed on buildhost Roman I Khimov
2010-03-16 19:48 ` Roman I Khimov
2010-03-16 20:15 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201003151658.45421.ml@vdm-design.de \
--to=ml@vdm-design.de \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox