Patchwork [1/2] dbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10

login
register
mail settings
Submitter Robert Yang
Date May 27, 2014, 1:39 a.m.
Message ID <614584df9a2bf3580c77d8300c6eeccb66eff717.1401154373.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/72777/
State New
Headers show

Comments

Robert Yang - May 27, 2014, 1:39 a.m.
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>
---
 meta/recipes-core/dbus/dbus.inc |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index b3d3834..33f2f22 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -85,6 +85,8 @@  EXTRA_OECONF = "--disable-tests \
                 --disable-libaudit \
                 --disable-systemd"
 
+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 = ""