Patchwork [for-denzil,2/3] dbus.inc: disable selinux for native builds

login
register
mail settings
Submitter Matthew McClintock
Date Aug. 20, 2012, 6:23 p.m.
Message ID <1345487019-931-2-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/34969/
State New
Headers show

Comments

Matthew McClintock - Aug. 20, 2012, 6:23 p.m.
(Note: Upstream master has disabled selinux for this AFAICT)

Fixes issues such as:

| /usr/bin/ld: cannot find -lselinux
| collect2: ld returned 1 exit status
| make[3]: *** [libdbus-glib-1.la] Error 1

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/recipes-core/dbus/dbus.inc |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index a75583d..e9e287b 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -10,7 +10,7 @@  DEPENDS = "expat virtual/libintl ${@base_contains('DISTRO_FEATURES', 'x11', '${X
 DEPENDS_virtclass-native = "expat-native virtual/libintl-native"
 DEPENDS_virtclass-nativesdk = "expat-nativesdk virtual/libintl-nativesdk virtual/libx11"
 
-INC_PR = "r3"
+INC_PR = "r4"
 
 SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
            file://tmpdir.patch; \
@@ -70,6 +70,8 @@  EXTRA_OECONF = "--disable-tests \
                 --with-systemdsystemunitdir=${systemd_unitdir}/system/ \
                 ${EXTRA_OECONF_X}"
 
+EXTRA_OECONF_append_virtclass-native = " --disable-selinux"
+
 do_install() {
 	autotools_do_install