summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-11-21 13:32:48 -0800
committerMartin Jansa <Martin.Jansa@gmail.com>2016-11-26 01:07:21 +0100
commita9ca41110b0dccfa897f0851b259fdb6e8763f00 (patch)
tree5479d09f92cc2ab3755b569fc5e51fd4cbb3215b /meta-oe
parentf708267ebdefaf122a791cb7671a01a8735e16ca (diff)
downloadmeta-openembedded-a9ca41110b0dccfa897f0851b259fdb6e8763f00.tar.gz
modemmanager: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch21
-rw-r--r--meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.4.bb (renamed from meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.0.bb)8
2 files changed, 26 insertions, 3 deletions
diff --git a/meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch b/meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch
new file mode 100644
index 000000000..a3fb0f3eb
--- /dev/null
+++ b/meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch
@@ -0,0 +1,21 @@
1Fixes errors found bt Clang
2
3| ../../ModemManager-1.6.4/src/mm-bearer-qmi.c:774:50: error: implicit conversion from enumeration type 'MMBearerStatus' to different enumeration type 'MMBearerConnectionStatus' [-Werror,-Wenum-conversion]
4| MMBearerConnectionStatus bearer_status = mm_base_bearer_get_status (MM_BASE_BEARER (self));
5| ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6| 1 error generated.
7
8
9Index: ModemManager-1.6.4/src/mm-bearer-qmi.c
10===================================================================
11--- ModemManager-1.6.4.orig/src/mm-bearer-qmi.c
12+++ ModemManager-1.6.4/src/mm-bearer-qmi.c
13@@ -771,7 +771,7 @@ packet_service_status_indication_cb (Qmi
14 &connection_status,
15 NULL,
16 NULL)) {
17- MMBearerConnectionStatus bearer_status = mm_base_bearer_get_status (MM_BASE_BEARER (self));
18+ MMBearerConnectionStatus bearer_status = (MMBearerConnectionStatus)mm_base_bearer_get_status (MM_BASE_BEARER (self));
19
20 if (connection_status == QMI_WDS_CONNECTION_STATUS_DISCONNECTED &&
21 bearer_status != MM_BEARER_CONNECTION_STATUS_DISCONNECTED &&
diff --git a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.0.bb b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.4.bb
index e26c22775..5e4e22082 100644
--- a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.0.bb
+++ b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.6.4.bb
@@ -11,9 +11,11 @@ inherit gnomebase gettext systemd vala gobject-introspection bash-completion
11 11
12DEPENDS = "glib-2.0 libgudev dbus-glib intltool-native" 12DEPENDS = "glib-2.0 libgudev dbus-glib intltool-native"
13 13
14SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz" 14SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz \
15SRC_URI[md5sum] = "d9d93d2961ee35b4cd8a75a6a8631cb4" 15 file://enum-conversion.patch \
16SRC_URI[sha256sum] = "a94f4657a8fa6835e2734fcc6edf20aa8c8d452f62299d7748541021c3eb2445" 16"
17SRC_URI[md5sum] = "06488186c7dd53f8104183b86f7a1568"
18SRC_URI[sha256sum] = "cdd5b4cb1e4d7643643a28ccbfc4bb354bfa9cb89a77ea160ebdf7926171c668"
17 19
18S = "${WORKDIR}/ModemManager-${PV}" 20S = "${WORKDIR}/ModemManager-${PV}"
19 21