]> code.ossystems Code Review - openembedded-core.git/commitdiff
dbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 27 May 2014 01:39:46 +0000 (21:39 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jun 2014 07:56:11 +0000 (08:56 +0100)
Found this error on CentOS 5.10, other distros may also has this
problem, I think that we can disable the selinux for dbus-native:

bus/selinux.c:327: error: array type has incomplete element type

[YOCTO #6374]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/dbus/dbus.inc

index 5b2a056511303ad70677aca296b01841f33cf9d7..01108c96b83a7a75ab60fae22c9ebcf94afaa8ae 100644 (file)
@@ -86,6 +86,8 @@ EXTRA_OECONF = "--disable-tests \
                 --disable-systemd \
                 --without-dbus-glib"
 
+EXTRA_OECONF_class-native = "--disable-selinux"
+
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
 PACKAGECONFIG_class-native = ""