diff options
-rw-r--r-- | meta-oe/recipes-connectivity/modemmanager/modemmanager/enum-conversion.patch | 21 | ||||
-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 @@ | |||
1 | Fixes 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 | |||
9 | Index: 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 | ||
12 | DEPENDS = "glib-2.0 libgudev dbus-glib intltool-native" | 12 | DEPENDS = "glib-2.0 libgudev dbus-glib intltool-native" |
13 | 13 | ||
14 | SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz" | 14 | SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz \ |
15 | SRC_URI[md5sum] = "d9d93d2961ee35b4cd8a75a6a8631cb4" | 15 | file://enum-conversion.patch \ |
16 | SRC_URI[sha256sum] = "a94f4657a8fa6835e2734fcc6edf20aa8c8d452f62299d7748541021c3eb2445" | 16 | " |
17 | SRC_URI[md5sum] = "06488186c7dd53f8104183b86f7a1568" | ||
18 | SRC_URI[sha256sum] = "cdd5b4cb1e4d7643643a28ccbfc4bb354bfa9cb89a77ea160ebdf7926171c668" | ||
17 | 19 | ||
18 | S = "${WORKDIR}/ModemManager-${PV}" | 20 | S = "${WORKDIR}/ModemManager-${PV}" |
19 | 21 | ||