* [PATCH] qemu-native: fix build on Ubuntu 15.10
@ 2015-11-03 17:22 Ed Bartosh
0 siblings, 0 replies; 4+ messages in thread
From: Ed Bartosh @ 2015-11-03 17:22 UTC (permalink / raw)
To: openembedded-core
Build of qemu-native on Ubuntu 15.10 fails on configure step.
The reason for this is that system dbus version is higher than
oe dbus version and system pulseaudio libraries require newer dbus.
It causes configure to break with a lot of errors similar to this:
libpulsecommon-6.0.so: undefined reference to dbus_watch_get_enabled@LIBDBUS_1_3
Fixed by building qemu-native with the system dbus on Ubuntu 15.10
Note: This is a workaround. It must be removed when oe dbus is upgraded
to the version >= system dbus version (1.10.0 at the moment).
[YOCTO #8553]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
meta/recipes-devtools/qemu/qemu.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index abbace8..b17da2f 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -40,6 +40,12 @@ do_configure_prepend_class-native() {
BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
+ # link with system dbus on Ubuntu 15.10
+ # FIXME: remove below 4 lines when oe dbus is upgraded
+ if [ -r /etc/lsb-release -a "$(lsb_release -is)$(lsb_release -rs)" = "Ubuntu15.10" ] ; then
+ libs=$(PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_PATH=$BHOST_PKGCONFIG_PATH PATH=/usr/bin:/bin pkg-config --libs dbus-1 || echo "")
+ [ -n "$libs" ] && export LDFLAGS="$libs $LDFLAGS"
+ fi
fi
}
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] qemu-native: fix build on Ubuntu 15.10
@ 2015-11-03 17:03 Ed Bartosh
2015-11-03 17:23 ` Ed Bartosh
2015-11-03 17:31 ` Martin Jansa
0 siblings, 2 replies; 4+ messages in thread
From: Ed Bartosh @ 2015-11-03 17:03 UTC (permalink / raw)
To: bitbake-devel
Build of qemu-native on Ubuntu 15.10 fails on configure step.
The reason for this is that system dbus version is higher than
oe dbus version and system pulseaudio libraries require newer dbus.
It causes configure to break with a lot of errors similar to this:
libpulsecommon-6.0.so: undefined reference to dbus_watch_get_enabled@LIBDBUS_1_3
Fixed by building qemu-native with the system dbus on Ubuntu 15.10
Note: This is a workaround. It must be removed when oe dbus is upgraded
to the version >= system dbus version (1.10.0 at the moment).
[YOCTO #8553]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
meta/recipes-devtools/qemu/qemu.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index abbace8..b17da2f 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -40,6 +40,12 @@ do_configure_prepend_class-native() {
BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
+ # link with system dbus on Ubuntu 15.10
+ # FIXME: remove below 4 lines when oe dbus is upgraded
+ if [ -r /etc/lsb-release -a "$(lsb_release -is)$(lsb_release -rs)" = "Ubuntu15.10" ] ; then
+ libs=$(PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_PATH=$BHOST_PKGCONFIG_PATH PATH=/usr/bin:/bin pkg-config --libs dbus-1 || echo "")
+ [ -n "$libs" ] && export LDFLAGS="$libs $LDFLAGS"
+ fi
fi
}
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] qemu-native: fix build on Ubuntu 15.10
2015-11-03 17:03 Ed Bartosh
@ 2015-11-03 17:23 ` Ed Bartosh
2015-11-03 17:31 ` Martin Jansa
1 sibling, 0 replies; 4+ messages in thread
From: Ed Bartosh @ 2015-11-03 17:23 UTC (permalink / raw)
To: bitbake-devel
sorry, wrong list. Please, ignore this patch. I'll send it to oe-core.
On Tue, Nov 03, 2015 at 07:03:49PM +0200, Ed Bartosh wrote:
> Build of qemu-native on Ubuntu 15.10 fails on configure step.
> The reason for this is that system dbus version is higher than
> oe dbus version and system pulseaudio libraries require newer dbus.
>
> It causes configure to break with a lot of errors similar to this:
> libpulsecommon-6.0.so: undefined reference to dbus_watch_get_enabled@LIBDBUS_1_3
>
> Fixed by building qemu-native with the system dbus on Ubuntu 15.10
>
> Note: This is a workaround. It must be removed when oe dbus is upgraded
> to the version >= system dbus version (1.10.0 at the moment).
>
> [YOCTO #8553]
>
> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
> ---
> meta/recipes-devtools/qemu/qemu.inc | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
> index abbace8..b17da2f 100644
> --- a/meta/recipes-devtools/qemu/qemu.inc
> +++ b/meta/recipes-devtools/qemu/qemu.inc
> @@ -40,6 +40,12 @@ do_configure_prepend_class-native() {
> BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
> if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
> + # link with system dbus on Ubuntu 15.10
> + # FIXME: remove below 4 lines when oe dbus is upgraded
> + if [ -r /etc/lsb-release -a "$(lsb_release -is)$(lsb_release -rs)" = "Ubuntu15.10" ] ; then
> + libs=$(PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_PATH=$BHOST_PKGCONFIG_PATH PATH=/usr/bin:/bin pkg-config --libs dbus-1 || echo "")
> + [ -n "$libs" ] && export LDFLAGS="$libs $LDFLAGS"
> + fi
> fi
> }
>
> --
> 2.1.4
>
--
--
Regards,
Ed
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] qemu-native: fix build on Ubuntu 15.10
2015-11-03 17:03 Ed Bartosh
2015-11-03 17:23 ` Ed Bartosh
@ 2015-11-03 17:31 ` Martin Jansa
1 sibling, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2015-11-03 17:31 UTC (permalink / raw)
To: Ed Bartosh; +Cc: bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 2028 bytes --]
On Tue, Nov 03, 2015 at 07:03:49PM +0200, Ed Bartosh wrote:
> Build of qemu-native on Ubuntu 15.10 fails on configure step.
> The reason for this is that system dbus version is higher than
> oe dbus version and system pulseaudio libraries require newer dbus.
>
> It causes configure to break with a lot of errors similar to this:
> libpulsecommon-6.0.so: undefined reference to dbus_watch_get_enabled@LIBDBUS_1_3
>
> Fixed by building qemu-native with the system dbus on Ubuntu 15.10
>
> Note: This is a workaround. It must be removed when oe dbus is upgraded
> to the version >= system dbus version (1.10.0 at the moment).
>
> [YOCTO #8553]
>
> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
wrong ML
> ---
> meta/recipes-devtools/qemu/qemu.inc | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
> index abbace8..b17da2f 100644
> --- a/meta/recipes-devtools/qemu/qemu.inc
> +++ b/meta/recipes-devtools/qemu/qemu.inc
> @@ -40,6 +40,12 @@ do_configure_prepend_class-native() {
> BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
> if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
> + # link with system dbus on Ubuntu 15.10
> + # FIXME: remove below 4 lines when oe dbus is upgraded
> + if [ -r /etc/lsb-release -a "$(lsb_release -is)$(lsb_release -rs)" = "Ubuntu15.10" ] ; then
> + libs=$(PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_PATH=$BHOST_PKGCONFIG_PATH PATH=/usr/bin:/bin pkg-config --libs dbus-1 || echo "")
> + [ -n "$libs" ] && export LDFLAGS="$libs $LDFLAGS"
> + fi
> fi
> }
>
> --
> 2.1.4
>
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-03 17:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 17:22 [PATCH] qemu-native: fix build on Ubuntu 15.10 Ed Bartosh
-- strict thread matches above, loose matches on Subject: below --
2015-11-03 17:03 Ed Bartosh
2015-11-03 17:23 ` Ed Bartosh
2015-11-03 17:31 ` Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.