Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mail.openembedded.org (Postfix) with ESMTP id 38CCE6E645 for ; Tue, 30 Jun 2015 00:19:49 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 29 Jun 2015 17:19:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,373,1432623600"; d="scan'208";a="719937870" Received: from linux-vcyq.jf.intel.com ([10.7.198.80]) by orsmga001.jf.intel.com with ESMTP; 29 Jun 2015 17:19:51 -0700 From: Juro Bystricky To: openembedded-core@lists.openembedded.org Date: Mon, 29 Jun 2015 17:16:57 -0700 Message-Id: <1435623417-18133-1-git-send-email-juro.bystricky@intel.com> X-Mailer: git-send-email 2.1.4 Cc: richard.purdie@intel.com Subject: [PATCH] qemu: OpenSUSE 13.2 configure error X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 00:19:51 -0000 Under some circumstances, on OpenSUSE 13.2 qemu-native configure can fail with the error: ERROR: User requested feature sdl configure was not able to find it The following sequence can reproduce the build error: $ bitbake libgpg-error-native $ bitbake qemu-native Qemu configure tests for the presence/existance of SDL by trying to link against libSDL. libSDL in turn attempts to load libcrypt which will then attempt to load libgpg-error. The bitbaked libgpg-error will be built with ABI incompatible with the one required by libcrypt. The remedy is to force qemu configure to use the host's libgpg-error instead. This is achieved by modifying the linker library search order. [YOCTO#7469] Signed-off-by: Juro Bystricky --- .../qemu/files/qemu-libcrypt-search-path-fix.patch | 37 ++++++++++++++++++++++ meta/recipes-devtools/qemu/qemu_1.7.0.bb | 4 ++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/qemu/files/qemu-libcrypt-search-path-fix.patch diff --git a/meta/recipes-devtools/qemu/files/qemu-libcrypt-search-path-fix.patch b/meta/recipes-devtools/qemu/files/qemu-libcrypt-search-path-fix.patch new file mode 100644 index 0000000..e44d883 --- /dev/null +++ b/meta/recipes-devtools/qemu/files/qemu-libcrypt-search-path-fix.patch @@ -0,0 +1,37 @@ +--- a/configure ++++ b/configure +@@ -1802,6 +1802,8 @@ if test -n "$cross_prefix" && test "$(ba + fi + + sdl_too_old=no ++sdl_cflags_ex="-L/usr/lib -L/usr/lib64 -Wl,-rpath-link,/usr/lib -Wl,-rpath-link,/usr/lib64" ++ + if test "$sdl" != "no" ; then + cat > $TMPC << EOF + #include +@@ -1814,7 +1816,7 @@ EOF + else + sdl_libs=`$sdlconfig --libs 2> /dev/null` + fi +- if compile_prog "$sdl_cflags" "$sdl_libs" ; then ++ if compile_prog "$sdl_cflags $sdl_cflags_ex" "$sdl_libs" ; then + if test "$_sdlversion" -lt 121 ; then + sdl_too_old=yes + else +@@ -1853,7 +1855,7 @@ if test "$sdl" = "yes" ; then + #endif + int main(void) { return 0; } + EOF +- if compile_prog "$sdl_cflags" "$sdl_libs" ; then ++ if compile_prog "$sdl_cflags $sdl_cflags_ex" "$sdl_libs" ; then + sdl_libs="$sdl_libs -lX11" + fi + libs_softmmu="$sdl_libs $libs_softmmu" +@@ -4287,6 +4289,7 @@ echo "OBJCOPY=$objcopy" >> $config_host_ + echo "LD=$ld" >> $config_host_mak + echo "WINDRES=$windres" >> $config_host_mak + echo "LIBTOOL=$libtool" >> $config_host_mak ++CFLAGS="$CFLAGS $sdl_cflags_ex" + echo "CFLAGS=$CFLAGS" >> $config_host_mak + echo "QEMU_CFLAGS=$QEMU_CFLAGS" >> $config_host_mak + echo "QEMU_INCLUDES=$QEMU_INCLUDES" >> $config_host_mak diff --git a/meta/recipes-devtools/qemu/qemu_1.7.0.bb b/meta/recipes-devtools/qemu/qemu_1.7.0.bb index a519645..a44a6f7 100644 --- a/meta/recipes-devtools/qemu/qemu_1.7.0.bb +++ b/meta/recipes-devtools/qemu/qemu_1.7.0.bb @@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ SRC_URI += "file://fxrstorssefix.patch \ file://qemu-enlarge-env-entry-size.patch \ file://Qemu-Arm-versatilepb-Add-memory-size-checking.patch \ - file://ide-CVE-2014-2894.patch" + file://ide-CVE-2014-2894.patch \ + file://qemu-libcrypt-search-path-fix.patch \ + " SRC_URI_prepend = "http://wiki.qemu.org/download/qemu-${PV}.tar.bz2" SRC_URI[md5sum] = "32893941d40d052a5e649efcf06aca06" -- 2.1.4